This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes jwsdp 2.0 unable to deserialize SoapFault from axis webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "jwsdp 2.0 unable to deserialize SoapFault from axis webservice" Watch "jwsdp 2.0 unable to deserialize SoapFault from axis webservice" New topic
Author

jwsdp 2.0 unable to deserialize SoapFault from axis webservice

Sascha Horn
Greenhorn

Joined: Aug 24, 2010
Posts: 1
Hi,

i am accessing an axis webservice (rpc encoded) with an client generated with jwsdp 2.0 jaxrpc libraries.

Everything works fine, except the deserialization of the SOAPFaults.

SOAPFault:



This fault should bring me an RemoteException: Authentification failed. Please verify user name and password.

But i receive:

Caused by: Unexpected xml reader state. Excpected: END but found: START: {http://xml.apache.org/axis/}hostname
at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:233)
at com.sun.xml.rpc.client.StreamingSender._readBodyFaultElement(StreamingSender.java:460)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:221)
... 16 more

when i am using the webservices-osgi packages from metro project for testing purposes i receive the correct exception.

The webservice client should run on Jboss AS Server side, so i can not use the metro packages.

Has anybody a idea how to receive the correct exception using jwsdp Jaxrpc packages?

Thanks

Sascha

Edit:

I have tried it with jdk 1.5 and jdk 1.6.
Allways the same behaviour.

 
Consider Paul's rocket mass heater.
 
subject: jwsdp 2.0 unable to deserialize SoapFault from axis webservice
 
Similar Threads
web service exception handling..
Soap Fault Implementation
Error : Axis Engine Cudn't find the target
Not able to invoke webservice
hi there..i hava a problem with the apache axis..