使用XMLHttpRequest和SOAP访问ASP.NETWebService
我有一个Web服务托管在。我想使用XMLHttpRequest和SOAP调用此Web服务。我之所以想这样做,是因为我托管了一个客户端应用程序,它可以完美地访问Web服务,但当客户端尝试访问同一个Web服务时,会出现一些错误,如:-使用XMLHttpRequest和SOAP访问ASP.NETWebService,asp.net,web-services,asmx,Asp.net,Web Services,Asmx,我有一个Web服务托管在。我想使用XMLHttpRequest和SOAP调用此Web服务。我之所以想这样做,是因为我托管了一个客户端应用程序,它可以完美地访问Web服务,但当客户端尝试访问同一个Web服务时,会出现一些错误,如:- <?xml version="1.0" encoding="utf-8" ?> - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="
<?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>
不幸的是,我没能弄清楚是什么?检查。但是XmlHttpRequest和SOAP是痛苦的,因为您必须手动构造SOAP主体