on 05-11-2007 3:14 AM
I have XI consuming a .NET Web Service through SOAP Receiver Adapter. The message that is sent to .NET is:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Fields xmlns="http://mynamespace.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<Field1 xmlns="">1</Field1>
<Field2 xmlns="">2</Field2>
<Field3 xmlns="">3</Field3>
</Fields>
And I would to send this message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Fields xmlns="http://mynamespace.com/">
<Field1>1</Field1>
<Field2>2</Field2>
<Field3>3</Field3>
</Fields>
That is, I' like to remove those xmlns atributes from root element. I'd like to remove the "xmlsn=''" from child elements too! How do I do this?
Thanks
Julio
Hi,
1. Make the change in the WSDL provided by the.net application.
2. Or, use a mapping like Java or XSL.
3. Or use the XML Anonymizer Bean as shown in this blog,
/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey
on the receiver side create Field1,Field2,Field3 as subelements of Fields(not as an attribute)and do a simple 1-1 mapping
thanx
Ahmad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.