I defined multiple binding as following:
<component name="CComponent">
<implementation.java
class="org.apache.tuscany.sca.vtest.wsbinding.nowsdl.multisoapbindings.impl.CServiceImpl"/>
<service name="CService">
<interface.java
interface="org.apache.tuscany.sca.vtest.wsbinding.nowsdl.multisoapbindings.CService"/>
<binding.ws name="CServiceSOAP12" requires="soap.1_2"
uri="http://localhost:8080/CService/soap12"/>
<binding.ws requires="soap.1_1"
uri="http://localhost:8080/CService/soap11"/>
</service>
</component>
I used WSDLReader to read the generated WSDL, such as
Definition wsdl = wsdlReader.readWSDL(uri + "?wsdl");
then used wsdl.getServices() to get the service and used s.getPorts()
to get the ports, but only got
# of SOAPPort: 1
# of SOAP12Port: 0
# of HTTPPort: 0
# of SOAPBinding: 1
# of SOAP12Binding: 0
# of HTTPBinding: 0
For old build, I got following:
# of SOAPPort: 1
# of SOAP12Port: 1
# of HTTPPort: 1
# of SOAPBinding: 2
# of SOAP12Binding: 1
# of HTTPBinding: 1
I knew the old build generated all different ports but the new build
not. Since my service is multiple bindings, the old build makes more
sense to me. Is there a regression?
Thanks
Gilbert