Android with WCF web service using ksoap2 - SoapFault error - faultcode: 'a: ActionNotSupported

I made a simple project to invoke a wcf web service using ksoap2. But when he calls envelope.getResponse (); he gives an error message -----

"SoapFault - error code: 'A: ActionNotSupported faultstring:' Message with action 'GetString could not be processed at the receiver due to a ContractFilter mismatch on the EndpointDispatcher. This may be due to a contract mismatch (inconsistent actions between sender and receiver) or binding / security mismatch between sender and receiver. Make sure that the sender and receiver have the same contract and the same binding (including security requirements, for example. Message, transport, None). faultactor: 'null detail: zero "

Im running web services in localhost.

please help me.

are the values ​​that I assigned

private static final String SOAP_ACTION = "GetString";
private static final String OPERATION_NAME = "GetString";
private static final String WSDL_TARGET_NAMESPACE = "http://tempuri.org/";
private static final String SOAP_ADDRESS = "http://10.0.2.2:14089/Service1.svc?wsdl";
+5
source share
2 answers

, - WSDL , SOAP GetString.

WSDL - ( , SOAP_ADDRESS), - :

<wsdl:binding name="..." type="...">
  ...
  <wsdl:operation name="GetString">
     <soap:operation soapAction="HERE_IS_CORRECT_ACTION" />
     <wsdl:input>...</wsdl:input>
     <wsdl:output>...</wsdl:output>
  </wsdl>
  ...
</wsdl:binding>

Btw. URL- ?wsdl.

+11

actionName SoapUI. , wsdl, . , "Raw" . http. - "SOAPAction". , .

+2

All Articles