Hi,

I have used the wsdl2java tool to generate my service endpoints from
an existing wsdl, I noticed that I had to change the port name for one
of the endpoints in the generated java code.
The generated code is great, and the first tool that has successfully
handled complex xs:extensions :-)

I deployed the service to Tomcat, but the problem is with the multiple
endpoints, both of my service endpoints have the same name when I go
to test/services and I am concerned about routing incoming requests.
In addition only the first endpoint has the address changed at runtime
to reflect the deployment.

Is there a way to make CXF handle multiple endpoints, or a way to
override the service provider in the cxf-servlet.xml?  I am looking to
deploy this service as a war archive.

I am using a service declaration similar to

  <service name="MySOAPService">
    <port binding="bindings:Op1SOAPBinding" name="Op1Port">
      <soap:address location="http://localhost:8080/soap"/>
    </port>
    <port binding="bindings:Op2SOAPBinding" name="Op2SOAPBinding">
      <soap:address location="http://localhost:8080/soap"/>
    </port>
  </service>

thanks,

Norman

Reply via email to