.net - How to add namespace in soap envelope of request in c# -
i have created proxy class using wsdl.exe. sending soap envelope listed below not work since other end of router expecting different set of namespaces inside it
<?xml version="1.0" encoding="utf-16"?> <soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"> <soap:body> <sayhelloworld xmlns="http://aonhewitt.com/hro/benefits/helloworld/xsd/"> <brokerheader> <brokeruserid xmlns="http://my.com/hro/benefits/cm/xsd/v2_0">test</brokeruserid> <clientid xmlns="http://my.com/hro/benefits/cm/xsd/v2_0">010666</clientid> <callerrefid xmlns="http://my.com/hro/benefits/cm/xsd/v2_0">01066633934717</callerrefid> </brokerheader> <greeting>hello</greeting> <sleep>0</sleep> </sayhelloworld> </soap:body> </soap:envelope>
this not work router can work if have following values in soap envelope
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://my.com/hro/benefits/cm/xsd/v2_0" xmlns:xsd="http://my.com/hro/benefits/helloworld/xsd/">
the question how can change proxy class send desired envelope.
Comments
Post a Comment