Thanks Freeman! Is there any Listener can be implemented at the stage of jaxws endpoint/client creating?
Thanks Xilai -----Original Message----- From: Freeman Fang [mailto:[email protected]] Sent: Thursday, July 05, 2012 4:37 PM To: [email protected] Subject: Re: How to set wsdlLocation using API hmm, iirc you can't do it at this stage. When you already have server, which means the service model(built from wsdl or built from the class) init is done, that said, the server host the servicemodel which could be built from the wsdl, but you must specify wsdlLocation at very early stage. It depend on how you get the server, you must publish some jaxws endpoint using, right? Then you can specify wsdlLocation before you publish the endpoint, then you can get server from the published endpoint, code like EndpointImpl ep = (EndpointImpl)Endpoint.create(new DoubleItImpl()); ep.setWsdlLocation(wsdl.getPath()); ep.publish(); Server server = ep.getServer(); Freeman On 2012-7-5, at 下午2:17, XiLai Dai wrote: > Hi, > > With spring xml configuration, we can set wsdlLocation like this: > <jaxws:endpoint id=" " > wsdlLocation="file: ...." > implementor="#ABC" > address="..."> > </jaxws:endpoint> > > How to set wsdlLocation with API? E.g. I have a > ServerLifeCycleListener impl class: > public class ServiceListenerImpl implements ServerLifeCycleListener{ > public void startServer(Server server) { > //set a specific WSDL to server > ?....... > } > } > > Thanks! > Xilai --------------------------------------------- Freeman Fang FuseSource Email:[email protected] Web: fusesource.com Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: http://weibo.com/u/1473905042
