This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes Jaxws client binding / unmarshal problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Jaxws client binding / unmarshal problem" Watch "Jaxws client binding / unmarshal problem" New topic
Author

Jaxws client binding / unmarshal problem

New Guy
Greenhorn

Joined: Sep 27, 2012
Posts: 2
Hi there,
i'm developing a java web service client.
I've got a wsdl and i know the service is perl based.

It's not my first web service client, but i'm still a newbie.

I've tested the wsdl and the service response with soapUI and other clients and it works well.

I've generated some stubs using axis2, apache cxf and jax ws ri (separately) to generate the code starting from the wsdl but no client works well.
(jdk7 x64/x86 and jdk6 x64/x86)

All the clients can connect and correctly send the request, using the debugger i can confirm that all the clients correctly recieve the response .. then all becomes black.

The response is


The axis2 client with ADB binding throws an "Unsupported type" exception on http://www.w3.org/2001/XMLSchema int

The cxf client runs without errors but the getCalcResponse object fields are NULL or 0

the jaxws ri client runs similar to the cxf


Where's the mistake ? What to analyze?

I've tried to change some annotations parameters or to force the namespace on the fields but nothing changes

PLEASE help me
New Guy
Greenhorn

Joined: Sep 27, 2012
Posts: 2
finally got it working adding the name space to the methods generated by wsimport (




and adding the XmlElement in the response bean with the same namespace


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jaxws client binding / unmarshal problem