开发者

Is it possible to publish the original WSDL in the Glassfish 3.1 WebServices?

开发者 https://www.devze.com 2023-03-17 19:04 出处:网络
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

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!


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")
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号