Prabha, Can u please log a JIRA bug?
thanks, dims On 3/27/06, Prabha Pillay <[EMAIL PROTECTED]> wrote: > For the following WSDL, when I attempt to run WSDL2Java on the command > line, > I get the following error: > > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException > : java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: > Could not > load resource "../CPO/PersonName.xsd" (network downloads disabled). > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener > ationEngine.java:146) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: > error: > Could not load resource "../CPO/PersonName.xsd" (network downloads > disabled). > at > org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB > eansExtension.java:212) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener > ationEngine.java:101) > ... 2 more > Caused by: org.apache.xmlbeans.XmlException: error: Could not load > resource "../ > CPO/PersonName.xsd" (network downloads disabled). > at > org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(Sche > maTypeSystemCompiler.java:225) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665) > at > org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB > eansExtension.java:185) > ... 3 more > > Contrary to the error message, there are no download restrictions on the > > network. If I run XMLBeans standalone (scomp on the command line), I'm > able > to generate the databinding classes and the .xsb files, and thereby > manually > setup an Axis2 web service and client. > > Any ideas? > > Thanks, > Prabha > > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions > targetNamespace="http://www.test.com/hr-xml/Assessments" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:tg="http://www.test.com/hr-xml/Assessments" > xmlns:ar="http://ns.hr-xml.org/2006-02-28" > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> > <wsdl:types> > <xsd:schema targetNamespace="http://www.test.com/hr-xml/AR"> > <xsd:import namespace="http://ns.hr-xml.org/2006-02-28" > schemaLocation="http://schemas.hr-xml.org/xc/canon/2_4/HR-XML-2_4/Assess > ment/AssessmentOrderRequest.xsd"/> > <xsd:import namespace="http://ns.hr-xml.org/2006-02-28" > schemaLocation="http://schemas.hr-xml.org/xc/canon/2_4/HR-XML-2_4/Assess > ment/AssessmentOrderAcknowledgement.xsd"/> > </xsd:schema> > </wsdl:types> > <wsdl:message name="AssessmentOrderRequest"> > <wsdl:part name="results" element="ar:AssessmentOrderRequest"/> > </wsdl:message> > <wsdl:message name="AssessmentOrderAcknowledgementResponse"> > <wsdl:part name="results" > element="ar:AssessmentOrderAcknowledgement"/> > </wsdl:message> > <wsdl:portType name="Assessment"> > <wsdl:operation name="orderAssessment"> > <wsdl:input message="tg:AssessmentOrderRequest"/> > <wsdl:output message="tg:AssessmentOrderAcknowledgementResponse"/> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="AssessmentSOAPBinding" type="tg:Assessment"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="orderAssessment"> > <soap:operation > soapAction="http://www.test.com/hr-xml/orderAssessment"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="AssessmentService"> > <wsdl:port name="AssessmentPort" binding="tg:AssessmentSOAPBinding"> > <soap:address > location="http://localhost:8080/axis2/services/AssessmentService"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > > -- Davanum Srinivas : http://wso2.com/blogs/
