Anne,eesha is machine name and 7001 is port name.Am I missing something?
Thanks,Kam
On 10/13/05, Anne Thomas Manes <[EMAIL PROTECTED] > wrote:Try replacing eesha:7001 with a full domain name.
On 10/13/05, kamlesh patel <[EMAIL PROTECTED] > wrote:Friends,I am having trouble generating proxy classes from a WSDL file. WSDL is located on a web server and it imports schemas using absolute URL.When I runjava org.apache.axis.wsdl.WSDL2Java -W -n -D -v http://eesha:7001/ModemService/ModemServiceImpl?WSDL
I get following errorParsing XML file: http://eesha:7001/ModemService/ModemServiceImpl?WSDL
Retrieving schema at ' http://eesha:7001/xsd/service/modem/GetModems.xsd', relati
ve to ' http://eesha:7001/ModemService/ModemServiceImpl?WSDL '.
WSDLException (at /definitions/types/xsd:schema): faultCode=OTHER_ERROR: An erro
r occurred trying to resolve schema referenced at ' http://eesha:7001/xsd/service
/modem/GetModems.xsd', relative to ' http://eesha:7001/ModemService/ModemServiceI
mpl?WSDL'.: no content-type: java.net.UnknownServiceException: no content-type
at java.net.URLConnection.getContentHandler(URLConnection.java:1062)
at java.net.URLConnection.getContent(URLConnection.java :586)
at java.net.URL.getContent(URL.java:927)
at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)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.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:516)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate (SymbolTable.jav
a:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:534)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.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:516)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate (SymbolTable.jav
a:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:534)My WSDL import looks like this<?xml version="1.0" encoding="UTF-8" ?>- <definitions name="ModemService " targetNamespace=" http://oss.cablevision.com/wsdl/modem/ModemService" xmlns=" http://schemas.xmlsoap.org/wsdl/ " xmlns:s0=" http://oss.cablevision.com/xsd/service/modem/GetModems.xsd " xmlns:s1=" http://oss.cablevision.com/xsd/service/modem/ProvisionOOLModem.xsd " xmlns:s2=" http://oss.cablevision.com/xsd/common/common.xsd " xmlns:s3=" http://oss.cablevision.com/wsdl/modem/ModemService " xmlns:s4=" http://schemas.xmlsoap.org/wsdl/soap/ ">- <xsd:schema elementFormDefault=" qualified " targetNamespace=" http://oss.cablevision.com/wsdl/modem/ModemService" xmlns:common=" http://oss.cablevision.com/xsd/common/common.xsd " xmlns:getallmodems=" http://oss.cablevision.com/xsd/service/modem/GetModems.xsd" xmlns:provisionoolmodem =" http://oss.cablevision.com/xsd/service/modem/ProvisionOOLModem.xsd " xmlns:s0=" http://oss.cablevision.com/xsd/service/modem/GetModems.xsd " xmlns:s1=" http://oss.cablevision.com/xsd/service/modem/ProvisionOOLModem.xsd " xmlns:s2=" http://oss.cablevision.com/xsd/common/common.xsd " xmlns:s3 =" http://oss.cablevision.com/wsdl/modem/ModemService " xmlns:s4=" http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap =" http://schemas.xmlsoap.org/wsdl/soap/ " xmlns:tns=" http://oss.cablevision.com/wsdl/modem/ModemService" xmlns:wsdl =" http://schemas.xmlsoap.org/wsdl/ " xmlns:xsd=" http://www.w3.org/2001/XMLSchema "><xsd:import namespace=" http://oss.cablevision.com/xsd/service/modem/GetModems.xsd " schemaLocation=" http://eesha:7001/xsd/service/modem/GetModems.xsd" /><xsd:import namespace=" http://oss.cablevision.com/xsd/service/modem/ProvisionOOLModem.xsd " schemaLocation=" http://eesha:7001/xsd/service/modem/ProvisionOOLModem.xsd " /><xsd:import namespace=" http://oss.cablevision.com/xsd/common/common.xsd " schemaLocation=" http://eesha:7001/xsd/common/common.xsd" /></xsd:schema ></types >Thanks,Kam
Try localhost or the IP address in place of eesha.
On 10/14/05, kamlesh patel <[EMAIL PROTECTED]> wrote:
