You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by asookazian2 <as...@gmail.com> on 2014/04/22 19:16:15 UTC

removing cxf for web service endpoint address

We are using a blueprint.xml as follows:

<?xml version="1.0" encoding="UTF-8"?> 
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
  http://www.osgi.org/xmlns/blueprint-ext/v1.1.0
https://svn.apache.org/repos/asf/aries/tags/blueprint-0.3.1/blueprint-core/src/main/resources/org/apache/aries/blueprint/ext/blueprint-ext.xsd  
  http://cxf.apache.org/blueprint/jaxws
http://cxf.apache.org/schemas/blueprint/jaxws.xsd
  http://cxf.apache.org/blueprint/jaxrs
http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
  http://cxf.apache.org/blueprint/core
http://cxf.apache.org/schemas/blueprint/core.xsd
  http://camel.apache.org/schema/blueprint
http://camel.apache.org/schema/blueprint/camel-blueprint.xsd
  http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd">
    <jaxws:endpoint
        address="/MyWebService"
	    implementor="com.foo.bar.webservice.MyWebService">
    </jaxws:endpoint>
</blueprint>

The endpoint address URL for this is:

http://localhost:8181/cxf/MyWebService

We want it to be (i.e. remove 'cxf' and replace with 'soap/foo'):

http://localhost:8181/soap/foo/MyWebService

How can we achieve this?  thx.



--
View this message in context: http://karaf.922171.n3.nabble.com/removing-cxf-for-web-service-endpoint-address-tp4032920.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: removing cxf for web service endpoint address

Posted by asookazian2 <as...@gmail.com>.
Thanks for replying.

Problem is we have multiple apps as follows:

/soap/foo1
/soap/foo2
/rest/bar1
/rest/bar2

where 'foo1' is an application name.

is this possible to achieve?



--
View this message in context: http://karaf.922171.n3.nabble.com/removing-cxf-for-web-service-endpoint-address-tp4032920p4032922.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: removing cxf for web service endpoint address

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

just put a file named etc/org.apache.cxf.osgi.cfg containing:

org.apache.cxf.servlet.context=/soap/foo

and you will have what you want.

Regards
JB

On 04/22/2014 07:16 PM, asookazian2 wrote:
> We are using a blueprint.xml as follows:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>             xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws"
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>    http://www.osgi.org/xmlns/blueprint-ext/v1.1.0
> https://svn.apache.org/repos/asf/aries/tags/blueprint-0.3.1/blueprint-core/src/main/resources/org/apache/aries/blueprint/ext/blueprint-ext.xsd
>    http://cxf.apache.org/blueprint/jaxws
> http://cxf.apache.org/schemas/blueprint/jaxws.xsd
>    http://cxf.apache.org/blueprint/jaxrs
> http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
>    http://cxf.apache.org/blueprint/core
> http://cxf.apache.org/schemas/blueprint/core.xsd
>    http://camel.apache.org/schema/blueprint
> http://camel.apache.org/schema/blueprint/camel-blueprint.xsd
>    http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
> http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd">
>      <jaxws:endpoint
>          address="/MyWebService"
> 	    implementor="com.foo.bar.webservice.MyWebService">
>      </jaxws:endpoint>
> </blueprint>
>
> The endpoint address URL for this is:
>
> http://localhost:8181/cxf/MyWebService
>
> We want it to be (i.e. remove 'cxf' and replace with 'soap/foo'):
>
> http://localhost:8181/soap/foo/MyWebService
>
> How can we achieve this?  thx.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/removing-cxf-for-web-service-endpoint-address-tp4032920.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com