Axis2 does not support rpc/encoded wsdl's. -- dims
On 11/20/06, Qiyun Yang <[EMAIL PROTECTED]> wrote:
Hi, I developed an axis2 clinet to access xmethids web service: delayed stock quote (using axis2 command line code generate approach): WSDL2Java -d xmlbeans -uri http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl -p clients -o D:\00Axis2\StockQuote The codes are successfully generated which is used for coding Client.java. When running client, there are the following error messages: org.apache.axis2.AxisFault: decoding error: electric.xml.ParseException: the document does not have exactly one root line 1, char 0: ... Apprarntly, the statement in the client code did not get through: GetQuoteResponseDocument resDoc = stub.getQuote(reqDoc); The request document reqDoc (as printed out in the client code) is as follow: <getQuote xmlns="http://www.themindelectric.com/wsdl/net.xmethods.services.stockquote.StockQuote/"> <symbol xmlns="">IBM</symbol> </getQuote> (The delayed stock quote web service is rpc style though) Please advise where could be wrong. Thanks and regards. Q run.client: [java] <getQuote xmlns="http://www.themindelectric.com/wsdl/net.xmethods.services.stockquote.StockQuote/"> [java] <symbol xmlns="">IBM</symbol> [java] </getQuote> [java] org.apache.axis2.AxisFault: decoding error: electric.xml.ParseException: the document does not have exactly one root [java] line 1, char 0: ... [java] at org.apache.axis2.description.OutInAxisOperationClient.execute (OutInAxisOperation.java:308) [java] at clients.NetXmethodsServicesStockquoteStockQuoteServiceSt ub.getQuote(NetXmethodsServicesStockquoteStockQuoteServiceStub.java:141) [java] at clients.Client.main(Client.java:19) _________________________________________________________________ Get MSN Messenger emoticons and display pictures here! http://ilovemessenger.msn.com/?mkt=en-sg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]