On Oct 23, 2013, at 4:32 PM, cxfbeginner <[email protected]> wrote:

> Hi Daniel,
>               
> I am able to get the EndpointImpl object but when I tried to publish, it
> throws exception (Cannot invoke method after endpoint has been published.)
> I had the endpoint stopped and it should publishable.
> 
> this.endpoint.stop();
> this.endpoint.setPublishedEndpointUrl("http://test:8080/";);
> this.endpoint.publish();
> 
> is there a way for me to update the publishedEndpointUrl which reflects the
> wsdl?
> 

That sounds like a bug.  If stop() is called, we should reset so it’s 
publishable again.

That said, if you add publish=“false” to your jaxws:endpoint definition, we 
won’t call publish on it.  You will need to call it in your code which is 
exactly what you are doing.

Dan



> Thanks.
> 
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/How-to-get-jaxws-endpoint-object-at-the-server-during-initialization-code-first-approach-tp5735370p5735473.html
> Sent from the cxf-dev mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to