Forum Home » Fuse Distributions » Fuse Services Framework

Thread: What is the Published Address

 
This question is answered.


Permlink Replies: 3 - Last Post: Mar 4, 2011 1:15 AM Last Post By: ffang
wayn23

Posts: 28
Registered: 11/03/10
What is the Published Address
Posted: Mar 2, 2011 11:19 PM
 
  Click to reply to this thread Reply
I know this is a newbie question, but I cannot find the answer.

I have built a simple service and deployed it as a bundle which exposes a web service.

I see the following entry in the log

Setting the server's publish address to be /testDiagnostic | Logger(org.apache.cxf.endpoint.ServerImpl) Thread(SpringOsgiExtenderThread-8)


I would like to use SOAPUI to test this service, but I cannot find the full url address.

I assume that the service is published to the PAX
I am using the webconsole and I can successfully open that at http://localhost:26109/system/console/

I have tried
http://localhost:26109/testDiagnostic
http://localhost:26109/system/testDiagnostic
http://localhost:26109/services/testDiagnostic

and all report 404 Not found errors.

How can I find the address it is publilshed at?
Once I find it, does it support the testDiagnostic?wsdl url?
ffang

Posts: 1,320
Registered: 12/24/07
Re: What is the Published Address
Posted: Mar 3, 2011 1:51 AM   in response to: wayn23 in response to: wayn23
Correct
  Click to reply to this thread Reply
Hi,

I assume you deploy cxf webservice which use http-osgi transport(underlying use pax-web http osgi service), the webservice should publish to(with default configuration)
http://localhost:8181/cxf/testDiagnostic
that's said, you can access the wsdl from
http://localhost:8181/cxf/testDiagnostic?wsdl.

Freeman
wayn23

Posts: 28
Registered: 11/03/10
Re: What is the Published Address
Posted: Mar 3, 2011 3:38 PM   in response to: ffang in response to: ffang
 
  Click to reply to this thread Reply
Thanks so much for pointing out that it missing part of the url was "cxf".

I have scanned through the existing configuration files and cannot find where this is set. Where would I find the documentation on how to configure the cxf transport defaults?
ffang

Posts: 1,320
Registered: 12/24/07
Re: What is the Published Address
Posted: Mar 4, 2011 1:15 AM   in response to: wayn23 in response to: wayn23
 
  Click to reply to this thread Reply
Hi,

You can add
org.apache.cxf.osgi.cfg file in $FUSE_ESB/etc folder,

and add property entry
org.apache.cxf.servlet.context=/what_ever_you_want

currently the default value is /cxf

Freeman