473,406 Members | 2,259 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,406 software developers and data experts.

SoapHeader

All the sample code that I can find on SoapHeader is at least one
level down
within a root node. However, I'm working on a project needs to create
a soap header like this:

<SOAP-ENV:Header>
<MessageID>
uuid:6B29FC40-CA47-1067-B31D-00DD010662DA
</:MessageID>
<To>http://abc.example</To>
<Action>http://abc.example/SubmitPO</Action>
</SOAP-ENV:Header>

I could not figure out how to do it using .NET SoapHeader class.

Thanks in advance for any help.

Yuwen
Nov 21 '05 #1
1 1670
I never found a way to do it with the SoapHeader but the workaround I came up with was to create a SoapExtension and manuallyinsert the <soap:Header>... in the out going message stream. Obviously this is ugly and not what you really want to do but itworks.

good luck.
All the sample code that I can find on SoapHeader is at leastone
level down
within a root node. However, I'm working on a project needs tocreate
a soap header like this:

<SOAP-ENV:Header>
<MessageID>
uuid:6B29FC40-CA47-1067-B31D-00DD010662DA
</:MessageID>
<To>http://abc.example</To>
<Action>http://abc.example/SubmitPO</Action>
</SOAP-ENV:Header>

I could not figure out how to do it using .NET SoapHeaderclass.

Thanks in advance for any help.

Yuwen

User submitted from AEWNET (http://www.aewnet.com/)
Nov 21 '05 #2

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

Similar topics

1
by: Eric | last post by:
Hi, I have a WebService client. All the code is generated by VS.NET 2003. The problem is that some attributes are not generated. All the attributes in the base class are generated. But the...
0
by: justin_sun | last post by:
I'm working on a project needs to create a soap header like this: <SOAP-ENV:Header> <MessageID> uuid:6B29FC40-CA47-1067-B31D-00DD010662DA </:MessageID> <To>http://abc.example</To>...
7
by: Michael Peters | last post by:
I wish to change/set the namespace for a header in my web service. I have found the following code and it does not appear to work and my assumption is because I am using RPC encoding... ...
0
by: Peter Morris [Droopy eyes software] | last post by:
I'm not sure what my problem is so I thought I'd post here to see if anyone can shed some light onto my problem. 1) I have a SoapHeader descendant called AuthenticateUserHeader that has UserName...
0
by: Mannfred | last post by:
I've written a complex web service in C# to be used by SmartDevices and I'm trying to reduce size of the message to the absolute minimum to save on cost, every byte counts etc. Is there any way...
10
by: Andy Kendall | last post by:
I have a problem accessing my custom SoapHeader from a SoapExtension. My extension has no compile time reference to the class derived from SoapHeader, so how can cast it into a SoapHeader of the...
0
by: Fred | last post by:
I am trying to build a consumer to a webservice which use soapheader. I am using Visual Studio 2003. Please see the wsdl-file below. Why is it that the SOAPHEADER is empty when I use it int the...
1
by: Joseph Geretz | last post by:
Given the following Web Service method definition: public DataTable GetData() { ... } If GetData throws an exception, obviously the functional return is toast.
4
by: Rasika WIJAYARATNE | last post by:
Hi everyone, We have a web method that accepts a type of AuthHeader containing credentials for validating WS calls, which is shown below: public class AuthHeader : SoapHeader { public string...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.