使用 XMLHttpRequest 和 SOAP 访问 ASP.Net WebService

发布于 2024-07-10 04:14:33 字数 848 浏览 5 评论 0原文

我有一个托管在 http://recpushdata.cyndigo.com/jobs.asmx 的网络服务。 我想使用 XMLHttpRequest 和 SOAP 调用此 Web 服务。 我想这样做的原因是我已经托管了一个可以完美访问网络服务的客户端应用程序,但是当客户端尝试访问相同的网络服务时,它会给出一些错误,例如:-

 <?xml version="1.0" encoding="utf-8" ?> 
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <soap:Body>
- <soap:Fault>
  <faultcode>soap:Server</faultcode> 
  <faultstring>Server was unable to process request. ---> Object reference not set to an instance of an object.</faultstring> 
  <detail /> 
  </soap:Fault>
  </soap:Body>
  </soap:Envelope>

不幸的是我无法弄清楚?

I have a webService hosted at http://recpushdata.cyndigo.com/jobs.asmx. I would like to call this webservice using XMLHttpRequest and SOAP. The thing why I would like to do this is that I have hosted a client application which is accessing the webservice perfectly, but when client is trying to access the same webservice its giving some error like :-

 <?xml version="1.0" encoding="utf-8" ?> 
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <soap:Body>
- <soap:Fault>
  <faultcode>soap:Server</faultcode> 
  <faultstring>Server was unable to process request. ---> Object reference not set to an instance of an object.</faultstring> 
  <detail /> 
  </soap:Fault>
  </soap:Body>
  </soap:Envelope>

Which unfortunately I am not able to figure out?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北城挽邺 2024-07-17 04:14:33

检查 这里。 但是 XmlHttpRequest 和 SOAP 是痛苦,因为您必须手动构造 SOAP 主体。

Check here. But XmlHttpRequest and SOAP are painful as you have construct SOAP bodies manually.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文