-
1. Re: How do I invoke the WebService out of FUSE? it says no service,no endpoint
ffang Jan 9, 2011 7:11 AM (in response to cashethon)Hi,
In your camel-su, there also should be a from endpoint which can expose a JBI endpoint on JBI bus,
so the working flow should be
cxfbc:consumer----
> camel from endpoint ---> cxf bc provider.
> camel to endpointEnsure you have correct target name between each endpoint pair, you may need take a look at to get more about the configurations.
http://camel.apache.org/jbi.html
Freeman
-
2. Re: How do I invoke the WebService out of FUSE? it says no service,no endpoint
cashethon Jan 9, 2011 8:55 AM (in response to ffang)Hi,ffang
Thanks your reply. In my camel-su is very simple. I referred to cxf-camel-nmr in fuse's examples dictory.
and my camel route just like this:
timer --> myTransform.transform (retrun the webservice's required soap message) --> ws's endpoint
In my console , the bean(myTransform) is running, and to my ws'endpoint it's says no service,no endpoint or no interfacename
-
3. Re: How do I invoke the WebService out of FUSE? it says no service,no endpoint
ffang Jan 9, 2011 8:13 PM (in response to cashethon)Hi,
In your camel router, you must have a "from jbi endpoint" which expose a jbi enpoint to jbi bus, and this is the endpoint which CAN receive message exchange from cxf bc consumer.
Freeman
-
4. Re: How do I invoke the WebService out of FUSE? it says no service,no endpoint
cashethon Jan 9, 2011 9:07 PM (in response to ffang)Hello,I modify my code.
from cxf-bc comsumer --> my processor --> to cxf-bc provider
and it doesn't work . no error. just like pass thought whitout this route.
and I change the from with CXF-HTTP endpoint, it failed again.
Do you have some demo to invoke webservice with camel?my email : chenfeng.foss@gmail.com
tks.
-
5. Re: How do I invoke the WebService out of FUSE? it says no service,no endpoint
ffang Jan 9, 2011 9:17 PM (in response to cashethon)Hi,
You just need ensure the targetService/targetEndpoint of your cxfbc:consumer match the "from jbi endpoint".
And "to jbi endpoint" service/endpoint match it of the cxfbc:provider.
Freeman
-
6. Re: How do I invoke the WebService out of FUSE? it says no service,no endpoint
cashethon Jan 9, 2011 9:46 PM (in response to ffang)Hello.
I try it like this:
1. in my wsdl file, I change the <service>
<wsdl:service name="MsgInfoImplService">
<wsdl:port binding="tns:MsgInfoImplServiceSoapBinding" name="MsgInfoImplPort11">
<soap:address
location="http://localhost:8193/helloWorld" />
</wsdl:port>
</wsdl:service>
2. in cxf-bc comsumer
<cxfbc:consumer wsdl="classpath:person.wsdl" service="person:MsgInfoImplService"
endpoint="person:MsgInfoImplPort11"
targetService="person:MsgInfoImplService"
targetEndpoint="MsgInfoImplPort12" />
3. in cxf-bc provider
<cxfbc:provider
wsdl="http://localhost:8080/webservice_su/services/helloWorld?wsdl"
service="person:MsgInfoImplService" endpoint="MsgInfoImplPort" />
4. and my camel-su
then I invoke http://localhost:8193/helloWorld, it just pass though,do not pass route
-
7. Re: How do I invoke the WebService out of FUSE? it says no service,no endpoint
cashethon Jan 10, 2011 2:40 AM (in response to ffang)Hi,ffang,I found the solution to hand this problem.
1. reduce the lash slash of the namespace which point to tragetService (in the consumer)
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:person="http://impl.ws.toxind.com/"
xmlns:tns="http://impl.ws.toxind.com">
<cxfbc:consumer wsdl="classpath:person.wsdl"
service="person:MsgInfoImplService"
endpoint="MsgInfoImplPort"
targetService="tns:MsgInfoImplService"
targetEndpoint="MsgInfoImplPort22" />
2. add a slash to the camel-su to's context.
<to uri="jbi:endpoint:http://impl.ws.toxind.com//MsgInfoImplService/MsgInfoImplPort33" />
</route>
After do this , It work well, and the wsProcessor is running.. but It looks like extremely oddly..
-
8. Re: How do I invoke the WebService out of FUSE? it says no service,no endpoint
ffang Jan 10, 2011 4:18 AM (in response to cashethon)Hi,
Great news that you get your testcase working!
And about the slash in your namespace, I think it's totally from the docs[1], where
uri format should be
jbi:service:serviceNamespace[sep]serviceName[?options]
So if your serviceNameSpace end with "/", there should be two "/" here, one is the end character of your serviceNameSpace, one is the separator.
http://camel.apache.org/jbi.html
Freeman