You can download the wsdl from the schemalocation ( https://uat-atc.regents.ohio.gov/ccx/OrgInfo/CoreMain_v1.0.0.xsd?wsdl ) and put it in the same directory as that of original wsdl and run wsdl2java. Thanks, Haneef
________________________________ From: Keith Veleba [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 1:03 PM To: axis-user@ws.apache.org Subject: WSDL2Java issue and/or help I'm writing a client for a web service and I am having an issue with stub generation. This wsdl is causing the generation to fail: https://uat-atc.regents.ohio.gov/ccx/OrgInfo?wsdl Specifically, I get an error saying it cannot find the schemaLocation of the imported schema on line 4: <xsd:import namespace="urn:org:pesc:core:CoreMain:v1.0.0" schemaLocation="OrgInfo/CoreMain_v1.0.0.xsd?wsdl"/> This schemaLocation looks very odd to me, but the folks who run the web service say it is valid and should be working. Here's the error when I run wsdl2java.sh: Retrieving schema at 'OrgInfo/CoreMain_v1.0.0.xsd?wsdl', relative to 'file:/Users/velebak/https:/uat-atc.regents.ohio.gov/ccx'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration Engine.java:114) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'OrgInfo/CoreMain_v1.0.0.xsd?wsdl', relative to 'file:/Users/velebak/https:/uat-atc.regents.ohio.gov/ccx'.: java.io.FileNotFoundException: This file was not found: file:/Users/velebak/https:/uat-atc.regents.ohio.gov/OrgInfo/CoreMain_v1. 0.0.xsd?wsdl at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Cod eGenerationEngine.java:276) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration Engine.java:97) ... 2 more Caused by: java.io.FileNotFoundException: This file was not found: file:/Users/velebak/https:/uat-atc.regents.ohio.gov/OrgInfo/CoreMain_v1. 0.0.xsd?wsdl at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source) ... 11 more Any ideas what may be going on here? It looks like it is looking for an actual local file, but it is not local, it is hosted remotely. Thanks in advance. -- Keith E. Veleba President Intellitek Services Ltd. 419-202-2676 cell [EMAIL PROTECTED] http://www.intellitekservices.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]