473,320 Members | 1,744 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,320 software developers and data experts.

How to Add an new SOAP header envelop to a SOAP header?

Hi

I have a problem in VB.net 2.0

We are using a third party webservice.
I have loaded the wsdl file and can access the functions the service
has.

Now this party wants that we add a SOAP header element named 'Vendor'
so that they can distinguis which vendor called the webservice.

How do i do that in VB?

I now just use the functions as they are exposed by the wsdl file
(added as a web reference).

The vendor only added some JAVA code as an example.

// Construct the header
QName headerName = new QName("
http://ech.client.nl/vendor", "Vendor");
SOAPHeaderElement headerElement = new
SOAPHeaderElement(headerName);
headerElement.setValue("ECH Gui");
headerElement.setMustUnderstand(true);

try {
Message message = arg0.getCurrentMessage();

message.getSOAPHeader().addChildElement(headerElem ent);
} catch (SOAPException se) {
logger.error("Can Not Add SOAP header
'Vendor'", se);
}

But how do i do this is VB so i can add the this to the SOAP messages
when calling tghe webservice?

Peter
Jul 17 '06 #1
0 930

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

Similar topics

2
by: c | last post by:
We have an API that has an XML interface. We have a client who has a .NET application and wants to use our API. Why will SOAP make life easier for our client? It seems to me that .NET to XML...
0
by: chr | last post by:
Hi, I'm trying to integrate a webservice into a c#-program, creating proxy classes from a wsdl-file with wsdl.exe. All works fine, except if containers are returned. Although I can see in the...
1
by: Champika Nirosh | last post by:
Hi all, I am just comparing webservice performance.. What really have in SOAP envelop?? Is it taking lots of space.. get me some data regarding this soap envelop
0
by: tshad | last post by:
I am trying to create a proxy and soap from a sample file and it won't create multiple dimensional arrays for some reason. I am getting the same results if "Line" is not a Multidimensional array. ...
1
by: Peter van der veen | last post by:
Hi I have a problem in VB.net 2.0 We are using a third party webservice. I have loaded the wsdl file and can access the functions the service has. Now this party wants that we add a SOAP...
0
by: neerajdeswal | last post by:
Testing Soap envelop (as Text File) in RPC Method Hi, I have created a web service based on a interface contract given by client. Now client wants to test it based on a given...
0
by: lallous | last post by:
Hello, I am new to webservice internals and I used the web service wizard to generate the webservice class and appropriate objects. After issueing a request, I noticed that the SOAP message...
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: fragmonster | last post by:
Hi, I have a .NET Web Service. I must write a client in PHP5. I've got a problem with the formatting of my SoapHeader. In fact, the prefix of the namespace does not apply to the entire header...
2
by: monsalvo | last post by:
What's so wrong with my code? This line is part of a VBScript soap client part of a DTS wich is functional in a 90 percent. strText = .responseXML.selectSingleNode("//" login "loginReturn") ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.