users@jaxb.java.net

JAXB Help!!!!

From: Nagalla, Vamsi <nagallav_at_ti.com>
Date: Mon, 25 Nov 2002 16:38:19 -0600

Im trying to compile the attached schema using the schema compiler and this
this throws me the following errors. Below Ive attached the
NewMarketInformationRequestExample.xsd, which im trying to compile.

Here is my schema
 
*************************SCHEMA*********************************************
**
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.webMethods.com/noNamespace/
<http://www.webMethods.com/noNamespace/> "
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/
<http://schemas.xmlsoap.org/wsdl/> "
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/
<http://schemas.xmlsoap.org/soap/encoding/> "
xmlns:xs="http://www.w3.org/2001/XMLSchema
<http://www.w3.org/2001/XMLSchema> "
xmlns:ST1="http://www.webMethods.com/noNamespace/
<http://www.webMethods.com/noNamespace/> "
xmlns="http://www.webMethods.com/noNamespace/
<http://www.webMethods.com/noNamespace/> ">
 <xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/
<http://schemas.xmlsoap.org/soap/encoding/> "
schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/
<http://schemas.xmlsoap.org/soap/encoding/> >
 <xs:complexType name="MarketInformationRequest">
  <xs:sequence>
   <xs:element name="UserAuth" type="UserAuth" nillable="true"/>
   <xs:element name="MarketInformationReqStruct"
type="MarketInformationReqStruct" nillable="true"/>
  </xs:sequence>
 </xs:complexType>
 <xs:element name="MarketInformationRequest" type="MarketInformationRequest"
nillable="true"/>
 <xs:complexType name="MarketInformationReqStructArrayItem">
  <xs:sequence>
   <xs:element name="NumberOfPartsToReturn" type="xs:string" nillable="true"
minOccurs="0"/>
   <xs:element name="MfrPartNumber" type="xs:string" nillable="true"/>
   <xs:element name="MfrCode" type="xs:string" nillable="true"/>
  </xs:sequence>
  <xs:attribute name="RequestedQuantity" type="xs:string"/>
 </xs:complexType>
 <xs:complexType name="MarketInformationReqStruct">
  <xs:complexContent>
   <xs:restriction base="SOAP-ENC:Array">
    <xs:attribute ref="SOAP-ENC:arrayType"
wsdl:arrayType="MarketInformationReqStructArrayItem[]"/>
   </xs:restriction>
  </xs:complexContent>
 </xs:complexType>
 <xs:element name="MarketInformationReqStruct"
type="MarketInformationReqStructArrayItem" nillable="true"/>
 <xs:complexType name="UserAuth">
  <xs:sequence>
   <xs:element name="UserName" type="xs:string" nillable="true"/>
   <xs:element name="Password" type="xs:string" nillable="true"/>
   <xs:element name="ClientIPAddress" type="xs:string" nillable="true"
minOccurs="0"/>
  </xs:sequence>
 </xs:complexType>
 <xs:element name="UserAuth" type="UserAuth" nillable="true"/>
</xs:schema>

 
****************************************************************************
**
 
I get the following error.
*************************ERROR**********************************************
**
c:\JavaTech\jaxb-1.0-beta\examples\users-guide\crossreference>c:\JavaTech\ja
xb-1.0-beta\bin\xjc.bat
NewMarketInformationRequestExample.xsd -p
com.ti.crossreference.request.example
parsing a schema...
src-import.0: Failed to read imported schema document
'http://schemas.xmlsoap.org/soap/encoding/'.
  line 3 of NewMarketInformationRequestExample.xsd
 
src-resolve: Cannot resolve the name 'SOAP-ENC:Array' to a(n) type
definition component.
  line 20 of NewMarketInformationRequestExample.xsd
 
Failed to parse a schema.
****************************************************************************
***
 
I would really appreciate any kind of help.
 
Regards,
Vamsi