I'm cross posting from mscom.webservic es.general as I have received no answer
there:
There has been a number of recent posts requesting how to satisfactorily
enable BASIC authorization at the HTTP level but as yet no fully useful
answer.
I too have been trying to call an apache/axis webservice which desires a
username/password from my C# Client. (ie the equivalent of
_call.setUserna me("Myname") name from within a Java client proxy) Try as I
may I cannot get the AUTHORIZATION attribute to be included in the http
header. Some mention has been made of directly inserting the attribute into
the header ... but how does one get hold of the request object to do this?
Using the Credentials object method does not work for me.
Any clues ..? 13 15565
I think you just have to create a class that inherits from SoapHeader, then
include the <SoapHeader() > attribute to the method that will use it. I hope
I understood your question correctly.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystemWebS ervicesProtocol sSoapHeaderAttr ibuteClassTopic .htm
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconalteringso apmessageusings oapextensions.h tm
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message
news:74******** *************** ***********@mic rosoft.com... I'm cross posting from mscom.webservic es.general as I have received no answer there:
There has been a number of recent posts requesting how to satisfactorily enable BASIC authorization at the HTTP level but as yet no fully useful answer.
I too have been trying to call an apache/axis webservice which desires a username/password from my C# Client. (ie the equivalent of _call.setUserna me("Myname") name from within a Java client proxy) Try as I may I cannot get the AUTHORIZATION attribute to be included in the http header. Some mention has been made of directly inserting the attribute into the header ... but how does one get hold of the request object to do this? Using the Credentials object method does not work for me.
Any clues ..?
Thanks Jared,
However I'm looking for authentication at the http level not at the soap
level.
The SOAP/AXIS server I'm looking to connect my client desires basic
authentication
within the http header.
ie looking to see how to set the AUTHENTICATION attribute within the http
header.
Pete
"Jared" wrote: I think you just have to create a class that inherits from SoapHeader, then include the <SoapHeader() > attribute to the method that will use it. I hope I understood your question correctly.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystemWebS ervicesProtocol sSoapHeaderAttr ibuteClassTopic .htm
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconalteringso apmessageusings oapextensions.h tm
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message news:74******** *************** ***********@mic rosoft.com... I'm cross posting from mscom.webservic es.general as I have received no answer there:
There has been a number of recent posts requesting how to satisfactorily enable BASIC authorization at the HTTP level but as yet no fully useful answer.
I too have been trying to call an apache/axis webservice which desires a username/password from my C# Client. (ie the equivalent of _call.setUserna me("Myname") name from within a Java client proxy) Try as I may I cannot get the AUTHORIZATION attribute to be included in the http header. Some mention has been made of directly inserting the attribute into the header ... but how does one get hold of the request object to do this? Using the Credentials object method does not work for me.
Any clues ..?
Sorry about that.
Try looking into the System.Net.WebH eaderCollection object or the
System.Net namespace in general. The webclient may have the functionality
you are looking for.
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message
news:AC******** *************** ***********@mic rosoft.com... Thanks Jared, However I'm looking for authentication at the http level not at the soap level. The SOAP/AXIS server I'm looking to connect my client desires basic authentication within the http header. ie looking to see how to set the AUTHENTICATION attribute within the http header. Pete
"Jared" wrote:
I think you just have to create a class that inherits from SoapHeader, then include the <SoapHeader() > attribute to the method that will use it. I hope I understood your question correctly.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystemWebS ervicesProtocol sSoapHeaderAttr ibuteClassTopic .htm
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconalteringso apmessageusings oapextensions.h tm
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message news:74******** *************** ***********@mic rosoft.com... > I'm cross posting from mscom.webservic es.general as I have received no > answer > there: > > There has been a number of recent posts requesting how to > satisfactorily > enable BASIC authorization at the HTTP level but as yet no fully useful > answer. > > I too have been trying to call an apache/axis webservice which desires > a > username/password from my C# Client. (ie the equivalent of > _call.setUserna me("Myname") name from within a Java client proxy) Try > as I > may I cannot get the AUTHORIZATION attribute to be included in the http > header. Some mention has been made of directly inserting the attribute > into > the header ... but how does one get hold of the request object to do > this? > Using the Credentials object method does not work for me. > > Any clues ..? >
take a look at this link
Pass Current Credentials to an ASP.NET Web Service http://support.microsoft.com/?kbid=813834
"Jared" <VB***********@ email.com> wrote in
news:10******** *****@corp.supe rnews.com: Sorry about that. Try looking into the System.Net.WebH eaderCollection object or the System.Net namespace in general. The webclient may have the functionality you are looking for.
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message news:AC******** *************** ***********@mic rosoft.com... Thanks Jared, However I'm looking for authentication at the http level not at the soap level. The SOAP/AXIS server I'm looking to connect my client desires basic authentication within the http header. ie looking to see how to set the AUTHENTICATION attribute within the http header. Pete
"Jared" wrote:
I think you just have to create a class that inherits from SoapHeader, then include the <SoapHeader() > attribute to the method that will use it. I hope I understood your question correctly.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystem WebServicesProt ocolsSoapHeader AttributeClassT opic.htm
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconalte ringsoapmessage usingsoapextens ions.htm
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message news:74******** *************** ***********@mic rosoft.com... > I'm cross posting from mscom.webservic es.general as I have > received no answer > there: > > There has been a number of recent posts requesting how to > satisfactorily > enable BASIC authorization at the HTTP level but as yet no fully > useful answer. > > I too have been trying to call an apache/axis webservice which > desires a > username/password from my C# Client. (ie the equivalent of > _call.setUserna me("Myname") name from within a Java client proxy) > Try as I > may I cannot get the AUTHORIZATION attribute to be included in the > http header. Some mention has been made of directly inserting the > attribute into > the header ... but how does one get hold of the request object to > do this? > Using the Credentials object method does not work for me. > > Any clues ..? >
Thanks ... however I am aware of this, but the Credentials technique
(discussed int the link you kindly prvided) passes the credentails at the
SOAP Header level not the HTTP header level which in my case is desired for
the APache/AXIS server.
In the meantime I am looking at the info that Jared supplied.
PS I'm not using a web client, rather a windows forms client.
Pete
"old" wrote: take a look at this link Pass Current Credentials to an ASP.NET Web Service http://support.microsoft.com/?kbid=813834
"Jared" <VB***********@ email.com> wrote in news:10******** *****@corp.supe rnews.com:
Sorry about that. Try looking into the System.Net.WebH eaderCollection object or the System.Net namespace in general. The webclient may have the functionality you are looking for.
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message news:AC******** *************** ***********@mic rosoft.com... Thanks Jared, However I'm looking for authentication at the http level not at the soap level. The SOAP/AXIS server I'm looking to connect my client desires basic authentication within the http header. ie looking to see how to set the AUTHENTICATION attribute within the http header. Pete
"Jared" wrote:
I think you just have to create a class that inherits from SoapHeader, then include the <SoapHeader() > attribute to the method that will use it. I hope I understood your question correctly.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystem WebServicesProt ocolsSoapHeader AttributeClassT opic.htm
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconalte ringsoapmessage usingsoapextens ions.htm
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message news:74******** *************** ***********@mic rosoft.com... > I'm cross posting from mscom.webservic es.general as I have > received no answer > there: > > There has been a number of recent posts requesting how to > satisfactorily > enable BASIC authorization at the HTTP level but as yet no fully > useful answer. > > I too have been trying to call an apache/axis webservice which > desires a > username/password from my C# Client. (ie the equivalent of > _call.setUserna me("Myname") name from within a Java client proxy) > Try as I > may I cannot get the AUTHORIZATION attribute to be included in the > http header. Some mention has been made of directly inserting the > attribute into > the header ... but how does one get hold of the request object to > do this? > Using the Credentials object method does not work for me. > > Any clues ..? >
I was referring to the System.Net.WebC lient. You can send a post message to
a client with this class, I believe you can modify the headers, it's been a
while since i've used it.
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message
news:C8******** *************** ***********@mic rosoft.com... Thanks ... however I am aware of this, but the Credentials technique (discussed int the link you kindly prvided) passes the credentails at the SOAP Header level not the HTTP header level which in my case is desired for the APache/AXIS server. In the meantime I am looking at the info that Jared supplied. PS I'm not using a web client, rather a windows forms client. Pete
"old" wrote:
take a look at this link Pass Current Credentials to an ASP.NET Web Service http://support.microsoft.com/?kbid=813834
"Jared" <VB***********@ email.com> wrote in news:10******** *****@corp.supe rnews.com:
> Sorry about that. > Try looking into the System.Net.WebH eaderCollection object or the > System.Net namespace in general. The webclient may have the > functionality you are looking for. > > "Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message > news:AC******** *************** ***********@mic rosoft.com... >> Thanks Jared, >> However I'm looking for authentication at the http level not at the >> soap level. >> The SOAP/AXIS server I'm looking to connect my client desires basic >> authentication >> within the http header. >> ie looking to see how to set the AUTHENTICATION attribute within the >> http header. >> Pete >> >> >> "Jared" wrote: >> >>> I think you just have to create a class that inherits from >>> SoapHeader, then >>> include the <SoapHeader() > attribute to the method that will use it. >>> I hope >>> I understood your question correctly. >>> >>> ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystem >>> WebServicesProt ocolsSoapHeader AttributeClassT opic.htm >>> >>> ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconalte >>> ringsoapmessage usingsoapextens ions.htm >>> >>> "Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message >>> news:74******** *************** ***********@mic rosoft.com... >>> > I'm cross posting from mscom.webservic es.general as I have >>> > received no answer >>> > there: >>> > >>> > There has been a number of recent posts requesting how to >>> > satisfactorily >>> > enable BASIC authorization at the HTTP level but as yet no fully >>> > useful answer. >>> > >>> > I too have been trying to call an apache/axis webservice which >>> > desires a >>> > username/password from my C# Client. (ie the equivalent of >>> > _call.setUserna me("Myname") name from within a Java client proxy) >>> > Try as I >>> > may I cannot get the AUTHORIZATION attribute to be included in the >>> > http header. Some mention has been made of directly inserting the >>> > attribute into >>> > the header ... but how does one get hold of the request object to >>> > do this? >>> > Using the Credentials object method does not work for me. >>> > >>> > Any clues ..? >>> > >>> >>> >>> > >
Thanks Jared, however I'm not using a web client, I'm using Windows Forms
client(and I've tried a console client to keep things simple with the same
results). I have only have the web reference. So I think I need to be able
somehow to get the web request object and from there access the Http Request
object and from there be able to set the contents of the http header ???
Anyone any clues or examples on how to do this? It's the same problem as my
orginal question however I'm not getting any closer it seems.
When I use a Java client, it's really easy to set the http AUTHORIZATION
attributes. Not so apparently in .Net. This is so basic I'll bet the answer
is really easy but it has me stumped :)
Pete
"Jared" wrote: I was referring to the System.Net.WebC lient. You can send a post message to a client with this class, I believe you can modify the headers, it's been a while since i've used it.
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message news:C8******** *************** ***********@mic rosoft.com... Thanks ... however I am aware of this, but the Credentials technique (discussed int the link you kindly prvided) passes the credentails at the SOAP Header level not the HTTP header level which in my case is desired for the APache/AXIS server. In the meantime I am looking at the info that Jared supplied. PS I'm not using a web client, rather a windows forms client. Pete
"old" wrote:
take a look at this link Pass Current Credentials to an ASP.NET Web Service http://support.microsoft.com/?kbid=813834
"Jared" <VB***********@ email.com> wrote in news:10******** *****@corp.supe rnews.com:
> Sorry about that. > Try looking into the System.Net.WebH eaderCollection object or the > System.Net namespace in general. The webclient may have the > functionality you are looking for. > > "Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message > news:AC******** *************** ***********@mic rosoft.com... >> Thanks Jared, >> However I'm looking for authentication at the http level not at the >> soap level. >> The SOAP/AXIS server I'm looking to connect my client desires basic >> authentication >> within the http header. >> ie looking to see how to set the AUTHENTICATION attribute within the >> http header. >> Pete >> >> >> "Jared" wrote: >> >>> I think you just have to create a class that inherits from >>> SoapHeader, then >>> include the <SoapHeader() > attribute to the method that will use it. >>> I hope >>> I understood your question correctly. >>> >>> ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystem >>> WebServicesProt ocolsSoapHeader AttributeClassT opic.htm >>> >>> ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconalte >>> ringsoapmessage usingsoapextens ions.htm >>> >>> "Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message >>> news:74******** *************** ***********@mic rosoft.com... >>> > I'm cross posting from mscom.webservic es.general as I have >>> > received no answer >>> > there: >>> > >>> > There has been a number of recent posts requesting how to >>> > satisfactorily >>> > enable BASIC authorization at the HTTP level but as yet no fully >>> > useful answer. >>> > >>> > I too have been trying to call an apache/axis webservice which >>> > desires a >>> > username/password from my C# Client. (ie the equivalent of >>> > _call.setUserna me("Myname") name from within a Java client proxy) >>> > Try as I >>> > may I cannot get the AUTHORIZATION attribute to be included in the >>> > http header. Some mention has been made of directly inserting the >>> > attribute into >>> > the header ... but how does one get hold of the request object to >>> > do this? >>> > Using the Credentials object method does not work for me. >>> > >>> > Any clues ..? >>> > >>> >>> >>> > >
Pete,
I'm not talking about a browser or a web page, I too am talking about a
..NET WinForms application. Take the following code snippit for example:
Sub PostAMessage()
Dim Site As String = "http://www.yoursite.co m"
Dim Web As New System.Net.WebC lient
Web.Headers.Add ("AUTHORIZATION ", "SOMEVALUE" )
Dim Stream As System.IO.Strea m
Stream = Web.OpenRead(Si te)
Dim Reader As New System.IO.Strea mReader(Stream)
Dim Output As String = Reader.ReadToEn d()
Stream.Flush()
Stream.Close()
Reader.Close()
End Sub
This code is declared and used inside a windows application. The name of the
object I have been referring to is WebClient. You may want to see if it can
handle what you are trying to do.
Jared
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message
news:53******** *************** ***********@mic rosoft.com... Thanks Jared, however I'm not using a web client, I'm using Windows Forms client(and I've tried a console client to keep things simple with the same results). I have only have the web reference. So I think I need to be able somehow to get the web request object and from there access the Http Request object and from there be able to set the contents of the http header ??? Anyone any clues or examples on how to do this? It's the same problem as my orginal question however I'm not getting any closer it seems.
When I use a Java client, it's really easy to set the http AUTHORIZATION attributes. Not so apparently in .Net. This is so basic I'll bet the answer is really easy but it has me stumped :)
Pete
"Jared" wrote:
I was referring to the System.Net.WebC lient. You can send a post message to a client with this class, I believe you can modify the headers, it's been a while since i've used it.
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message news:C8******** *************** ***********@mic rosoft.com... > Thanks ... however I am aware of this, but the Credentials technique > (discussed int the link you kindly prvided) passes the credentails at > the > SOAP Header level not the HTTP header level which in my case is desired > for > the APache/AXIS server. > In the meantime I am looking at the info that Jared supplied. > PS I'm not using a web client, rather a windows forms client. > Pete > > "old" wrote: > >> take a look at this link >> Pass Current Credentials to an ASP.NET Web Service >> http://support.microsoft.com/?kbid=813834 >> >> >> "Jared" <VB***********@ email.com> wrote in >> news:10******** *****@corp.supe rnews.com: >> >> > Sorry about that. >> > Try looking into the System.Net.WebH eaderCollection object or >> > the >> > System.Net namespace in general. The webclient may have the >> > functionality you are looking for. >> > >> > "Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message >> > news:AC******** *************** ***********@mic rosoft.com... >> >> Thanks Jared, >> >> However I'm looking for authentication at the http level not at the >> >> soap level. >> >> The SOAP/AXIS server I'm looking to connect my client desires basic >> >> authentication >> >> within the http header. >> >> ie looking to see how to set the AUTHENTICATION attribute within >> >> the >> >> http header. >> >> Pete >> >> >> >> >> >> "Jared" wrote: >> >> >> >>> I think you just have to create a class that inherits from >> >>> SoapHeader, then >> >>> include the <SoapHeader() > attribute to the method that will use >> >>> it. >> >>> I hope >> >>> I understood your question correctly. >> >>> >> >>> ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystem >> >>> WebServicesProt ocolsSoapHeader AttributeClassT opic.htm >> >>> >> >>> ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconalte >> >>> ringsoapmessage usingsoapextens ions.htm >> >>> >> >>> "Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message >> >>> news:74******** *************** ***********@mic rosoft.com... >> >>> > I'm cross posting from mscom.webservic es.general as I have >> >>> > received no answer >> >>> > there: >> >>> > >> >>> > There has been a number of recent posts requesting how to >> >>> > satisfactorily >> >>> > enable BASIC authorization at the HTTP level but as yet no fully >> >>> > useful answer. >> >>> > >> >>> > I too have been trying to call an apache/axis webservice which >> >>> > desires a >> >>> > username/password from my C# Client. (ie the equivalent of >> >>> > _call.setUserna me("Myname") name from within a Java client >> >>> > proxy) >> >>> > Try as I >> >>> > may I cannot get the AUTHORIZATION attribute to be included in >> >>> > the >> >>> > http header. Some mention has been made of directly inserting >> >>> > the >> >>> > attribute into >> >>> > the header ... but how does one get hold of the request object >> >>> > to >> >>> > do this? >> >>> > Using the Credentials object method does not work for me. >> >>> > >> >>> > Any clues ..? >> >>> > >> >>> >> >>> >> >>> >> > >> > >> >> >>
Pete,
I have exhausted my knowledge of webservices, my experience with them is
solely from the Microsoft platforms, where I can use my trusty soap headers
and ICredentials. It seems as though everyone else has shied away from this
post, I would try to find a group on Apache or try to post in the
microsoft.publi c.framework.asp net.webservices groups. Best of luck and when
you find your answer post it so others can benefit.
Jared
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message
news:63******** *************** ***********@mic rosoft.com... Thanks Jared. You have excellently and precisely laid out the functionality of what I'm looking for except that I need it in the context of a "Web Reference" that I have rather than a newly declared web client (which I think means I miss out on the ease of use of a web reference I presume). i.e I need to be able to "wind" backwards to the http context from the web reference which seems to be protocol agnostic (which makes sense as protocols other than http could potentially be used for the soap message). So I suppose a better way to phrase the question is "How may I obtain the http context from a web reference?" I could, I suppose construct the web service call "by hand" ignoring the ease of use of Visual Studio inserting a web reference for me. But this seems such a pity as it would mean considerably more work (I think).
Still, I'll look further into what you have suggested ...:)
Thanks again.
Pete
"Jared" wrote:
Pete, I'm not talking about a browser or a web page, I too am talking about a ..NET WinForms application. Take the following code snippit for example:
Sub PostAMessage() Dim Site As String = "http://www.yoursite.co m" Dim Web As New System.Net.WebC lient Web.Headers.Add ("AUTHORIZATION ", "SOMEVALUE" ) Dim Stream As System.IO.Strea m Stream = Web.OpenRead(Si te) Dim Reader As New System.IO.Strea mReader(Stream) Dim Output As String = Reader.ReadToEn d() Stream.Flush() Stream.Close() Reader.Close() End Sub
This code is declared and used inside a windows application. The name of the object I have been referring to is WebClient. You may want to see if it can handle what you are trying to do.
Jared
"Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message news:53******** *************** ***********@mic rosoft.com... > Thanks Jared, however I'm not using a web client, I'm using Windows > Forms > client(and I've tried a console client to keep things simple with the > same > results). I have only have the web reference. So I think I need to be > able > somehow to get the web request object and from there access the Http > Request > object and from there be able to set the contents of the http header > ??? > Anyone any clues or examples on how to do this? It's the same problem > as > my > orginal question however I'm not getting any closer it seems. > > When I use a Java client, it's really easy to set the http > AUTHORIZATION > attributes. Not so apparently in .Net. This is so basic I'll bet the > answer > is really easy but it has me stumped :) > > Pete > > "Jared" wrote: > >> I was referring to the System.Net.WebC lient. You can send a post >> message >> to >> a client with this class, I believe you can modify the headers, it's >> been >> a >> while since i've used it. >> >> "Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message >> news:C8******** *************** ***********@mic rosoft.com... >> > Thanks ... however I am aware of this, but the Credentials technique >> > (discussed int the link you kindly prvided) passes the credentails >> > at >> > the >> > SOAP Header level not the HTTP header level which in my case is >> > desired >> > for >> > the APache/AXIS server. >> > In the meantime I am looking at the info that Jared supplied. >> > PS I'm not using a web client, rather a windows forms client. >> > Pete >> > >> > "old" wrote: >> > >> >> take a look at this link >> >> Pass Current Credentials to an ASP.NET Web Service >> >> http://support.microsoft.com/?kbid=813834 >> >> >> >> >> >> "Jared" <VB***********@ email.com> wrote in >> >> news:10******** *****@corp.supe rnews.com: >> >> >> >> > Sorry about that. >> >> > Try looking into the System.Net.WebH eaderCollection object or >> >> > the >> >> > System.Net namespace in general. The webclient may have the >> >> > functionality you are looking for. >> >> > >> >> > "Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message >> >> > news:AC******** *************** ***********@mic rosoft.com... >> >> >> Thanks Jared, >> >> >> However I'm looking for authentication at the http level not at >> >> >> the >> >> >> soap level. >> >> >> The SOAP/AXIS server I'm looking to connect my client desires >> >> >> basic >> >> >> authentication >> >> >> within the http header. >> >> >> ie looking to see how to set the AUTHENTICATION attribute within >> >> >> the >> >> >> http header. >> >> >> Pete >> >> >> >> >> >> >> >> >> "Jared" wrote: >> >> >> >> >> >>> I think you just have to create a class that inherits from >> >> >>> SoapHeader, then >> >> >>> include the <SoapHeader() > attribute to the method that will >> >> >>> use >> >> >>> it. >> >> >>> I hope >> >> >>> I understood your question correctly. >> >> >>> >> >> >>> ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystem >> >> >>> WebServicesProt ocolsSoapHeader AttributeClassT opic.htm >> >> >>> >> >> >>> ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpguide/html/cpconalte >> >> >>> ringsoapmessage usingsoapextens ions.htm >> >> >>> >> >> >>> "Pete" <phayward_delet e@delete_bigfoo t.com> wrote in message >> >> >>> news:74******** *************** ***********@mic rosoft.com... >> >> >>> > I'm cross posting from mscom.webservic es.general as I have >> >> >>> > received no answer >> >> >>> > there: >> >> >>> > >> >> >>> > There has been a number of recent posts requesting how to >> >> >>> > satisfactorily >> >> >>> > enable BASIC authorization at the HTTP level but as yet no >> >> >>> > fully >> >> >>> > useful answer. >> >> >>> > >> >> >>> > I too have been trying to call an apache/axis webservice >> >> >>> > which >> >> >>> > desires a >> >> >>> > username/password from my C# Client. (ie the equivalent of >> >> >>> > _call.setUserna me("Myname") name from within a Java client >> >> >>> > proxy) >> >> >>> > Try as I >> >> >>> > may I cannot get the AUTHORIZATION attribute to be included >> >> >>> > in >> >> >>> > the >> >> >>> > http header. Some mention has been made of directly inserting >> >> >>> > the >> >> >>> > attribute into >> >> >>> > the header ... but how does one get hold of the request >> >> >>> > object >> >> >>> > to >> >> >>> > do this? >> >> >>> > Using the Credentials object method does not work for me. >> >> >>> > >> >> >>> > Any clues ..? >> >> >>> > >> >> >>> >> >> >>> >> >> >>> >> >> > >> >> > >> >> >> >> >> >> >> >> >> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dan Stromberg |
last post by:
If I wanted to write a python script that performs basic auth, gets a
cookie, and then does an http POST using the cookie for authentication,
what would be the best python API to write to?
Does someone already have example code that does something like this?
Thanks.
|
by: Michael Foord |
last post by:
#!/usr/bin/python -u
# 15-09-04
# v1.0.0
# auth_example.py
# A simple script manually demonstrating basic authentication.
# Copyright Michael Foord
# Free to use, modify and relicense.
# No warranty express or implied for the accuracy, fitness to purpose
|
by: Frank |
last post by:
I have observed that a temporary loss of a domain controller can cause
problems creating new ado connections between a client machine running
ado and a separate sql server machine that are members of the domain.
I understand why this happens when creating connections with windows
authentication. What is a mystery is that it also sometimes effects
new connections that use "sql authentication". Below is a description
of my test scenario.
...
|
by: Brett Porter |
last post by:
Hi,
A very large portion of my site uses forms authentication which seems
to work reasonably well. However many of my authenticated pages
display a basic authentication dialogue box prior to display, even
though I am authenticated. Clicking cancel to the dialogue box
displays the page fine with no problem however after a while this
becomes very annoying!
The pages that display the basic authentication dialogue box all pull
|
by: Barry |
last post by:
The MS fix for IE broke how users access our site (if they patch their
browsers), so I need a solution to get users logged onto our site
transparently.
Basically we used to log on to the site by:
http://username:pwd@www.mysite.com/main/ which uses basic auth, but now that
doesn't work. I would like to find a way where I can still use basic auth
and tell the people hitting our site to modify their url to:...
| |
by: Chris Gatto |
last post by:
Hi,
I'm having what should be a minor problem but has turned into a 2 day slug
fest with ASP.Net. I am simply attempting to authenticate my asp.net
application users against users in an AD group set up on our domain. It
seems to me I am missing something very simple and obvious, but none of the
MSDN articles I have read are indicating what this might be.
My setup is ASP.Net running on a Windows 2003/IIS 6 server. IIS security...
|
by: Chad Beckner |
last post by:
Hi everyone,
I am developing a site in which the root will be set with Anonymous &
Basic permissions. Past that I will have an application (directory) in
which I will be developing applications. In the past, I have been able to
use a ISAPI Filter to add the response headers dynamically, and add the
authentication to the request, therefore, allowing users into the secure
directory, and all of this is form based, there is no browser...
|
by: sefe dery |
last post by:
hi ng,
i try to create a asp.net 1.0 website on windows server 2003(Servername:
ServerX) with iis 6.0.
PROBLEM:
The user should login with his windows credentials in basic.aspx and
automatically redirect to his own files.
i have the following file-structure:
|
by: =?Utf-8?B?S29uc3RhbnRpbg==?= |
last post by:
I am currently working on the application that need to simulate basic
authentication programmatically using user's credentials that are known.
Basically, the need is for a single sign on with a third party application.
The scenario is the following: a third party application (iChain I believe,
from Novell) is used to authenticate the user against Novell eDirectory. Once
authentication is complete a user is taken to a portal from which they...
|
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...
|
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,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |