[
https://jira.jboss.org/browse/JBESB-1553?page=com.atlassian.jira.plugin.s...
]
Magesh Kumar B commented on JBESB-1553:
---------------------------------------
The implementation handles null values, based on Schema, like this now
1. Not Required and Not nillable
================================
<xs:element type="xs:string" name="shipTo"
nillable="false" required="false"/>
No element
2. Not Required and Nillable
=============================
<xs:element type="xs:string" name="shipTo"
nillable="true" required="false"/>
<shipTo xsi:nil="true"><shipTo>
3. Required and Not Nillable
=============================
<xs:element type="xs:string" name="shipTo"
nillable="false" required="true"/>
<shipTo/>
4. Required and Nillable
========================
<xs:element type="xs:string" name="shipTo"
nillable="true" required="true"/>
<shipTo xsi:nil="true"><shipTo>
SOAPClient action remappes objects with null strings to empty
strings
---------------------------------------------------------------------
Key: JBESB-1553
URL:
https://jira.jboss.org/browse/JBESB-1553
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Web Services
Affects Versions: 4.2.1 CP1
Reporter: Jiri Pechanec
Assignee: Magesh Kumar B
Fix For: 4.9
Attachments: LineItem.java, Order.java, wsc2.tgz
Use webservice_consumer2 quickstart and use the attached files - contains enhanced equals
and toString defintions. Make sure that option1 is used.
The object with following contents is sent to processing to ivoke web service
id = 101 lineItems = [Line Item ID= 1 Price=10.0 Ship To=aname, Line Item ID= 2
Price=20.0 Ship To=aname2] shipTo = null
But in the web service processing method the contents is
id = 101 lineItems = [Line Item ID= 1 Price=10.0 Ship To=aname, Line Item ID= 2
Price=20.0 Ship To=aname2] shipTo =
The difference is in shipTo property which was set tu null on the input but comes to web
service as empty string.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira