axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qiyun Yang" <qyyan...@hotmail.com>
Subject [axis2] org.apache.axis2.AxisFault for xmethods StockQuote client
Date Mon, 20 Nov 2006 07:15:17 GMT

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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message