C# 在VisualStudio中使用SOAP?SOAP响应中的字符串正确,但在.NET应用中为空

C# 在VisualStudio中使用SOAP?SOAP响应中的字符串正确,但在.NET应用中为空,c#,.net,web-services,soap,nusoap,C#,.net,Web Services,Soap,Nusoap,我正在创建一个使用PHP编写的SOAP服务的.NET应用程序。向服务发送数据工作正常,但我无法接收任何数据,即使它们在SOAP响应中 这是我的SOAP响应: <?xml version='1.0' encoding='utf-8'?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:SOAP-ENV='http://schemas.xm

我正在创建一个使用PHP编写的SOAP服务的.NET应用程序。向服务发送数据工作正常,但我无法接收任何数据,即使它们在SOAP响应中

这是我的SOAP响应:

    <?xml version='1.0' encoding='utf-8'?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'>
   <SOAP-ENV:Body>
      <ns1:helloResponse xmlns:ns1='urn:oxywsdl'>
         Hello James
      </ns1:helloResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

它只显示一个空的消息框。我做错了什么?我花了一整天的时间在谷歌上搜索,谢谢

我一整天的痛苦似乎是由VS2010中的某个bug造成的。我所要做的就是删除服务引用并重新启动VS,然后再次添加引用。。。谢谢Visual Studio

你用什么来储存肥皂信封。。您使用的是XMLReader还是类似的东西。。您是否能够让服务在不创建soap响应的情况下甚至显示静态文本。。?需要查看更多代码。。
Services.oxywsdl ox = new Services.oxywsdl();
MessageBox.Show(ox.hello("James"));