Hi list,

    I have created consumer stuff using axis2 WSDL2java and while trying to
consume web service (running at .NET server), I get following exception:

***************************

org.apache.axis2.AxisFault: Transport error: 405 Error: Method not allowed

at org.apache.axis2.transport.http.HTTPSender.handleResponse(
*HTTPSender.java:296*)

at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
*HTTPSender.java:190*)
****************************


here is the SOAP request/response:


***************************
POST /service/SUBS.asmx HTTP/1.1
Host: xx.1xx.1xx.xx
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: 
"http://IPCC/SUBS.wsdl/GetSubscribersList<http://ipcc/SUBS.wsdl/GetSubscribersList>
"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Body>
    <GetSubscribersList xmlns="http://IPCC/SUBS.wsdl <http://ipcc/SUBS.wsdl>
">
      <stringMobileNumber>string</stringMobileNumber>
    </GetSubscribersList>
  </soap:Body>
</soap:Envelope>
******************************

 I also tried settings options property to both GET/POST:

options.setProperty(Constants.Configuration.
*HTTP_METHOD*,HTTPConstants.*HTTP_METHOD_POST*);

Bye,

Viki,

Reply via email to