Solved

Change prefix within soap header

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

631 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