Page 1 of 1

Re: About Question enthuware.ocejws.v6.2.321 :

Posted: Mon Apr 09, 2018 5:17 am
by javabean68
Hello,

on Java Webservices Up and Running I found:
Recall that a WSDL has but one portType
Who is right? :-)

Thank you
Fabio

Re: About Question enthuware.ocejws.v6.2.321 :

Posted: Mon Apr 09, 2018 7:05 am
by fjwalraven
Hi Fabio,

The WSDL v1.1 specification allows multiple portTypes:
2.4 Port Types
A port type is a named set of abstract operations and the abstract messages involved.

<wsdl:definitions .... >
<wsdl:portType name="nmtoken">
<wsdl:operation name="nmtoken" .... /> *
</wsdl:portType>
</wsdl:definitions>

The port type name attribute provides a unique name among all port types defined within in the enclosing WSDL document.
Regards,
Frits