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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Jaxws client binding / unmarshal problem" Watch "Jaxws client binding / unmarshal problem" New topic

Jaxws client binding / unmarshal problem

New Guy

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 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

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

I agree. Here's the link:
subject: Jaxws client binding / unmarshal problem
It's not a secret anymore!