Hi,
I generated a client stub using Axis2 WSDL2Java and created a test java
application to see if the SOAP request is being sent out. Heres the code to
do that:
--------
WindowsMRServiceStub stub = new
WindowsMRServiceStub("http://localhost:8080/windowsMR/";);       
GetInstancesRequestDocument param=
GetInstancesRequestDocument.Factory.newInstance();                      
GetInstancesResponseDocument responseDoc = stub.GetInstances(param);
EndpointReferenceArray array = responseDoc.getGetInstancesResponse();
--------

I have attached the WindowsMR wsdl file. On running this application I get
the IllegalStateException with the following stack trace:
---------
org.apache.axiom.om.OMException: java.lang.IllegalStateException
        at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
        at
org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:144)
        at
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:322)
        at
org.apache.axis2.WindowsMRServiceStub.toOM(WindowsMRServiceStub.java:1125)
        at
org.apache.axis2.WindowsMRServiceStub.toEnvelope(WindowsMRServiceStub.java:1140)
        at
org.apache.axis2.WindowsMRServiceStub.GetInstances(WindowsMRServiceStub.java:617)
        at ClientRunner.main(ClientRunner.java:17)
Caused by: java.lang.IllegalStateException
        at
org.apache.xmlbeans.impl.store.Jsr173$XMLStreamReaderForString.next(Jsr173.java:1110)
        at
org.apache.xmlbeans.impl.store.Jsr173$SyncedJsr173.next(Jsr173.java:1138)
        at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
        at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123)
        ... 6 more
----------

Searching axis2 messages have not given me any clues. Any ideas why this
could be happening ?
Thanks a lot,

rohit

http://www.nabble.com/user-files/235771/WindowsMR_binding_DocLiteral.wsdl
WindowsMR_binding_DocLiteral.wsdl 


-- 
View this message in context: 
http://www.nabble.com/IllegalStateException-at-Jsr173%24XMLStreamReaderForString.next-tf2166671.html#a5990059
Sent from the Axis - Dev forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to