Reputation: 139
A different question, with the essential problem. At the end of my WSDL file.
<wsdl:service name="Lighting">
<wsdl:port name="SwitchPower" binding="tns:SwitchPower">
<soap:address location="http://localhost:8080/Lighting/SwitchPower/" />
</wsdl:port>
<wsdl:port name="Dimming" binding="tns:Dimming">
<soap:address location="http://localhost:8080/Lighting/Dimming/" />
</wsdl:port>
</wsdl:service>
The same service with two ports. Is it right?
If no, what are the rules of the specification?
Upvotes: 13
Views: 17056
Reputation: 74661
Upvotes: 2
Reputation: 22715
Yes. Imagine in real life, this is indeed possible:
Please refer to Section 2.7 of the W3 WSDL Specification. You can see that the * signifies you can have multiple ports under a service. In fact, a service groups a set of related ports together. There are several points to note though.
A service groups a set of related ports together:
<wsdl:definitions .... >
<wsdl:service name="nmtoken"> *
<wsdl:port .... />*
</wsdl:service>
</wsdl:definitions>
The name attribute provides a unique name among all services defined within in the enclosing WSDL document.
Ports within a service have the following relationship:
Upvotes: 13