This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Response <item xsi:nil=" title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Response <item xsi:nil="true" xmlns:xsi=""/>" Watch "Response <item xsi:nil="true" xmlns:xsi=""/>" New topic

Response <item xsi:nil="true" xmlns:xsi=""/>

Wap Rau

Joined: Dec 01, 2011
Posts: 11
I am very new to Web Services. I am creating Apache CXF (apache-cxf-2.5.0) SOAP based Web Services. It creates WSDL from Java class (Java first approach).

Following is my Java class:

This is WSDL created at the specified URL:

I am using soapUI for testing. This is the request generated when I use soapUI :

This is the response I get when I submit request to specified endpoint URL for the FIRST time:

However when I resubmit request again I get following response everytime I submit request:

Actually I am expecting the same response when I submit request for the FIRST time. But somehow every time I submit request I get above response without any data. How to get rid of this?

Thank you.
Wap Rau

Joined: Dec 01, 2011
Posts: 11
My problem is more or less solved. The problem was with my Java class in which I was having class level variables. I changed it and made it method level variables and now I am getting result as expected.

Thank you.
jQuery in Action, 2nd edition
subject: Response <item xsi:nil="true" xmlns:xsi=""/>
Similar Threads
Java class to WSDL
XmlException on calling WSDL2Java
Errors when using clientgen
How to access byte array web method
How to get <param-name> instead of <item> in response when I am returning 2D array from WebService?