Solved

Change prefix within soap header

Posted on 2010-11-18
3
1,526 Views
Last Modified: 2012-05-10
We are developing a .NET client with WCF to access a 3rd party web service.

The service disregards our request when in this format:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
</s:Envelope>

The service however only accepts the following:
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
</soapenv:Envelope>

It seems the 3rd party service restricts the prefix to only accept 'soapenv' even though we know that it does not normally matter.

What would be the simplest way to approach this? We would like to avoid using a proxy or similar. Is there a way to influence the way WCF generates this? Is there a code change/addition we can do to add/replace the prefix?

Thanks
0
Comment
Question by:olio
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 21

Expert Comment

by:tovvenki
ID: 34266308
hi,
what binding are you using to access the webservice? is that webservice also WCF based?

see whether this helps you
http://efreedom.com/Question/1-2386306/Change-SOAP-Envelope-Schema-WCF

Thanks and regards,
Venki
0
 
LVL 1

Accepted Solution

by:
olio earned 0 total points
ID: 35503560
We had to redevelop the code.
0
 
LVL 1

Author Closing Comment

by:olio
ID: 35711319
We had to redevlop the code and there was not other solution to it.
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will show you how to add an attribute to an XML (http://en.wikipedia.org/wiki/XML) stream returned from a Windows Communication Foundation (http://en.wikipedia.org/wiki/Windows_Communication_Foundation) (WCF) Web Service.  Some knowled…
While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question