Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

SAXException while generating stubs for a WSDL

Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends

i am stuck in a problem for which i need your help.
i am using the Axis wsdl2java tool to generate the client side stub classes.
the wsdl which i was using was referring to the port http://localhost/hth/services/Client?wsdl
i was running the wsdl2java tool on this wsdl to generate stubs. it was working fine.

Now i have removed the client.wsdl from the default localhost port and
want to keep it in some location like D:\wsdl\Client.wsdl so that i don't have to depend on the Application server which needs to be up everytime for the wsdl to be used.
when i run the wsdl2java command on this location i get the following error.
org.xml.sax.SAXException: Fatal Error: URI=file:///D:/wsdl/Client.wsdl Line=1: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(
at org.apache.axis.utils.XMLUtils.newDocument(
at org.apache.axis.utils.XMLUtils.newDocument(
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
at org.apache.axis.wsdl.gen.Parser$

Please let me know what is the problem here and how can i resolve this issue.
here is bit of the sample client.wsdl

<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl efinitions targetNamespace="D:\wsdl\Client.wsdl" xmlns:apachesoap="" xmlns:impl="D:\wsdl\Client.wsdl" xmlns:intf="D:\wsdl\Client.wsdl" xmlns:soapenc="" xmlns:tns1="D:\wsdl\Client.wsdl" xmlns:tns2="" xmlns:tns3="" xmlns:tns4="" xmlns:tns5="" xmlns:wsdl="" xmlns:wsdlsoap="" xmlns:xsd="">
- <!--
WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)

- <wsdl:types>
- <schema targetNamespace="D:\wsdl\Client.wsdl" xmlns="">
<import namespace="" />
<import namespace="" />
<import namespace="" />
<import namespace="" />
<import namespace="" />
<import namespace="http://localhost/hth/services/Client" />
<import namespace="" />
- <complexType name="HTHBaseDTO">
- <sequence>
<element name="md5Sum" nillable="true" type="xsd:string" />
<element name="primaryKey" nillable="true" type="xsd:integer" />
- <complexType name="VitalThresholdEnum">
- <sequence>
<element name="labelKey" nillable="true" type="xsd:string" />
<element name="pk" nillable="true" type="xsd:short" />
- <complexType name="VitalThresholdDTO">
- <complexContent>
- <extension base="tns1:HTHBaseDTO">
- <sequence>
<element name="categoryPk" nillable="true" type="xsd:short" />
<element name="clientCarePlanPk" nillable="true" type="xsd:long" />
<element name="clientPk" nillable="true" type="xsd:integer" />
<element name="clientVitalPrescriptionPk" nillable="true" type="xsd:integer" />
<element name="statusPk" nillable="true" type="xsd:short" />
<element name="syncStatusPk" nillable="true" type="xsd:short" />
<element name="thresholdType" nillable="true" type="tns1:VitalThresholdEnum" />
<element name="thresholdValue" nillable="true" type="xsd ouble" />
<element name="unitTy

hoping for positive replies from your side.

Thanks & regards
Vikram K
Right! We're on it! Let's get to work tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic