This is a problem with the service you are trying to access. I observed the
soap message sent by the Axis2 using tcpmon.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
     <soapenv:Header />
     <soapenv:Body>
        <ns1:getQuote xmlns:ns1="
http://www.themindelectric.com/wsdl/net.xmethods.services.stockquote.StockQuote/
">
           <symbol>test</symbol>
        </ns1:getQuote>
     </soapenv:Body>
  </soapenv:Envelope>

which is correct according to the wsdl.
Use -ss -sd -g options to generate the skelton classes as well and try to
deploy the service in the simple axis server (comes with the axis2
distribution) and check.

Follow these steps
1. generate code (use -ss -sd -g -t -ssi -u)
2. set the envirionment varaiable AXIS2_HOME to the axis2 1.1 distribution
folder.
3. got to the directory where you generate the code and type ant
this will generate the .aar file.
4. copy it to AXIS2_HOME/repository/services folder
5. go to AXIS2_HOME/bin sh axis2Server.sh

now u have started the server

change the stub epr to "
http://localhost:8081/axis2/services/net.xmethods.services.stockquote.StockQuoteService
"
and run the client.

Reply via email to