473,606 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to compensate for missing header information in WSDL?

The application that I want to use requires the header to contain a
username/password.

Example:

<soap:Header>
<wsse:Securit y xmlns:wsse="htt p://schemas.xmlsoap .org/ws/2002/04/secext">
<wsse:UsernameT oken>
<wsse:Username> fluffy</wsse:Username>
<wsse:Passwor d Type="wsse:Pass wordText">bunny </wsse:Password>
</wsse:UsernameTo ken>
</wsse:Security>
</soap:Header>

The problem is that the WSDL of the webservice does not contain any
information reagarding this header information (shouldn't it?).

So when I add a web reference in my client application there is no class
reference to allow me to set the Username and Password for the header.

What (and how) do I need to modify for the class reference to appear?
Reference.cs? The WSDL itself then reimport? I can get it to work by
building the XML then just HTTP Post it to the URL, but I would rather let
the program do it for me.

thanks,

lee

Sep 26 '06 #1
4 8597
q
What webservices system are you using? ASMX? WSE? WCF?

You need WSE or WCF to do that... ASMX doesn't really support anything
but the most basic of webservices. They don't account for any of the
stronger specs.

Lee Franke wrote:
The application that I want to use requires the header to contain a
username/password.

Example:

<soap:Header>
<wsse:Securit y xmlns:wsse="htt p://schemas.xmlsoap .org/ws/2002/04/secext">
<wsse:UsernameT oken>
<wsse:Username> fluffy</wsse:Username>
<wsse:Passwor d Type="wsse:Pass wordText">bunny </wsse:Password>
</wsse:UsernameTo ken>
</wsse:Security>
</soap:Header>

The problem is that the WSDL of the webservice does not contain any
information reagarding this header information (shouldn't it?).

So when I add a web reference in my client application there is no class
reference to allow me to set the Username and Password for the header.

What (and how) do I need to modify for the class reference to appear?
Reference.cs? The WSDL itself then reimport? I can get it to work by
building the XML then just HTTP Post it to the URL, but I would rather let
the program do it for me.

thanks,

lee
Sep 26 '06 #2
I am using a asmx page (framework 1.1).

I would think that as long as it is defined in the WSDL that the classes
would be generated.

Is that not correct?

Also what is WSE and WCF? DotNet technologies.

(bit of a newbie to the webservices).

thanks,
lee
"q" <ag******@gmail .comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
What webservices system are you using? ASMX? WSE? WCF?

You need WSE or WCF to do that... ASMX doesn't really support anything
but the most basic of webservices. They don't account for any of the
stronger specs.

Lee Franke wrote:
>The application that I want to use requires the header to contain a
username/password.

Example:

<soap:Header >
<wsse:Securi ty xmlns:wsse="htt p://schemas.xmlsoap .org/ws/2002/04/secext">
<wsse:Username Token>
<wsse:Username >fluffy</wsse:Username>
<wsse:Passwo rd Type="wsse:Pass wordText">bunny </wsse:Password>
</wsse:UsernameTo ken>
</wsse:Security>
</soap:Header>

The problem is that the WSDL of the webservice does not contain any
information reagarding this header information (shouldn't it?).

So when I add a web reference in my client application there is no class
reference to allow me to set the Username and Password for the header.

What (and how) do I need to modify for the class reference to appear?
Reference.cs ? The WSDL itself then reimport? I can get it to work by
building the XML then just HTTP Post it to the URL, but I would rather
let
the program do it for me.

thanks,

lee

Sep 26 '06 #3
q
Web service security follows the WS-Security specification.. . ASMX has
no idea what that is. You need to get WSE3 from Microsoft. Google for
"wse3 dowload". Then read forever until you are sick of reading. WSE3
isn't that intuitive... fortunately WCF (a part of .NET 3.0) is almost
out.

Also, you need .NET 2.0. You will never get this working in .NET 1.1.
Almost nothing advanced will work in .NET 1.1. I hated that thing...

Lee Franke wrote:
I am using a asmx page (framework 1.1).

I would think that as long as it is defined in the WSDL that the classes
would be generated.

Is that not correct?

Also what is WSE and WCF? DotNet technologies.

(bit of a newbie to the webservices).

thanks,
lee
"q" <ag******@gmail .comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
What webservices system are you using? ASMX? WSE? WCF?

You need WSE or WCF to do that... ASMX doesn't really support anything
but the most basic of webservices. They don't account for any of the
stronger specs.

Lee Franke wrote:
The application that I want to use requires the header to contain a
username/password.

Example:

<soap:Header>
<wsse:Securit y xmlns:wsse="htt p://schemas.xmlsoap .org/ws/2002/04/secext">
<wsse:UsernameT oken>
<wsse:Username> fluffy</wsse:Username>
<wsse:Passwor d Type="wsse:Pass wordText">bunny </wsse:Password>
</wsse:UsernameTo ken>
</wsse:Security>
</soap:Header>

The problem is that the WSDL of the webservice does not contain any
information reagarding this header information (shouldn't it?).

So when I add a web reference in my client application there is no class
reference to allow me to set the Username and Password for the header.

What (and how) do I need to modify for the class reference to appear?
Reference.cs? The WSDL itself then reimport? I can get it to work by
building the XML then just HTTP Post it to the URL, but I would rather
let
the program do it for me.

thanks,

lee
Sep 27 '06 #4
q
Come to think of it... you could do what I do at times. Half the time
people are giving me these LAME "wsdl" files for "web services" that
are NOT wsdl files that do NOT go with web services. They are only
"services" because they do NOT follow the specifications. .. so I ended
up writing my own webservice framework to deal with stuff like this...
at the heart of it was simple HTTP calls. You can do that too. If you
don't need https communication this is fairly easy. Web services are
really nothing more than XML going back and forth, you can do it all
manually if you want. It's not really that difficult.

That said... you really need to get on .NET 2.0 with WSE3 or get .NET
3.0. Using .NET 1.1 now adays just won't cut it...

Lee Franke wrote:
I am using a asmx page (framework 1.1).

I would think that as long as it is defined in the WSDL that the classes
would be generated.

Is that not correct?

Also what is WSE and WCF? DotNet technologies.

(bit of a newbie to the webservices).

thanks,
lee
"q" <ag******@gmail .comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
What webservices system are you using? ASMX? WSE? WCF?

You need WSE or WCF to do that... ASMX doesn't really support anything
but the most basic of webservices. They don't account for any of the
stronger specs.

Lee Franke wrote:
The application that I want to use requires the header to contain a
username/password.

Example:

<soap:Header>
<wsse:Securit y xmlns:wsse="htt p://schemas.xmlsoap .org/ws/2002/04/secext">
<wsse:UsernameT oken>
<wsse:Username> fluffy</wsse:Username>
<wsse:Passwor d Type="wsse:Pass wordText">bunny </wsse:Password>
</wsse:UsernameTo ken>
</wsse:Security>
</soap:Header>

The problem is that the WSDL of the webservice does not contain any
information reagarding this header information (shouldn't it?).

So when I add a web reference in my client application there is no class
reference to allow me to set the Username and Password for the header.

What (and how) do I need to modify for the class reference to appear?
Reference.cs? The WSDL itself then reimport? I can get it to work by
building the XML then just HTTP Post it to the URL, but I would rather
let
the program do it for me.

thanks,

lee
Sep 27 '06 #5

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

Similar topics

15
3006
by: Shaun Wilde | last post by:
I am not sure if this is a .NET bug/feature and IIS5 one or a combination of the 2 so here goes I have a situation where when I call an ASP.NET webservice running under windows 2000 (I assume IIS5) with a webservice client also in .NET that the webservice request loses the Authorization HTML header. This DOES NOT happen under Windows 2003. I am using the followng (patch/fix) to preauthenticate the web request (this
6
20237
by: john deviney | last post by:
I have a C#/.Net 1.1 client talking to a Java based web service. I need to insert a soap header on the client side which is expected on the server side. Currently, the Java ws provider, Axis, does not support automatic wsdl generation of custom headers so the wsdl has no information regarding the required header. I've read through a lot of material and managed to get a workable solution but it is far from ideal. I created a new...
0
4127
by: John Jenkins | last post by:
Hi, any help on this would be greatly apprciated. I have been given a wsdl file from a customer generated by Oracle 10g Web Services tools. When I use wsdl.exe to attempt to produce proxy classes I get the following error: Error: Unable to import binding 'SubmitMessageSkeletonBinding' from namespace 'http://webservices/SubmitMessageSkeleton.wsdl' Unable to import operation 'SubmitMessage' The element 'http://www.w3.org/2001/XMLSchema:any'...
2
7722
by: Danny Gagne | last post by:
I'm currently working an .net application (I can use 1.1 or 2.0 if needed) that needs to read a wsdl file and generate another piece of code that can use it. I'm encountering a problem where I cannot extract all of the type information from the wsdl using any standard tools. I'm using HttpGet style webservices if that makes any difference, but I want to be able to use any type. 1. I've tried the ServiceDescription.Types and I cannot...
0
1974
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool error: Unable to import WebService/Schema. Unable to import binding 'MyRemoteObjectBinding' from namespace...
0
4826
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import WebService/Schema. Unable to import binding 'MyRemoteObjectBinding' from namespace 'http://schemas.microsoft.com/clr/nsassem/RemoteServer/RemoteServer%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'. Unable to import...
6
43013
by: Peter van der veen | last post by:
Hi I have the following problem. I'm calling a webservice from within a VB.net 2005 Windows program. For this i got a WSDL file and loaded that in VB. Until now i just call the webservice and everything works OK. Now i need to add an extra attribute/header element to the SOAP header before i contact the webservice.
2
18123
by: =?Utf-8?B?TWlndWVsIElzaWRvcm8=?= | last post by:
Hi, I've built an ASP.NET 1.1 web service and an ASP.NET 1.1 application that calls it is throwing the following exception: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://ipm.sitefactory.com/Authenticate. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at
0
1573
by: Kjartan Furnes | last post by:
Hi, I'm trying to access a webservice on an axis server from my .net client (c#). First I have to call a login service that returns a session ID. This session id should then be added to the header of the actual webserivce call together with a userid and version number. The header should look like this: <soapenv:Header> <ns1:UserID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"...
0
8009
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7939
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8428
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8299
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6753
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5456
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3919
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3964
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.