Re: About the XPlanner SOAP WebService
"Jacques Morel" <[email protected]> Sat, 19 May 2007 20:42:21 -0500
| Newsgroups | gmane.comp.java.xplanner.devel |
|---|---|
| Message-ID | <[email protected]> |
I am sorry but I don't have the time right now to look into this. My suggestion would be to use axis instead of jax-ws to generate the client stub. These are more likely to work since the wsdl is generated by axis right from the java classes. We did not implement the wsdl ourselves. Jacques On 5/13/07, Imran M Yousuf <[email protected]> wrote: > Dear Developers, > > I have downloaded the WSDL from the URL that is hosting our XPlanner. > You can find the original WSDL in the file XPlanner-original.wsdl; but > when I tried to use that and build a web service client using JAX-WS it > provided several errors and for that reason I had to edit the original > WSDL and ultimately when I was done the resulting WSDL can be found in > XPlanner.wsdl. Using the generated client I tried to communicate with > the server using the code in Main.java and I get the following > Exception. Can someone please help me and tell what I did wrong or how > can I achieve SOAP communication. > > Thanks in advance. > > Exception in thread "main" javax.xml.ws.WebServiceException: unexpected > XML reader state. expected: END_ELEMENT but found: START_ELEMENT > at > com.sun.xml.internal.ws.encoding.soap.client.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:279) > at > com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:536) > at > com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:260) > at > com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:139) > at > com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:86) > at > com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:174) > at > com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:108) > at $Proxy30.getProjects(Unknown Source) > at com.uignet.xplannerwsclienttest.Main.main(Main.java:33) > Caused by: unexpected XML reader state. expected: END_ELEMENT but found: > START_ELEMENT > at > com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.verifyReaderState(XMLStreamReaderUtil.java:191) > at > com.sun.xml.internal.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:309) > at > com.sun.xml.internal.ws.encoding.soap.client.SOAPXMLDecoder.decodeBody(SOAPXMLDecoder.java:199) > at > com.sun.xml.internal.ws.encoding.soap.client.SOAPXMLDecoder.decodeEnvelope(SOAPXMLDecoder.java:144) > at > com.sun.xml.internal.ws.encoding.soap.client.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:272) > ... 8 more > Java Result: 1 > > > Imran > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Xplanner-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xplanner-devel > > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/