mytherf
16 years agoNew Contributor
relative path
I have a wsdl file which contains several xsd files. This web service was deployed on Websphere application server.
when i create a new soapui project using this wsdl, it throws errors.
initial WSDL/WADL is : http://10.0.45.64:9080/myproject/projectService?wsdl
I found projectService_schema1.xsd can be access at http://10.0.45.64:9080/myproject/projectService/projectService_schema1.xsd
not http://10.0.45.64:9080/myproject/projec ... chema1.xsd
I tried another way, i download wsdl files to local directory, It's ok.
<xsd:import namespace="http://planning.fmr.com/types" schemaLocation="projectService_schema1.xsd" />
<xsd:import namespace="http://planning.fmr.com/service/types" schemaLocation="projectService_schema2.xsd" />
when i create a new soapui project using this wsdl, it throws errors.
initial WSDL/WADL is : http://10.0.45.64:9080/myproject/projectService?wsdl
Mon Dec 06 18:04:08 CST 2010:DEBUG:Getting wsdl component from [http://10.0.45.64:9080/myproject/projectService?wsdl]
Mon Dec 06 18:04:08 CST 2010:INFO:BaseURI was redirected to [http://10.0.45.64:9080/myproject/projectService/projectService.wsdl]
Mon Dec 06 18:04:08 CST 2010:DEBUG:Getting wsdl component from [http://10.0.45.64:9080/myproject/projectService_schema1.xsd]
Mon Dec 06 18:04:08 CST 2010:ERROR:Failed to load url [http://10.0.45.64:9080/myproject/projectService_schema1.xsd]
Mon Dec 06 18:04:08 CST 2010:ERROR:Loading of definition failed for [http://10.0.45.64:9080/myproject/projectService?wsdl]; org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
Mon Dec 06 18:04:08 CST 2010:ERROR:An error occured [error: Unexpected element: CDATA], see error log for details
Mon Dec 06 18:04:08 CST 2010:ERROR:Error importing wsdl: java.lang.Exception: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
Mon Dec 06 18:04:08 CST 2010:ERROR:An error occured [org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA], see error log for details
Mon Dec 06 18:04:08 CST 2010:ERROR:An error occured [Error importing wsdl], see error log for details
I found projectService_schema1.xsd can be access at http://10.0.45.64:9080/myproject/projectService/projectService_schema1.xsd
not http://10.0.45.64:9080/myproject/projec ... chema1.xsd
I tried another way, i download wsdl files to local directory, It's ok.
