What are the two attrib...
What are the two attrib...
The <port>
element in WSDL (Web Services Description Language) has two primary attributes: name
and binding
.
name: This attribute provides a unique name among all ports defined within the enclosing WSDL document. It is used to identify the port uniquely within the service.
binding: This attribute refers to the binding using the linking rules defined by WSDL. It specifies the binding that the port uses, which includes the protocol and data format specifications for the operations defined in the port type.
Here is an example of a <port>
element in WSDL:
<service name="Hello_Service">
<documentation>WSDL File for HelloService</documentation>
<port binding="tns:Hello_Binding" name="Hello_Port">
<soap:address location="http://www.examples.com/SayHello/"/>
</port>
</service>
In this example:
name
attribute is set to "Hello_Port".binding
attribute is set to "tns:Hello_Binding", which links to the binding definition for this...senior
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào