<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/cxf" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:camel="http://camel.apache.org/schema/spring" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml"/> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> <cxf:cxfEndpoint id="customerServiceEndpoint" address="/CustomerServicePort" serviceName="s:CustomerServiceService" serviceClass="cc.notsoclever.customerservice.CustomerService" xmlns:s="http://customerservice.notsoclever.cc/"/>
<bean id="CustomerService" class="cc.notsoclever.examples.cxf.wsdlfirst.server.CustomerServiceImpl"/> <bean id="customerRoute" class="cc.notsoclever.examples.cxf.wsdlfirst.client.CustomerServiceRoutes"> </bean> <camel:camelContext xmlns="http://camel.apache.org/schema/spring"> <routeBuilder ref="customerRoute"/> </camel:camelContext> </beans> public class CustomerServiceRoutes extends RouteBuilder { private static final transient Logger LOG = LoggerFactory.getLogger(CustomerServiceRoutes.class); @Override public void configure() throws Exception { LOG.info("Starting client routes"); from("timer://NotFoundTest?repeatCount=1") .multicast() .to("direct:noSuchCustomerTest"); from("direct:noSuchCustomerTest") .onException(NoSuchCustomerException.class) .log("SUCCESS: NotFoundTest - NoSuchCustomerException detected.") .handled(true) .end() .setHeader(CxfConstants.OPERATION_NAMESPACE, simple("http://customerservice.notsoclever.cc/")) .setHeader(CxfConstants.OPERATION_NAME, simple("getCustomersByName")) .setBody(simple("Walker")) .to("cxf:///customerServiceEndpoint?serviceClass=cc.notsoclever.customerservice.CustomerService"); } web service is deployed in tocmat.i can access the wsdl as well.but when I tried to consume webservice using client but getting below exception. http://localhost:8080/wsdl_first/customerServiceEndpoint?wsdl [read #0 - timer://NotFoundTest] PhaseInterceptorChain WARN Interceptor for {http://customerservice.notsoclever.cc/}CustomerServiceService#{http://customerservice.notsoclever.cc/}getCustomersByName has thrown exception, unwinding now java.lang.IllegalArgumentException: URI is not absolute at java.net.URI.toURL(URI.java:1095) at org.apache.cxf.transport.http.URLConnectionHTTPConduit.createConnection(URLConnectionHTTPConduit.java:92) at org.apache.cxf.transport.http.URLConnectionHTTPConduit.setupConnection(URLConnectionHTTPConduit.java:103) at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:483) at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:416) at org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:112) -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-IllegalArgumentException-URI-is-not-absolute-tp5759183.html Sent from the Camel - Users mailing list archive at Nabble.com.