基本认证......解决方案似乎很神秘? [英] Basic Authentication ... solution seems a mystery?

查看:55
本文介绍了基本认证......解决方案似乎很神秘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从mscom.webservices.general发帖,因为我没有收到回答

那里:


最近有一些请求如何令人满意的帖子

在HTTP级别启用BASIC授权但尚未完全有用

答案。


我也是一直试图打电话给我的C#客户端需要一个

用户名/密码的apache / axis webservice。 (即相当于来自Java客户端代理中的
_call.setUsername(" Myname))名称尝试我

我可能无法获得AUTHORIZATION属性包含在http

标题中。有人提到直接将属性插入到标题中的

...但是如何获取请求对象来执行此操作?

使用Credentials对象方法对我不起作用。


任何线索..?

I''m cross posting from mscom.webservices.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.setUsername("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认为你只需要创建一个继承自SoapHeader的类,然后

包括< SoapHeader()>属性将使用它的方法。我希望

我理解你的问题。


ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/ html / frlrfSystemWebServicesProtocolsSoapHeaderAttribute ClassTopic.htm

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconalteringsoapmessageusingsoapextensions.htm


" Pete" < phayward_delete@delete_bigfoot.com>在消息中写道

news:74 ********************************** @ microsof t.com ...
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.2003FEB.1033/cpref/html/frlrfSystemWebServicesProtocolsSoapHeaderAttribute ClassTopic.htm

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconalteringsoapmessageusingsoapextensions.htm

"Pete" <phayward_delete@delete_bigfoot.com> wrote in message
news:74**********************************@microsof t.com...
我正在从mscom.webservices.general交叉发帖,因为我没有收到
回答
那里:

最近有一些帖子要求如何令人满意地在HTTP级别启用BASIC授权,但目前还没有完全有用的答案。

我也一直试图打电话一个apache / axis webservice,它需要来自我的C#Client的用户名/密码。 (即相当于Java客户端代理中的_call.setUsername(" Myname)名称)尝试我可能无法将AUTHORIZATION属性包含在http
中头。有人提到直接将属性
插入到标题中......但是如何获取请求对象来执行此操作?
使用凭据对象方法不起作用对我来说。

任何线索..?
I''m cross posting from mscom.webservices.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.setUsername("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 ..?



谢谢Jared,

但是我''我在http级别寻找身份验证而不是肥皂

级别。

SOAP / AXIS服务器我想要连接我的客户端欲望基本

身份验证
http头中的


即查看如何在http

标头中设置AUTHENTICATION属性。

Pete

" Jared"写道:
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:
我认为你只需创建一个继承自SoapHeader的类,然后
包括< SoapHeader()>属性将使用它的方法。我希望
我理解你的问题。

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemWebServicesProtocolsSoapHeaderAttribute ClassTopic.htm

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconalteringsoapmessageusingsoapextensions.htm

皮特 < phayward_delete@delete_bigfoot.com>在消息中写道
新闻:74 ********************************** @ microsof t.com。 ..
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.2003FEB.1033/cpref/html/frlrfSystemWebServicesProtocolsSoapHeaderAttribute ClassTopic.htm

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconalteringsoapmessageusingsoapextensions.htm

"Pete" <phayward_delete@delete_bigfoot.com> wrote in message
news:74**********************************@microsof t.com...
我从mscom.webservices.general交叉发帖,因为我没有收到
回答
那里:

有一个最近的帖子数量要求如何令人满意地在HTTP级别启用BASIC授权但尚未完全有用
答案。

我也试图调用apache / axis webservice需要我的C#客户端的用户名/密码。 (即相当于Java客户端代理中的_call.setUsername(" Myname)名称)尝试我可能无法将AUTHORIZATION属性包含在http
中头。有人提到直接将属性
插入到标题中......但是如何获取请求对象来执行此操作?
使用凭据对象方法不起作用对我来说。

任何线索..?
I''m cross posting from mscom.webservices.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.setUsername("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 ..?




对此感到抱歉。

一般来说,请尝试查看System.Net.WebHeaderCollection对象或

System.Net命名空间。 webclient可能具有您正在寻找的功能




" Pete" < phayward_delete@delete_bigfoot.com>在消息中写道

新闻:AC ********************************** @ microsof t.com ...
Sorry about that.
Try looking into the System.Net.WebHeaderCollection object or the
System.Net namespace in general. The webclient may have the functionality
you are looking for.

"Pete" <phayward_delete@delete_bigfoot.com> wrote in message
news:AC**********************************@microsof t.com...
谢谢Jared,
然而,我正在寻找http级别的身份验证而不是肥皂级别。
SOAP / AXIS服务器我想在http标头中连接我的客户端欲基本
身份验证。
即查看如何在http
标头中设置AUTHENTICATION属性。
Pete

" Jared"写道:
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:
我认为你只需要创建一个继承自SoapHeader的类,然后
包括< SoapHeader()>属性将使用它的方法。我希望
我理解你的问题。

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemWebServicesProtocolsSoapHeaderAttribute ClassTopic .htm

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconalteringsoapmessageusingsoapextensions.htm

皮特 < phayward_delete@delete_bigfoot.com>在消息中写道
新闻:74 ********************************** @ microsof t.com。 ..
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.2003FEB.1033/cpref/html/frlrfSystemWebServicesProtocolsSoapHeaderAttribute ClassTopic.htm

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconalteringsoapmessageusingsoapextensions.htm

"Pete" <phayward_delete@delete_bigfoot.com> wrote in message
news:74**********************************@microsof t.com...
>我正在从mscom.webservices.general发帖,因为我没有收到
>回答
>那里:
>
>最近有一些帖子要求如何
>令人满意的
>在HTTP级别启用BASIC授权但尚未完全有用
>回答。
>
>我也一直试图打电话给一个希望
>的apache / axis webservice。
>我的C#客户端的用户名/密码。 (即相当于Java客户端代理中的_call.setUsername(" Myname)名称)尝试
>因为我
>我可能无法将AUTHORIZATION属性包含在http
>中头。有人提到直接插入属性
>进入
>标题......但是如何抓住请求对象呢
>这个?
>使用凭据对象方法对我不起作用。
>
>任何线索..?
>
> I''m cross posting from mscom.webservices.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.setUsername("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 ..?
>




这篇关于基本认证......解决方案似乎很神秘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆