473,512 Members | 15,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SOAP missing HEADER

1 New Member
I could not generate the HEADER in the SOAP. Any solution?

Here is the way I call the web service in .net 3.5 and bind with Cert:
Expand|Select|Wrap|Line Numbers
  1. webservice.getData webData = new webservic.getData();
  2.  
  3. webData.myObject webObj = new webData.myObject();
  4. webObj.myID = "ABC";
  5. webObj.myName = "John";
  6.  
  7. X509Certificate cert = X509Certificate.CreateFromCertFile(@"C:\mycert\mycert.cer");
  8.  
  9. webData.ClientCertificates.Add(webObj);
  10. strReturnData = webData.myRequest(myObject).ToString();
  11.  
I want the output like this:
Expand|Select|Wrap|Line Numbers
  1. <Envelope>
  2.  
  3. <Header>
  4. <soap:Signature>
  5. ...
  6. </soap:Signature>
  7. </Header>
  8.  
  9. <Body>
  10. ...
  11. </Body>
  12. <Envelope>
May 31 '10 #1
0 903

Sign in to post your reply or Sign up for a free account.

Similar topics

8
3864
by: Jamie Cockburn | last post by:
Hi, I have writen a C programme that uses regular expresions and imports a file called regex.h. On the uni computers the programme compiles fine but at home on my own PC the compiler complains...
2
2188
by: Kamlesh | last post by:
Hello, I am writing a computer graphics program in Turbo C compiler on DOS environment. The source code includes "vga.h", but I do not have this file in my TurboC directory. Please let me...
9
1889
by: Daniel | last post by:
Hi, While I compile my old C++ source in VC.Net, rebulild whole project, there are always some header files are unvaliable like "fstream.h", "Dxguide.h".....etc. Did VC.Net remove the VC++'s...
0
3315
by: samiam | last post by:
I have a .NET web service as follows. public class ResponseHeader:SoapHeader { public string ReturnCode; public string Message; } public class WS : System.Web.Services.WebService,...
0
5595
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE...
0
1445
by: bhu | last post by:
I have a simple helloworld web service , when i call this service from the client this is the message sent. -----SoapRequest at 6/7/2006 10:18:11 PM <?xml version="1.0"...
4
8594
by: Lee Franke | last post by:
The application that I want to use requires the header to contain a username/password. Example: <soap:Header> <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext">...
2
3272
by: =?Utf-8?B?RXVnZW5l?= | last post by:
Hi, I use a datagrid with asp:templatecolumn, and handles the datagrid's ItemDataBound event, whereby I assign a value to this asp:templatecolumn text. e.Item.Cells.Text = e.Item.Cells.Text +...
0
3046
by: broersen | last post by:
Hello, Does someone know how to create manually the header for an SOAP message, without having an WSDL? I also use an X509 certificate for connecting to the webservice. Can anyone help me to get...
0
2768
by: broersen | last post by:
Hello, Does someone know how to create manually the header for an SOAP message, without having an WSDL? I also use an X509 certificate for connecting to the webservice. Can anyone help me to get...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
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
7517
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...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.