Hi,
I'm trying to create my first CXF web service client using the "starting
with WSDL first" approach. I am using the latest version of CXF, 2.1.2,
and have specified the following command line from a terminal window,
within an Eclipse workspace project:
wsdl2java -d src -client ./wsdl/MyWsdlFile.wsdl
However, I am getting the following error indicating that it cannot find
an xsd for the wsdl file:
WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsd
l definition from : file://user/dev/workspace/MyClient/wsdl/TheSearchSe
rvice-v2-1.wsdl
Caused by : WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCod
e=PARSER_ERROR: Problem parsing 'SearchServiceMessage-v2-1.xsd'.:
java.io.FileNotF
oundException: SearchServiceMessage-v2-1.xsd
(The system cannot find the file specified)
My question, hopefully that will clear up my confusion, is when doing
wsdl2java for a client, do I have to access, for validation purposes, to
all of the defined schema's?
Thanks,
John