无法拨打Web服务 [英] Not Able to make Web Service call

查看:82
本文介绍了无法拨打Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我在网络中启用了Firewal的远程计算机上托管了一个Web服务(由SAP团队实现).根据Nerwork管理员,防火墙是打开的,这是我从其中调用Web服务的机器.我已经为给定的WSDL文件创建了一个代理类,并尝试使用创建的代理类对Web服务进行调用.但是我遇到了如下所示的未授权错误

请求失败,HTTP状态为401:未经授权.


但是,当我尝试使用以下命令从命令promt对计算机执行ping操作时,我从该计算机获得了答复,例如

telnet dnsname.com:8060

因此,我能够从命令promt连接机器,但不能与代理类连接.

根据网络管理员的要求,他们已经实施了firewal规则,以便为我的系统打开

主机名:MachineNAme(我要从中使用Webservice的地方)

IP地址:XXX.XX.XXX.XXX(我尝试从中使用Web服务的地方)

端口80/443(我不确定为什么要指定此端口号)

位置:美国XXX,面向Internet的应用程序(www.XXX.59.172.XXX)

我怀疑该服务.调用Web服务需要在给定的端口号下运行.

因此,请让我知道我们需要配置哪种设置才能从特定端口号调用Web服务.

提前谢谢.

Hari.

Hello,

I have a webservice ( implemented By SAP team) hosted on a firewal enabled remote machine in network. As per Nerwork admin Fire wall is open for the machine from where i am calling the webservice. I have created a proxy class for the given WSDL file and trying to make a call to webservice using the created proxy class. But i am getting unauthorised Error as below

The request failed with HTTP status 401: Unauthorized.


But when i tried to ping the machine from command promt using below command, i am getting reply from that machine such as

telnet dnsname.com:8060

So, i am able to connecte the machine from command promt but not with the proxy class.

As per Network admin they have implemented the rules for firewal in order to open for my system

Host name : MachineNAme (From where i am trying to consume the webservice)

IP Address : XXX.XX.XXX.XXX (From where i am trying to consume the webservice)

Ports 80/443 (I am not sure why they have given this port numbers)

Location: XXX, US, Internet facing application (www.XXX.59.172.XXX)

I am suspecting that service. which is calling the webservice need to run under given port number.

So please let me know what kind of setting we need to configure in order to call webservice from particular port number.

Thanks in advance.

Hari.

推荐答案

由于您正在获取HTTP状态代码,因此防火墙中没有问题.似乎存在配置问题.请检查Webservice的文档以了解如何部署此服务.

HTTP状态代码401表示用户未通过身份验证(可能是由于密码错误).

检查您的身份验证配置是否正确.另请参阅: http://support.microsoft.com/default.aspx?scid=kb ; en-us; 896861 [ ^ ](知识库文章896861).

在ASP.net论坛中也有类似的讨论: http://forums.asp.net/t/1712586. aspx/1 [ ^ ]

也许,这篇文章可以为您提供帮助.祝你好运!
Since you are getting a HTTP status code, there is no problem in the firewall. There seems to be a configuration problem. Please check the webservice''s documentation on how to deploy this service.

HTTP status code 401 implies that the user is not authenticated (maybe due to incorrect password).

Check if your authentication configuration is correct. See also: http://support.microsoft.com/default.aspx?scid=kb;en-us;896861[^] (KB article 896861).

There is also a similar discussion in ASP.net forum: http://forums.asp.net/t/1712586.aspx/1[^]

Maybe, this post can help you. Good luck!


这篇关于无法拨打Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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