-
1. Re: Problem when call external WS : No binding factory for namespace ...
ffang Dec 14, 2010 9:30 PM (in response to tibo5555)Hi,
Seems this is caused by missing some package import.
Could you provide more details how you package your
Bundle Osgi Consumer WS ?
Also you post two spring-dm configurations here, is it used for Bundle Osgi Consumer WS ?
Btw, you need ensure your pom.xml used for you "Bundle Osgi Consumer WS" has Import-Package META-INF.cxf.
Freeman
-
2. Re: Problem when call external WS : No binding factory for namespace ...
tibo5555 Dec 15, 2010 11:42 AM (in response to ffang)Hi,
thanks for your response.
Yes, this is my spring-dm configurations for Bundle Osgi Consumer WS.
In my pom.xml I import META-INF.cxf and some package:
-
3. Re: Problem when call external WS : No binding factory for namespace ...
ffang Dec 15, 2010 9:12 PM (in response to ffang)Hi,
In your spring-dm configuration file, remove
Freeman
-
4. Re: Problem when call external WS : No binding factory for namespace ...
tibo5555 Dec 16, 2010 8:18 AM (in response to ffang)Hi,
I did it, I remove
but I am the same error...
No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered.
I try to modify binding transport with :
myService.addPort(portName, http://schemas.xmlsoap.org/wsdl/soap/http , myClass.class)
But error changes a little, but it's the same:
No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/http registered.
Maybe I need to add information in my spring-dm configuration but I don't know what.
-
5. Re: Problem when call external WS : No binding factory for namespace ...
ffang Dec 16, 2010 8:27 AM (in response to tibo5555)Hi,
How about add
<Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
in your bundle pom.xml?
Freeman
-
6. Re: Problem when call external WS : No binding factory for namespace ...
tibo5555 Dec 16, 2010 9:34 AM (in response to ffang)Hi,
I add cxf-bundle like a dependency in my pom:
...
?
Thanks,
Thibault
-
7. Re: Problem when call external WS : No binding factory for namespace ...
ffang Dec 16, 2010 7:30 PM (in response to tibo5555)yep
-
8. Re: Problem when call external WS : No binding factory for namespace ...
tibo5555 Dec 17, 2010 9:09 AM (in response to ffang)Hi,
I tried your issue, I verify that Require-Bundle:org.apache.cxf.bundle is present in my generated MANIFEST. It is, but I error is always here !
I try to call my External WS with these method:
QName serviceName = new QName("http://myexample.com", "MyService");
Service MyService = Service.create(serviceName);
QName portName = new QName("http://myexample.com", "soap");
MyService.addPort(portName, javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING, "http://localhost:9092/MyService");
myClass myClass = MyService.getPort(portName, myClass.class);
But when my Fuse do MyService.getPort(portName, myClass.class); I have the same error : No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/http registered.
Maybe I forget something in my spring configuration... I don't understand !
Thanks for your help
-
9. Re: Problem when call external WS : No binding factory for namespace ...
ffang Dec 17, 2010 8:06 PM (in response to tibo5555)Hi,
How about you provide a small test case, which I can build and deploy to reproduce this problem?
Regards
Freeman