views:

17

answers:

0

REF: http://stackoverflow.com/questions/4008703/creating-a-soap-proxy/4016687#4016687

How do I use HttpHandlers to create a proxy and change a SOAP request and response namespace?

Example...change this (1 line)

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  <soap:Body>
    <Example1 xmlns="http://www.domain.com"&gt;
      <DoSomething>string</DoSomething>
    </Example1>
  </soap:Body>
</soap:Envelope>

to this (1 line)

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  <soap:Body>
    <Example1 xmlns="http://www.mydomain.com"&gt;
      <DoSomething>string</DoSomething>
    </Example1>
  </soap:Body>
</soap:Envelope>