12 years ago
controling XML request
Hi,
I amhosting a web service and in a browser the sample request is :
<?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/">
<soap:Body>
<UpdateResult xmlns="http://reliantbh.com/webservices/">
<userid>string</userid>
<password>string</password>
<data>string</data>
</UpdateResult>
</soap:Body>
</soap:Envelope>
in SOAPUI teh new request is:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://reliantbh.com/webservices/">
<soapenv:Header/>
<soapenv:Body>
<web:UpdateResult>
<!--Optional:-->
<web:userid>?</web:userid>
<!--Optional:-->
<web:password>?</web:password>
<!--Optional:-->
<web:data>?</web:data>
</web:UpdateResult>
</soapenv:Body>
</soapenv:Envelope>
and the client needs it to be :
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:drug="http://drug.gateway.mvp.na_svr">
<soapenv:Header>
<OriginatorSystem>I3Logix</OriginatorSystem>
</soapenv:Header>
<soapenv:Body>
<drug:result soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
I'm using Visual Studio ASMX web service and hosting on IIS7. Can someone tell me how to control teh required namespaces in the SOAP request ?
Thanks,
Mike
I amhosting a web service and in a browser the sample request is :
<?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/">
<soap:Body>
<UpdateResult xmlns="http://reliantbh.com/webservices/">
<userid>string</userid>
<password>string</password>
<data>string</data>
</UpdateResult>
</soap:Body>
</soap:Envelope>
in SOAPUI teh new request is:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://reliantbh.com/webservices/">
<soapenv:Header/>
<soapenv:Body>
<web:UpdateResult>
<!--Optional:-->
<web:userid>?</web:userid>
<!--Optional:-->
<web:password>?</web:password>
<!--Optional:-->
<web:data>?</web:data>
</web:UpdateResult>
</soapenv:Body>
</soapenv:Envelope>
and the client needs it to be :
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:drug="http://drug.gateway.mvp.na_svr">
<soapenv:Header>
<OriginatorSystem>I3Logix</OriginatorSystem>
</soapenv:Header>
<soapenv:Body>
<drug:result soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
I'm using Visual Studio ASMX web service and hosting on IIS7. Can someone tell me how to control teh required namespaces in the SOAP request ?
Thanks,
Mike