我试图从WCF请求标头中获取SoapAction值。
在WSDL文件中,SoapAtion如下所述
<wsdl:operation name="getCustomer">
<soap:operation soapAction="getCustomer" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="ServiceFaultExceptionFault">
<soap:fault use="literal" name="ServiceFaultExceptionFault" namespace="" />
</wsdl:fault>
</wsdl:operation>
但是,我正在从((HttpWebRequest)request).Headers
对象进入请求标头
Request Header:
{
Content-Type: application/soap+xml; charset=utf-8
Host: testhub.gct.com
Request-Context: appId=cid-v1:4ecd5f66-38c2-4c8d-b360-b166d19d91a5
Request-Id: |k6/8Z.Pads2.8cfbcce5_10.
Content-Length: 1138
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
}
我在这里缺少SoapAction属性值,任何人都可以帮忙解决这个问题。