How to get jaxws:endpoint object at the server during initialization (code first approach)

2013-10-21 Thread cxfbeginner
Dear CXF devs,Is there a way to get jaxws:endpoint object so that I could update it at the runtime (server side)?I am trying to update/add "publishedEndpointUrl" attribute during the initialization from another property file.for example:Thank you in advance. -- View this message in context: htt

Re: How to get jaxws:endpoint object at the server during initialization (code first approach)

2013-10-22 Thread cxfbeginner
Thanks Daniel. I am not sure I am doing it right but it is not working on my case. I tried to inject it inside of "ServiceImpl" constructor. I am under impression that the XML or injection has already been done when the class is instantiated. @Resource private EndpointImpl endpoint; public Se

Re: How to get jaxws:endpoint object at the server during initialization (code first approach)

2013-10-22 Thread cxfbeginner
It is working after I wrapped the endpoint object to another bean. However, accessing it inside of ServicesImpl constructor via injection is still giving me null because the ConfigThing bean hasn't been created it. Is it possible to load the ConfigThing first? Also, supposedly that I could modify

Re: How to get jaxws:endpoint object at the server during initialization (code first approach)

2013-10-23 Thread cxfbeginner
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://

Re: How to get jaxws:endpoint object at the server during initialization (code first approach)

2013-10-23 Thread cxfbeginner
Hi Daniel, Thank you for super fast response. I totally appreciate it since I am at the end of delivery. I notice the publish flag is never set when stop is called. However, I looked into source code and try to implement the same way on my server. However, I run to another issue where this.endpoi

Re: How to get jaxws:endpoint object at the server during initialization (code first approach)

2013-10-23 Thread cxfbeginner
After using the SRC, I found out that EndpointImpl has a bug where it is not setting the EndpointInfo. It is working now after I set EndpointInfo object directly. Thanks. -- View this message in context: http://cxf.547215.n5.nabble.com/How-to-get-jaxws-endpoint-object-at-the-server-during-ini

[java first] Having a header in the parameter generates multi part in the message WSDL

2015-12-30 Thread cxfbeginner
Some WSDL to java fails to parse the WSDL when it sees more than one part in a message. The service definition contains header in the parameters which translate to WSDL having two parts in the message. Is there a way to generate WSDL with a single part? public String runTask( @WebParam(name=Consta

Re: [java first] Having a header in the parameter generates multi part in the message WSDL

2016-01-06 Thread cxfbeginner
any update? -- View this message in context: http://cxf.547215.n5.nabble.com/java-first-Having-a-header-in-the-parameter-generates-multi-part-in-the-message-WSDL-tp5764348p5764449.html Sent from the cxf-dev mailing list archive at Nabble.com.