使用 XMLHttpRequest 和 SOAP 访问 ASP.Net WebService
我有一个托管在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查 这里。 但是 XmlHttpRequest 和 SOAP 是痛苦,因为您必须手动构造 SOAP 主体。
Check here. But XmlHttpRequest and SOAP are painful as you have construct SOAP bodies manually.