473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problems with adding headers to web service request

Hi,

I need to add application specific headers and reference parameter in
the "ReplyTo" to my web service request as header elements. What is right
way to do this? I'm using framework 1.1 with WSE 2.0.

The Reference parameters are passed to me from a difference web service
request and my application specific headers are of complex type.

I tried to append the headers to RequestSoapContext.Envelope.Header . But
"RequestSoapContext.Envelope" was null, so I instantiated one.
Then the created RequestSoapContext.Envelope.Header by calling
RequestSoapContext.Envelope.CreateHeader().
I have my header elements in the form of XMLNodes and I tried to append the
nodes to the newly created RequestSoapContext.Envelope.Header by calling
RequestSoapContext.Envelope.Header.AppendChild(myh eader).
Still I couldn't append any elements to RquestSoapContext.Envelope.Header
as it is throwing an exception saying " The node to be inserted is from a
different document context.".

Is there a better way of adding header element to the soap request ?
Appreciate you feedback.

Thanks
- Sanjaya-
Jul 31 '06 #1
0 1834

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ale News | last post by:
Hi to All.. I must add some custom headers HTTP and then i would to read them.. I used the AppendHeader Method to add my headers but when i try to read the headers i can't see my custom ones.....
4
by: razvan | last post by:
I need advice about adding security to a web service without using WSE, as the clients will run Win98.
3
by: Giggi | last post by:
Hi! I need to pass some strings via an HTTP POST from page1 (in my app) to a page on another server. I stored my data in a NameValueCollection and then sent it using WebClient.UploadValues....
0
by: Nithi Gurusamy | last post by:
I have generated a Web-Service-Proxy (Add Web Reference) within VS. This proxy class is based on WebServicesClientProtocol of WSE 3.0. I want to add some custom HTTP Headers to the envelop before...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.