Hmm...basically you're asking how you can specify A, B, and C in [1]
below if you're not using a standalone servlet container. I'm not sure
if there's any such hooks where you can just give a relative address (or
if there should be any such hooks), because the fact that it's a servlet
container implementing Endpoint.publish() should be abstracted away from
the endpoint configuration code (to allow us to implement
Endpoint.publish() using other mechanisms instead.) But hopefully
someone else can answer for you.
Glen
[1] http://www.jroller.com/gmazza/entry/web_service_tutorial#notes
(Note #2)
On 10/07/2011 12:02 PM, nkunkov wrote:
Hello,
I have a standalone java application that starts the CXF server using
serverFactory.create();
In my cxf.xml I have the following:
<jaxws:endpoint
id="HelloWorld"
implementor="com.package.impl.HelloWorldImpl"
address="http://localhost:9000/HelloWorld" />
The above works. In my spring context.xml i have the following:
<import resource="cxf.xml"/>
But I don't want to specify a full address in the endpoint. I'd like to use
the below configuration:
<jaxws:endpoint
id="HelloWorld"
implementor="com.package.impl.HelloWorldImpl"
address="/HelloWorld" />
When I use the relative address="/HelloWorld I get the Caused by:
java.net.MalformedURLException: no protocol: /HelloWorld
I'm sure I'm missing some line of configuration. Please, let me know what
can I do!
Thank you!
--
View this message in context:
http://cxf.547215.n5.nabble.com/jaxws-endpoint-specify-relative-address-tp4880494p4880494.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Glen Mazza
Talend - http://www.talend.com/apache
Blog - http://www.jroller.com/gmazza
Twitter - glenmazza