在下面的 WSDL 摘录中,在该行
<soap1:operation style="document" soapAction="petition"
指定有什么区别
- soapAction="请愿"
对比
- soapAction="/Services/ReincarnationPermitService.serviceagent/ReincarnationRequestPortTypeEndpoint/petition"
<wsdl:service name="ReincarnationPermitService">
<wsdl:port name="ReincarnationRequestPortTypeEndpoint" binding="tns:ReincarnationRequestPortTypeEndpointBinding">
<soap1:address location="http://sheol:666/Services/ReincarnationPermitService.serviceagent/ReincarnationRequestPortTypeEndpoint"/>
</wsdl:port>
</wsdl:service>
<wsdl:portType name="ReincarnationRequestPortType">
<wsdl:operation name="acceptRequest">
<wsdl:input message="tns:ReincarnationParticulars"/>
<wsdl:output message="tns:PetitionResponse"/>
<wsdl:fault name="denied" message="tns:Rejection"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ReincarnationRequestPortTypeEndpointBinding" type="tns:ReincarnationRequestPortType">
<soap1:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="acceptRequest">
<soap1:operation style="document" soapAction="petition" soapActionRequired="true"/>
<wsdl:input>
<soap1:body use="literal" parts="ReincarnationParticulars"/>
</wsdl:input>
<wsdl:output>
<soap1:body use="literal" parts="Approved"/>
</wsdl:output>
<wsdl:fault name="denied">
<soap1:fault use="literal" name="denied"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
最佳答案
这是我发现的......所以回答我自己的问题。
soapAction 属性指示服务提供者的意图,这很可能是由服务框架构建的。
soapAction 帮助服务提供者将 SOAP 操作映射到意图解析器。无论出于何种意图和目的,这都将是被调用来为操作提供服务的例程。
soapAction 属性是服务提供者框架唯一标识调用哪个入口点或例程来为操作提供服务的一种方法。
因此soapAction属性可以是任何值,其模式可以由框架决定。在我使用的框架中,soapAction 的值是什么对框架来说并不重要,其中soapAction 属性值只是对处理调用的入口点的引用。
关于soap - WSDL 绑定(bind) -soapAction 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28468513/