[英]How does webservice application know soap call for a particular method,without using operation name in soap message?
Document/literal WSDL for myMethod myMethod的文档/文字WSDL
<types>
<schema>
<element name="xElement" type="xsd:int"/>
<element name="yElement" type="xsd:float"/>
</schema>
</types>
<message name="myMethodRequest">
<part name="x" element="xElement"/>
<part name="y" element="yElement"/>
</message>
<message name="empty"/>
<portType name="PT">
<operation name="myMethod">
<input message="myMethodRequest"/>
<output message="empty"/>
</operation>
</portType>
<binding .../>
Document/literal SOAP message for myMethod myMethod的文档/文字SOAP消息
<soap:envelope>
<soap:body>
<xElement>5</xElement>
<yElement>5.0</yElement>
</soap:body>
</soap:envelope>
How does web service engine know above soap message for a particular method ? Web服务引擎如何知道特定方法的肥皂消息?
How server application know which method soap message is calling on? 服务器应用程序如何知道正在调用哪个方法的Soap消息?
http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/ link for reference http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/链接以供参考
Server will identify method based on parameter types and annotated with @Webmethod. 服务器将基于参数类型识别方法,并使用@Webmethod进行注释。 In case of two similar method, server will call last method specified in wsdl.
对于两个类似的方法,服务器将调用wsdl中指定的最后一个方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.