2013-02-11 2 views
-2

친구를 호출 할 때 오류가 .. 내가 SOAP의 웹 서비스를 구현하고"A : InternalServiceFault"SOAP 서비스

..

내가 코드 아래 사용하고

..

QtSoapMessage request; 
request.setMethod(QtSoapQName("Method_Name", "http://tempuri.org/*****/")); 

request.addMethodArgument("key1", "", "value1"); 
request.addMethodArgument("key2", "", "value2"); 

QString action ="http://tempuri.org/****/MethodName"; 

QString host ="host name"; 
QString prefix ="/****/****.svc"; 

나는 점점 오전 응답 아래처럼 ...

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> 
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
<SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
<faultcode xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">a:InternalServiceFault</faultcode> 

답변

1

addMethodArgument에 URI가 필요합니다. 게다가 요청을 어떻게 실행합니까? 이 모든 코드입니까?