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

HELP - SoadHeader generated in client

All the examples show how to have a soapheader (such as authorisation)
consumed by the webservice, but not how to construct one if it is not in the
wsdl.

The WebService I am trying to call requires a soap header, but I cant find
how to write the header into the request using VB.Net. I can find out how to
process it at the client, but not generate it.

I created a new project with a web reference generated by VisualStudio
pointed at the wsdl. The PlaceOrder method needs the header, but I cant
work out how to insert it.

Please help, or if anyone has sample code ...

Thanks (Snip of source code)
'This source code was auto-generated by Microsoft.VSDesigner, Version
1.1.4322.2032.

<System.Diagnostics.DebuggerStepThroughAttribute() ,
System.ComponentModel.DesignerCategoryAttribute("c ode"),
System.Web.Services.WebServiceBindingAttribute(Nam e:="PlaceOrderSoapBinding",
[Namespace]:="http://www.compname.com/wsdl/")> _

Public Class RemoteAPI Inherits
System.Web.Services.Protocols.SoapHttpClientProtoc ol

<System.Web.Services.Protocols.SoapRpcMethodAttrib ute("http://www.compname.com/action/PlaceOrder",
RequestNamespace:="http://www.compname.com/message/",
ResponseNamespace:="http://www.compname.com/message/")> _

Public Function PlaceOrder(ByVal Order As Order) As
<System.Xml.Serialization.SoapElementAttribute("Or derReply")> OrderReply

Dim results() As Object = Me.Invoke("PlaceOrder", New Object() {Order})

Return CType(results(0), OrderReply)

End Function
Nov 23 '05 #1
0 1071

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

Similar topics

1
by: yongsing | last post by:
I have a Redhat Linux 9 system which I need to run Java programs to access a DB2 database residing on a remote server. The following web site allows me to download DB2 clients: ...
0
by: Norton | last post by:
Seems cross post if my post the smart client questions here, does anyone know where can i get help? Thx a lot Regards, norton
0
by: Norton | last post by:
Hi, I would following the Smart Client Application Block to develop a sample application, but it always hang in running the form (thatz the Controller class hangs when running the Form). It...
0
by: jennifer.perkins | last post by:
I've seen a couple posts by people having similar problems, but the suggested solutions I've tried so far haven't worked. I'm using a SOAP client in VB.Net (constructed by wsdl.exe) and the...
0
by: Andrew Baker | last post by:
All the examples show how to have a soapheader (such as authorisation) consumed by the webservice, but not how to construct one if it is not in the wsdl. The WebService I am trying to call...
1
by: Abhishek Parwal | last post by:
i am trying to build messenger client for msn. if any body has got api's of this pls post it. Any other idea is welcome. thanks Abhishek
1
by: Keithb | last post by:
I have two iis 6.0 web servers running identical code. MaintainScrollPositionOnPostBack works on one server and not on the other. My efforts to correct the issue include running aspnet_regiis with...
0
by: awais1989 | last post by:
i want to make a simple chat client for LAN as show in the attached image. can some1 give me code for this? http://img215.imageshack.us/img215/6379/tempimgmx4.jpg
1
by: leenadiwan | last post by:
Hi All!! We are doing a POC currently wherein we need to get the System colours in the JSP file. Example: If user has set a specific theme, we want to be able to get the theme details through...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.