Hi

The exception that you showed will be thrown when the transport factories are not initiated properly.

When you create the client which use the http transport, you need to make sure the CXF core can load the cxf-rt-transports-http-jetty module. If you are using spring to set up the ClientProxyFactoryBean you need to include below line in the spring xml file

<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>

If you are writing java code to create the client from ClientProxyFactoryBean and not using the CXF bundler jar, you need to make sure the cxf-rt-transports-http-jetty-*.jar is in your class path.

Willem.

Jacob Marcus wrote:
Hi all,

I have the webservice up and running on the server (deployed in a war file).
Trying to create a stand alone java client using the ClientProxyFactoryBean
keeps giving the following error.

Any pointers would be great!

Thanks,
Jacob

Exception in thread "main" java.lang.RuntimeException: Could not find
conduit initiator for transport http://schemas.xmlsoap.org/soap/http
    at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(
SoapTransportFactory.java:148)
    at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(
AbstractConduitSelector.java:73)
    at org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(
UpfrontConduitSelector.java:61)
    at org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(
ClientImpl.java:417)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
    at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68)
    at $Proxy18.search(Unknown Source)

Reply via email to