WSDL °ó¶¨
WSDL °ó¶¨¿ÉΪ web service ¶¨ÒåÏûÏ¢¸ñʽºÍÐÒéϸ½Ú¡£
°ó¶¨µ½ SOAP
Ò»¸ö ÇëÇó - ÏìÓ¦ ²Ù×÷µÄÀý×Ó£º
<message name="getTermRequest"> <part name="term" type="xs:string" /> </message> <message name="getTermResponse"> <part name="value" type="xs:string" /> </message> <portType name="glossaryTerms"> <operation name="getTerm"> <input message="getTermRequest" /> <output message="getTermResponse" /> </operation> </portType> <binding type="glossaryTerms" name="b1"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <operation> <soap:operation soapAction="http://example.com/getTerm" /> <input> <soap:body use="literal" /> </input> <output> <soap:body use="literal" /> </output> </operation> </binding>
binding ÔªËØÓÐÁ½¸öÊôÐÔ - name ÊôÐÔºÍ type ÊôÐÔ¡£
name ÊôÐÔ¶¨Òå binding µÄÃû³Æ£¬¶ø type ÊôÐÔÖ¸ÏòÓÃÓÚ binding µÄ¶Ë¿Ú£¬ÔÚÕâ¸öÀý×ÓÖÐÊÇ "glossaryTerms" ¶Ë¿Ú¡£
soap:binding ÔªËØÓÐÁ½¸öÊôÐÔ - style ÊôÐÔºÍ transport ÊôÐÔ¡£
style ÊôÐÔ¿Éȡֵ "rpc" »ò "document"¡£ÔÚÕâ¸öÀý×ÓÖÐÎÒÃÇʹÓà document¡£transport ÊôÐÔ¶¨ÒåÁËҪʹÓÃµÄ SOAP ÐÒé¡£ÔÚÕâ¸öÀý×ÓÖÐÎÒÃÇʹÓà HTTP¡£
operation ÔªËØ¶¨ÒåÁËÿ¸ö¶Ë¿ÚÌṩµÄ²Ù×÷·û¡£
¶ÔÓÚÿ¸ö²Ù×÷£¬ÏàÓ¦µÄ SOAP ÐÐΪ¶¼ÐèÒª±»¶¨Ò塣ͬʱÄú±ØÐëÈçºÎ¶ÔÊäÈëºÍÊä³ö½øÐбàÂë¡£ÔÚÕâ¸öÀý×ÓÖÐÎÒÃÇʹÓÃÁË "literal"¡£