on 05-31-2006 7:57 PM
Hi All
Yesterday i found out some restrictions about nillable elements is XSD definition.
Is it really impossible to have nil="true" values in messages?
Some ideas?
Hi,
I have some services on Oracle Application Server. All element contain nillable="true".
With string there is no problem, we can send and empty element in SOAP message. Problems occurs with all numeric types (int, float...) and dates.
Best Regards,
Tomek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you really need the xsi:nil="true" attribute, you can create a sample SOAP request message without SOAP envelope and upload this to your graphical mapping tool as target message.
Here an example xml:
<ns0:BookingOrders xmlns:ns0="http://sap.com/xi/rkt/CaseStudy/group99"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Order>
<BookingCode>2KY34R</BookingCode>
<Passenger>
<Name xsi:nil="true"></Name>
<Address>123 Main St.</Address>
</Passenger>
</Order>
</ns0:BookingOrders>
Check out if it would be sufficient just to omit the elemts which have no values or provide initial values like 0 for float and int.
Regards
Stefan
if i receive message from system A with <NETTO /> it should be send to system B with <NETTO xsi:nil="true"></NETTO>
If i receive message from system A with <NETTO>100.4563</NETTO> it should be send to system B with <NETTO>100.4563</NETTO>
How I can do it with graphical mapping tool (set tag attributes conditionally..)
JAVA/ABAP coding in mapping is not an solution it is work around...
IRR (ang. Internal Rate of Return)
http://upload.wikimedia.org/math/f/9/c/f9c2f94421f6f8d86adc6cf25ae00f32.png
I hope you do not expect me to understand that
Hi Tomasz,
For which scenario do you need a nil element?
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.