soap - WSDL 绑定(bind) -soapAction 值

标签 soap wsdl endpoint

在下面的 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/

相关文章:

perl - 使用 SOAP 和 Perl 调用带参数的函数

java - 在 IBM Domino 9 中将 Axis1 升级到 Axis2

asp.net - 如何强制 ASP.NET Web 服务仅公开 HTTP-POST 接口(interface)

azure - 使用 ASP.NET 在 Azure 上一起托管 WCF REST 和 NET.TCP 端点

c# - 获取 "Could not create SSL/TLS secure channel"

wcf - 保存 SoapUI 项目时如何保存响应

docker - 在 Docker 内运行的 Nginx 状态端点

web-services - 设置 Spring Web Service 时找不到端点映射

c# - WCF 和 SOAP WS-Security 纯文本用户名(无 SSL)的问题

soap - 如何在 Windows Phone 7 上使用 SOAP API 将对象放在亚马逊 S3 上?