camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Camel-Cxf:unable to find wsdl
Date Wed, 20 Apr 2011 12:08:31 GMT
Hi,

I just check the zip file that you uploaded, there is no 
./bclearpapi-1.6.xsd schema file.
Please make sure schema file can be accessed by CXF.

Willem

On 4/20/11 2:52 PM, vcheruvu wrote:
> HI,
>   I have created a project that simply consumes soap messsage from cxf
> endpoint in a test class. I have created the following route in JAVA dsl and
> spring bean to define cxfendpoint as shown below. When I run the test class,
> I get an error that it has problem parsing ./bclearpapi-1.6.xsd due to file
> not found. I have verified the file path 100 times and the file is stored in
> correct path. I have attached the project zip file so that you can simply
> run the test class to replicate the problem. So, I am wondering if I am
> doing anything wrong in my project? I am starting to feel the wsdlURL path
> is not correctly interpreted by internal CXF classes I.e
> com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(..) .
>
>
> http://camel.465427.n5.nabble.com/file/n4315065/cxf.zip cxf.zip
>
>
> Test Java DSL
>
>
> ......
> protected RouteBuilder createRouteBuilder() throws Exception {
>          return new RouteBuilder() {
>              @Override
>              public void configure() throws Exception {
>              	from("cxf:bean:bclearEndpoint")
>              	.process(new Processor() {
>              		public void process(Exchange exchange) throws Exception {
>              	          CxfPayload<SoapHeader>  payload =
> exchange.getIn().getBody(CxfPayload.class);
>                            List<Element>  elements = payload.getBody();
>
>                            List<SoapHeader>  headers = payload.getHeaders();
>
>              				
>              		};
>              	  }
>              	);
>              }
>          };
>
>
>
>
>
>
> Camel Spring application context
>
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xmlns:context="http://www.springframework.org/schema/context"
>         xmlns:tx="http://www.springframework.org/schema/tx"
>         xmlns:p="http://www.springframework.org/schema/p"
>         xmlns:jdbc="http://www.springframework.org/schema/jdbc"
>         xmlns:cxf="http://camel.apache.org/schema/cxf"
>         xsi:schemaLocation="
>         http://camel.apache.org/schema/spring
>         http://camel.apache.org/schema/spring/camel-spring.xsd
>         http://www.springframework.org/schema/tx
>         http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
>         http://www.springframework.org/schema/beans
>         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
>         http://www.springframework.org/schema/context
>         http://www.springframework.org/schema/context/spring-context-3.0.xsd
>         http://www.springframework.org/schema/jdbc
>         http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
>         http://camel.apache.org/schema/cxf
>         http://camel.apache.org/schema/cxf/camel-cxf.xsd">
>
> 	<context:annotation-config/>
> 	<context:mbean-export/>
>     <cxf:cxfEndpoint id="bclearEndpoint"
> address="http://156.48.255.126/axis/services/BclearApi14"
>       		wsdlURL="classpath:META-INF/wsdl/bclearapi-1.6.wsdl"
>       		serviceClass="com.vid.test.TestService"/>
>
>    <camelContext xmlns="http://camel.apache.org/schema/spring">
>
>    </camelContext>
>
> </beans>
>
>
>
> Error message
>
> javax.wsdl.WSDLException: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema): faultCode=PARSER_ERROR: Problem
> parsing './bclearapi-1.6.xsd'.: java.io.FileNotFoundException:
> C:\vid\workspaces\bel-workspace\bel\cxf\bclearapi-1.6.xsd (The system cannot
> find the file specified)
>
>
> Kind regards,
> -Vid-
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Cxf-unable-to-find-wsdl-tp4315065p4315065.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Connect at CamelOne May 24-26
The Open Source Integration Conference
http://camelone.com

Mime
View raw message