.net 处理标头中没有SoapAction的SOAP请求

.net 处理标头中没有SoapAction的SOAP请求,.net,web-services,soap,axis,.net,Web Services,Soap,Axis,我有个大问题。我有一个由Axis客户端调用的.NETSOAPWeb服务 问题是在头信息中没有SOAP操作,IIS只是抛出了一个500错误。客户端告诉我要禁用头验证,但我不确定如何在.NET中执行此操作。我唯一能想到的就是编写一个方法来手动捕获和解析请求,这似乎很痛苦。任何帮助都将不胜感激 <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.o

我有个大问题。我有一个由Axis客户端调用的.NETSOAPWeb服务

问题是在头信息中没有SOAP操作,IIS只是抛出了一个500错误。客户端告诉我要禁用头验证,但我不确定如何在.NET中执行此操作。我唯一能想到的就是编写一个方法来手动捕获和解析请求,这似乎很痛苦。任何帮助都将不胜感激

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
...
</soapenv:Body>
POST /Services/MyService.asmx HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2.1
Host: 1.2.3.4:55
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 1465

...
POST/Services/MyService.asmx HTTP/1.0
内容类型:text/xml;字符集=utf-8
接受:应用程序/soap+xml、应用程序/dime、多部分/相关、文本/*
用户代理:Axis/1.2.1
主持人:1.2.3.4:55
缓存控制:没有缓存
Pragma:没有缓存
SOAPAction:“
内容长度:1465

我自己解决了。需要补充:

[SoapDocumentService(RoutingStyle=SoapServiceRoutingStyle.RequestElement)]

到服务定义。

在WSDL绑定中是否正确填写了soapaction?