Solved

Change prefix within soap header

Posted on 2010-11-18
3
1,507 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
  • 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In previous Articles, we have discussed how we can upload a file using .asmx web service and isolated storage space. Here, in continuation to the topic, I am going to discuss how we can use WCF for the same purpose. Steps: 1.Create the silverli…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now