肥皂错误:"服务器无法处理请求" "未将对象引用设置到对象&QUOT的实例; [英] Soap Error: "Server was unable to process request" "Object reference not set to an instance of an object"

查看:1130
本文介绍了肥皂错误:"服务器无法处理请求" "未将对象引用设置到对象&QUOT的实例;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在IIS发送SOAP请求,我在当地的服务,一切工作正常。
当我发送SOAP请求发送到另一台主机上运行在IIS上同样的服务,一切工作正常。

When I send a SOAP request to my service in the IIS locally, everything works fine. When I send a SOAP request to the same service that running on IIS on another host, everything works fine.

但是,当另一个程序员发送SOAP请求我的服务,他一般得到除了在返回服务的一种方法正确的反应:

But when another programmer sends a SOAP request to my service, he generally gets the right response except one method in the service that returns:

<soap:Body>
<soap:Fault>
  <faultcode>soap:Server</faultcode>
  <faultstring>Server was unable to process request. ---&gt; Object reference not set to an instance of an object.</faultstring>
  <detail />
</soap:Fault>



我需要了解他为什么在收到此错误。

I need to understand why he is receiving this error.

他的SOAP请求是完全一样的SOAP请求尚未防雷工程和他没有。

His SOAP request is exactly the same as SOAP Request yet mine works and his does not.

推荐答案

谢谢你们所有的帮助。我解决了这个问题。

Thanks guys for all your help. I solved the problem.

在SOAP请求的SOAPACTION字段有错误的URI

The 'SoapAction' field in the soap request had the wrong URI

我建议使用HTTP嗅探器。 。HTTP嗅探器会显示SOAP性能

I recommend using a HTTP sniffer. The http sniffer will show the SOAP properties.

SOAPAction报属性应该是这样的:的 http://tempuri.org/YourServiceMethodName

The "SOAPAction" property should have something like : http://tempuri.org/YourServiceMethodName

这篇关于肥皂错误:&QUOT;服务器无法处理请求&QUOT; &QUOT;未将对象引用设置到对象&QUOT的实例;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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