my dog learned polymorphism*
The moose likes BEA/Weblogic and the fly likes Error in SOAP response when webservice is deployed in Weblogic 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 » Products » BEA/Weblogic
Bookmark "Error in SOAP response when webservice is deployed in Weblogic" Watch "Error in SOAP response when webservice is deployed in Weblogic" New topic
Author

Error in SOAP response when webservice is deployed in Weblogic

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
The webservice is deployed onto a Weblogic 8.1 server.

WSDL file:


SOAP response :



If minOccurs=1,then the element should be displayed in the SOAP response even if the element does not have any value.
If minOccurs=0,if the element does not have any value,then the element must not be displayed in the SOAP response.

But as shown in the code,the element is displayed in the SOAP response with xsi:nil attribute set to true,when the element has minOccurs=0 in WSDL file.

Please let me know why is this problem coming.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error in SOAP response when webservice is deployed in Weblogic
 
Similar Threads
Why do I see different wsdl and xsd generated for webservice through wsgen.
Java class to WSDL
Get java.util.List from webservice
Response <item xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
XmlException on calling WSDL2Java