You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by veraniego <fr...@gmail.com> on 2010/01/20 17:52:57 UTC

Camel route between http/soap endpoints

Hi 

I have the next scenary:
soapUI -> http consumer -> camel -> http provider -> external web service

My request (includes a security header) goes to my web service and the
soapUI client get in response the next fault :

<faultcode
xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:InvalidSecurity</faultcode>
<faultstring>An error was discovered processing the &lt;wsse:Security>
header</faultstring>

....without Camel route that works perfect...


XBEAN.XML:

<http:endpoint service="RepositoryService:RepositoryServiceConsumer"
endpoint="soap"
role="consumer" 
soap="true"
soapVersion="1.1"
locationURI="http://localhost:8192/RepositoryService/" 
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
targetService="RepositoryService:RepositoryServiceListener"
targetEndpoint="listenerEndpoint"
/>


<http:endpoint service="RepositoryService:RepositoryService"
endpoint="RepositoryServicePort"
role="provider" 
soap="true"
soapVersion="1.1"
locationURI="http://localhost:8083/alfresco/cmis/RepositoryService" 
defaultMep="http://www.w3.org/2004/08/wsdl/in-out" 
interfaceName="RepositoryService:RepositoryServicePort"
wsdlResource="http://localhost:8083/alfresco/cmis/RepositoryService?wsdl"
/> 


MyRouteBuilder.java:

from("jbi:endpoint:http://docs.oasis-open.org/ns/cmis/ws/200901/RepositoryServiceListener/listenerEndpoint")
.to("jbi:endpoint:http://docs.oasis-open.org/ns/cmis/ws/200901/RepositoryService/RepositoryServicePort")


THX

-- 
View this message in context: http://old.nabble.com/Camel-route-between-http-soap-endpoints-tp27244931p27244931.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Camel route between http/soap endpoints

Posted by veraniego <fr...@gmail.com>.
Hi,

I'm using:
- FUSE ESB 4.1.0.2 (Servicemix 4)
- FUSE Mediation Router 1.6.2.0 (Apache Camel 1.6)

But the Maven archetype is the next:
- servicemix-camel-service-unit 3.2.3 (camel version 1.4)

Maybe is this last one the problem??


Thank you for the answer!




willem.jiang wrote:
> 
> Hi,
> 
> Which version of Camel and ServiceMix are you using?
> There is a bug with the exchange property copying which has been fixed 
> months ago.
> 
> Willem
> 
> veraniego wrote:
>> Hi 
>> 
>> I have the next scenary:
>> soapUI -> http consumer -> camel -> http provider -> external web service
>> 
>> My request (includes a security header) goes to my web service and the
>> soapUI client get in response the next fault :
>> 
>> <faultcode
>> xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:InvalidSecurity</faultcode>
>> <faultstring>An error was discovered processing the &lt;wsse:Security>
>> header</faultstring>
>> 
>> ....without Camel route that works perfect...
>> 
>> 
>> XBEAN.XML:
>> 
>> <http:endpoint service="RepositoryService:RepositoryServiceConsumer"
>> endpoint="soap"
>> role="consumer" 
>> soap="true"
>> soapVersion="1.1"
>> locationURI="http://localhost:8192/RepositoryService/" 
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>> targetService="RepositoryService:RepositoryServiceListener"
>> targetEndpoint="listenerEndpoint"
>> />
>> 
>> 
>> <http:endpoint service="RepositoryService:RepositoryService"
>> endpoint="RepositoryServicePort"
>> role="provider" 
>> soap="true"
>> soapVersion="1.1"
>> locationURI="http://localhost:8083/alfresco/cmis/RepositoryService" 
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-out" 
>> interfaceName="RepositoryService:RepositoryServicePort"
>> wsdlResource="http://localhost:8083/alfresco/cmis/RepositoryService?wsdl"
>> /> 
>> 
>> 
>> MyRouteBuilder.java:
>> 
>> from("jbi:endpoint:http://docs.oasis-open.org/ns/cmis/ws/200901/RepositoryServiceListener/listenerEndpoint")
>> .to("jbi:endpoint:http://docs.oasis-open.org/ns/cmis/ws/200901/RepositoryService/RepositoryServicePort")
>> 
>> 
>> THX
>> 
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Camel-route-between-http-soap-endpoints-tp27244931p27254060.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Camel route between http/soap endpoints

Posted by Willem Jiang <wi...@gmail.com>.
Hi,

Which version of Camel and ServiceMix are you using?
There is a bug with the exchange property copying which has been fixed 
months ago.

Willem

veraniego wrote:
> Hi 
> 
> I have the next scenary:
> soapUI -> http consumer -> camel -> http provider -> external web service
> 
> My request (includes a security header) goes to my web service and the
> soapUI client get in response the next fault :
> 
> <faultcode
> xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:InvalidSecurity</faultcode>
> <faultstring>An error was discovered processing the &lt;wsse:Security>
> header</faultstring>
> 
> ....without Camel route that works perfect...
> 
> 
> XBEAN.XML:
> 
> <http:endpoint service="RepositoryService:RepositoryServiceConsumer"
> endpoint="soap"
> role="consumer" 
> soap="true"
> soapVersion="1.1"
> locationURI="http://localhost:8192/RepositoryService/" 
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> targetService="RepositoryService:RepositoryServiceListener"
> targetEndpoint="listenerEndpoint"
> />
> 
> 
> <http:endpoint service="RepositoryService:RepositoryService"
> endpoint="RepositoryServicePort"
> role="provider" 
> soap="true"
> soapVersion="1.1"
> locationURI="http://localhost:8083/alfresco/cmis/RepositoryService" 
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out" 
> interfaceName="RepositoryService:RepositoryServicePort"
> wsdlResource="http://localhost:8083/alfresco/cmis/RepositoryService?wsdl"
> /> 
> 
> 
> MyRouteBuilder.java:
> 
> from("jbi:endpoint:http://docs.oasis-open.org/ns/cmis/ws/200901/RepositoryServiceListener/listenerEndpoint")
> .to("jbi:endpoint:http://docs.oasis-open.org/ns/cmis/ws/200901/RepositoryService/RepositoryServicePort")
> 
> 
> THX
>