frameloose Posted February 2, 2006 Posted February 2, 2006 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? Quote
Igor Sukhov Posted March 7, 2006 Posted March 7, 2006 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". Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.