on 07-21-2016 7:35 AM
Hi Experts ,
I have a requirement to replace the namespace prefix in the below XML., before calling the webservice using SOAP Receiver.
Input :
<ns1:updatecustomer xmlns:ns1="http://www.examples.com/wsdl/cust.wsdl">
<field1>1</field1>
<field2>2</field2>
</ns1:updatecustomer>
Expected Output :
<urn:updatecustomer xmlns:urn="http://www.examples.com/wsdl/cust.wsdl">
<field1>1</field1>
<field2>2</field2>
</urn:updatecustomer>
I have tried using XMLAnonymizerBean and it has not worked . Please suggest how this requirement can be achieved.
Regards,
Nick
Hi Nick!
As far as I can see there is no difference between your messages. You can use any prefix when describing namespace (unless it's preserved or contains invalid characters).
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nick,
xmlns:ns1="http://www.examples.com/wsdl/cust.wsdl"
and
xmlns:urn="http://www.examples.com/wsdl/cust.wsdl">
are semantically equal by W3C XML standards. Is the webservice rejecting the ns1? If that is the case, a simple xlst/java mapping can do the trick.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
26 | |
9 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.