You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by xiangqiuzhao <xi...@gmail.com> on 2011/08/16 08:29:35 UTC
cxf uri can't use wsdlURL=classpath:file.wsdl?
my cxf from endpoint uri like
"cxf://http://localhost:8000/SCCS?dataFormat=PAYLOAD&wsdlURL=classpath:IWSService.wsdl",
but start camel error as:
The service name of "the URI" is empty, cxf will try to load the first one
in wsdl for you.
i put the IWSService.wsdl in the classpath.
--
View this message in context: http://camel.465427.n5.nabble.com/cxf-uri-can-t-use-wsdlURL-classpath-file-wsdl-tp4703461p4703461.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: cxf uri can't use wsdlURL=classpath:file.wsdl?
Posted by xiangqiuzhao <xi...@gmail.com>.
how the camel find the wsdl file in classpath? use classLoader.getResource??
--
View this message in context: http://camel.465427.n5.nabble.com/cxf-uri-can-t-use-wsdlURL-classpath-file-wsdl-tp4703461p5067081.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: cxf uri can't use wsdlURL=classpath:file.wsdl?
Posted by Willem Jiang <wi...@gmail.com>.
Yes, CXF will try to load the WSDL from the classpath.
On 8/20/11 5:45 PM, xiangqiuzhao wrote:
> what's the mean that uri set by "wsdlURL=classpath:IWSService.wsdl" ?
>
> it's can find IWSService.wsdl file in the whole classpath?
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/cxf-uri-can-t-use-wsdlURL-classpath-file-wsdl-tp4703461p4718123.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
Weibo: willemjiang
Re: cxf uri can't use wsdlURL=classpath:file.wsdl?
Posted by xiangqiuzhao <xi...@gmail.com>.
what's the mean that uri set by "wsdlURL=classpath:IWSService.wsdl" ?
it's can find IWSService.wsdl file in the whole classpath?
--
View this message in context: http://camel.465427.n5.nabble.com/cxf-uri-can-t-use-wsdlURL-classpath-file-wsdl-tp4703461p4718123.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: cxf uri can't use wsdlURL=classpath:file.wsdl?
Posted by xiangqiuzhao <xi...@gmail.com>.
the uri
"cxf://http://localhost:8000/SCCS?dataFormat=PAYLOAD&wsdlURL=classpath:IWSService.wsdl"
is set to from in camel. but it's ok while use
"cxf://http://localhost:8000/SCCS?dataFormat=PAYLOAD&wsdlURL=d:/IWSService.wsdl",
i want to put the wsdl file to classpath so i don't need to write d: fixed.
--
View this message in context: http://camel.465427.n5.nabble.com/cxf-uri-can-t-use-wsdlURL-classpath-file-wsdl-tp4703461p4703952.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: cxf uri can't use wsdlURL=classpath:file.wsdl?
Posted by Willem Jiang <wi...@gmail.com>.
You doesn't specify the serviceName and portName in the URI, CXF will
look up the first one in the wsdl definition for you.
I suggest you take a look at the camel-cxf wiki page[1] before you
write some test.
[1]http://camel.apache.org/cxf.html
On Tue Aug 16 14:29:35 2011, xiangqiuzhao wrote:
> my cxf from endpoint uri like
> "cxf://http://localhost:8000/SCCS?dataFormat=PAYLOAD&wsdlURL=classpath:IWSService.wsdl",
> but start camel error as:
>
> The service name of "the URI" is empty, cxf will try to load the first one
> in wsdl for you.
>
> i put the IWSService.wsdl in the classpath.
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/cxf-uri-can-t-use-wsdlURL-classpath-file-wsdl-tp4703461p4703461.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
Weibo: willemjiang