You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by jimpo <ja...@gofore.com> on 2008/06/30 15:24:23 UTC

Can I use absolute jaxws:endpoint address in a webapp?

I have this problem which I am trying to solve using absolute endpoint
address in my config. For explanation on the original problem, see the link
in the end of my post.

My problem would be solved if I could use an absolute URL for my endpoint
address. Documentation at

http://cwiki.apache.org/CXF20DOC/jax-ws-configuration.html

uses absolute http://localhost:8080/somesome... addresses for all the jax-ws
endpoints so I am assuming this should be possible.

Although I am confused, how can this work? The absolute urls are for example
address="http://localhost:8080/test". If my CXF servlet is configured at
path http://localhost:8080/somewebapp/cxfservlet/, how can the service be at
the server root?

Still, I tried to use absolute addresses for my services. CXF deployment
seems to go ok without errors and the service gets deployed:

INFO: Creating Service {http://www.foo.com/foo/schemas}SomeDataService from
WSDL: wsdl/somedata.wsdl
30.6.2008 16:09:34 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be
http://localhost:8080/some/ws/someData

When I got to cxf root at localhost:8080/some/ws/, the service is listed ok
and link points to wsdl at http://localhost:8080/some/ws/someData?wsdl, but
accessing that address gives "No service was found." and

30.6.2008 16:21:17 org.apache.cxf.transport.servlet.ServletController invoke
WARNING: Can't find the the request for
http://localhost:8080/som/ws/someData's Observer




http://www.nabble.com/cxf-behind-load-balancer%2C-services-point-to-localhost%3A8080-instead-of-server%3A80-td18086037.html#a18195392
-- 
View this message in context: http://www.nabble.com/Can-I-use-absolute-jaxws%3Aendpoint-address-in-a-webapp--tp18195627p18195627.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Can I use absolute jaxws:endpoint address in a webapp?

Posted by jimpo <ja...@gofore.com>.
Yes, that seems to fit my needs. Thanks a lot!


Christian Vest Hansen wrote:
> 
> Are you looking for this:
>    https://issues.apache.org/jira/browse/CXF-1279
> ?
> 

-- 
View this message in context: http://www.nabble.com/Can-I-use-absolute-jaxws%3Aendpoint-address-in-a-webapp--tp18195627p18197963.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Can I use absolute jaxws:endpoint address in a webapp?

Posted by Christian Vest Hansen <ka...@gmail.com>.
Are you looking for this:
   https://issues.apache.org/jira/browse/CXF-1279
?

On 6/30/08, jimpo <ja...@gofore.com> wrote:
>
>  If I could stop cxf from replacing the soap:address from the WSDL, this would
>  solve my problem also. I am using my own wsdl file and I could set the
>  correct server url there.
>
> --
>  View this message in context: http://www.nabble.com/Can-I-use-absolute-jaxws%3Aendpoint-address-in-a-webapp--tp18195627p18196128.html
>
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>


-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.

Re: Can I use absolute jaxws:endpoint address in a webapp?

Posted by jimpo <ja...@gofore.com>.
If I could stop cxf from replacing the soap:address from the WSDL, this would
solve my problem also. I am using my own wsdl file and I could set the
correct server url there.
-- 
View this message in context: http://www.nabble.com/Can-I-use-absolute-jaxws%3Aendpoint-address-in-a-webapp--tp18195627p18196128.html
Sent from the cxf-user mailing list archive at Nabble.com.