Hi,
I got a question regarding renaming service ports.

I have several services defining the same port name so I have to change
the binding.

the wsdl's looks like this and all define the same 'ServiceSoap' port:
--
<wsdl:service name="Service_UpdateCustomer">
     <wsdl:port name="ServiceSoap" binding="sncns:ServiceSoap">
        <soap:address location="<service?wsdl>"/>
     </wsdl:port>
</wsdl:service>

<wsdl:service name="Service_DeleteCustomer">
     <wsdl:port name="ServiceSoap" binding="sncns:ServiceSoap">
        <soap:address location="<service_delete?wsdl>"/>
     </wsdl:port>
</wsdl:service>
--

using a separate binding file for each wsdl and changing class name is
OK:

    <jaxws:bindings node="wsdl:definitions/wsdl:portType">
        <jaxws:class name="RenamedClassName"/>        
    </jaxws:bindings>


But I've not been able to define add multiple bindings in one file:
<bindings
node="wsdl:definitions/wsdl:service[@name='Service_UpdateCustomer']/wsdl:port[@name='ServiceSoap']">
    <class name="RenamedClassName"/>
</bindings>
<bindings
node="wsdl:definitions/wsdl:service[@name='Service_DeleteCustomer']/wsdl:port[@name='ServiceSoap']">
    <class name="RenamedOtherClassName"/>
</bindings>

Im I barking up the wrong tree?

btw, using 2.7.12...

br hw


Reply via email to