cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming .NET Web Service

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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