Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

So i have a webservice that i have done in C# .NET.

 

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <soapenv:Body>
       <GetCardTypesBySystemId xmlns="urn:OurService" xmlns:ns1="http://my.domain.com/webservice/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <ns1:systemId>2</ns1:systemId>
       </GetCardTypesBySystemId>
     </soapenv:Body>
   </soapenv:Envelope>

 

My webservice is expecting the variables just to be systemId and not ns1:systemId ... but the client can not change the way the envelope is sent, so i must in some way get my webservice to accept ns1:systemId, anyone know a solution to get it to work?

  • 1 month later...
Posted
So i have a webservice that i have done in C# .NET.

 

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <soapenv:Body>
       <GetCardTypesBySystemId xmlns="urn:OurService" xmlns:ns1="http://my.domain.com/webservice/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <ns1:systemId>2</ns1:systemId>
       </GetCardTypesBySystemId>
     </soapenv:Body>
   </soapenv:Envelope>

 

My webservice is expecting the variables just to be systemId and not ns1:systemId ... but the client can not change the way the envelope is sent, so i must in some way get my webservice to accept ns1:systemId, anyone know a solution to get it to work?

 

Implement server side SOAP extension that "patches" request by replasing "<systemId>" Xml element with "ns1:systemId".

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...