2

I started with a WSDL and used wsimport to generate the Java artificats. Then I implemented the WebService and deployed it to a glassfish 3.1. The glassfish takes the java elements and regenerates a wsdl from these elements.

Can I convince the glassfish to publish the original wsdl to the world, instead of the 'reengineered' ones? Thanks!

Wintermute
  • 1,521
  • 1
  • 13
  • 34

1 Answers1

5

Actually it's pretty easy. But for those, who stumble over this question, I will answer it by myself.

We used the wsdlLocation attribute to convince glassfish to distibute the original wsdl file and not the regenerated one from the java classes.

@WebService(name = "wsName", targetNamespace = "http://ws.unknown.com/",
        serviceName="wsServiceName", portName="wsPortName",
        wsdlLocation="wsDefinition.wsdl")
Wintermute
  • 1,521
  • 1
  • 13
  • 34