on 08-23-2012 1:11 AM
Hi,
We are using PI 7.3 . Sender as Web Service.
We received the schema from third party and we are getting value xsi:nil='true'. I want to remove from the ta before mapping.
<DELIVERYDATE xsi:nil='true'/> the value is coming like this.
But failing inmapping.
Please help to handle the same
regards
Ram
Hi Ram,
You should first check with the third party to see if they can conform to the WSDL provided to you. The programming language used to create the web service will have way to not send this value. Although not relevant, have a look at http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200804.mbox/%3CBF6B6CA032BA0A429BD924F9676514....
If the service providers can not handle this, You can handle in PI by adding an attribute nil to the element. If you need to remove the name space of the attribute, you can use XMLAnonymizer. I recently did this in the case of a .net service.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Nageshwar.
Current wsdl schema for this field is
<xsd:element name="DELIVERYDATE" type="MXDateTime" minOccurs="0" nillable="true" />
And same schema is available in PI but when we are testing at PI it does not validate but it validate in other xml editor.
When we are getting this tag with nil we are receiving as
<DELIVERYDATE nil="true"/>
which PI schema is not validating.
As its one to one mapping with date transformation. then it is passing nil as attribute at next level. Which I need to remove. before passing.
Regards
Ram
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.