开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜