2 Replies Latest reply on Jun 2, 2013 10:15 PM by gbstack08

    how to send SOAP request by HTTP POST?


      I want to access a SOAP webservice using mx.rpc.soap.mxml.WebService.


      Following is my code:

      <mx:WebService id="miner_service" wsdl="http://localhost:8080">

              <mx:operation name="hello" result="echoResultHandler(event);"></mx:operation>




      When debugging with that, I got such error message:

      [Fault] exception, information=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://localhost:8080)"]


      Then I use Fiddler try to capture the response returned by server, it's like this:

      Error response

      Error code 501.

      Message: Unsupported method ('GET').

      Error code explanation: 501 = Server does not support this operation.



      But when I use python to send SOAP request by HTTP POST, the server will return correct response.

      So how can I send SOAP request by HTTP POST?

      (I tried <mx:WebService wsdl="http://localhost:8080" method="POST">, but no luck..)