Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unable to parse the response from webservice - .XMLStreamReaderException

776716Jun 17 2010
Hi All,
I am using Jdeveloper 11g to develop web service proxy using jAXWS approach.When i try to access the method using the stadalone java class, i get the following error
com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_CASE_SOLN_CI}Get__CompIntfc__KCM_CASE_SOLN_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_CASE_SOLN_CIResponse
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:214)
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:222)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:531)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:127)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
at $Proxy30.getCompIntfcKCMCASESOLNCI(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.wsee.jaxws.spi.ClientInstance$ClientInstanceInvocationHandler.invoke(ClientInstance.java:363)
at $Proxy31.getCompIntfcKCMCASESOLNCI(Unknown Source)
at project1.proxy.KCM_CASE_SOLN_CISoapClient.main(KCM_CASE_SOLN_CISoapClient.java:51)

I checked the webservice using SOAP UI and its working fine.
I added soap handler to my java class and it shows the entire response from the webservice.
So i think its failing while trying to write the response to the java stub.
earlier working with a different webservice and integrating that webservice in to a JSF application, i was getting the same error , i could resolve that by changing some mapping while creating the proxy.
This time i followed all the correct steps yet it is failing as a standlone java class let alone jsf application.
Any help will be appreciated.
Thank you in advance

regards
ash
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 15 2010
Added on Jun 17 2010
0 comments
960 views