Hi,

I'm trying to generate the service stubs for a message style interface from a WSDL file but seems there are some namespace definitions such as: xmlns:tns3="http://dom.w3c.org"; or xmlns:tns6="http://sax.xml.org which for them the namespaces have been imported but the schemaLocation is not generated. There is no schema at the specified URI either then the wsdl2java tool doesn't know how to process associated types; "Attributes" and "Node".

Does anybody know how to fix this problem and how to find/Where to import proper naming schema and so ??

There is a thread in this mailing list for the same problem but doesn't come with the final solution.


Cheers


Alex.


Parts of WSDL schema...

.
.
.

xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns2="http://message.axis.apache.org"; xmlns:tns3="http://dom.w3c.org"; xmlns:tns4="http://soap.xml.javax"; xmlns:tns5="http://util.java"; xmlns:tns6="http://sax.xml.org"; xmlns:tns7="http://encoding.axis.apache.org"; xmlns:tns8="http://soap.axis.apache.org"; xmlns:tns9="http://schema.axis.apache.org"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<!--WSDL created by Apache Axis version: 1.2.1
Built on Jun 07, 2005 (10:11:43 EDT)-->
<wsdl:types>
 <schema targetNamespace="http://message.axis.apache.org"; 
xmlns="http://www.w3.org/2001/XMLSchema";>
  <import namespace="http://schema.axis.apache.org"/>
  <import namespace="http://encoding.axis.apache.org"/>
  <import namespace="http://soap.axis.apache.org"/>
  <import namespace="http://soap.xml.javax"/>
  <import namespace="http://util.java"/>
  <import namespace="http://sax.xml.org"/>
  <import namespace="http://xml.apache.org/xml-soap"/>
  <import namespace="http://dom.w3c.org"/>
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
  <complexType name="NodeImpl">
   <sequence>
    <element name="attributes" nillable="true" type="xsd:anyType"/>
    <element name="childNodes" nillable="true" type="xsd:anyType"/>
    <element name="dirty" type="xsd:boolean"/>
    <element name="firstChild" nillable="true" type="xsd:anyType"/>
    <element name="lastChild" nillable="true" type="tns3:Node"/>
    <element name="localName" nillable="true" type="soapenc:string"/>
    <element name="namespaceURI" nillable="true" type="soapenc:string"/>
    <element name="nextSibling" nillable="true" type="tns3:Node"/>
    <element name="nodeName" nillable="true" type="soapenc:string"/>
    <element name="nodeType" type="xsd:short"/>
    <element name="nodeValue" nillable="true" type="soapenc:string"/>
    <element name="ownerDocument" nillable="true" type="apachesoap:Document"/>
    <element name="parentElement" nillable="true" type="xsd:anyType"/>
    <element name="parentNode" nillable="true" type="tns3:Node"/>
    <element name="prefix" nillable="true" type="soapenc:string"/>
    <element name="previousSibling" nillable="true" type="tns3:Node"/>
    <element name="value" nillable="true" type="soapenc:string"/>
   </sequence>
  </complexType>
  <complexType name="SAX2EventRecorder">
   <sequence>
    <element name="length" type="xsd:int"/>
   </sequence>
  </complexType>
  <complexType name="MessageElement">
   <complexContent>
    <extension base="tns2:NodeImpl">
     <sequence>
      <element name="ID" nillable="true" type="soapenc:string"/>
      <element name="NSMappings" nillable="true" 
type="impl:ArrayOf_xsd_anyType"/>
      <element name="QName" nillable="true" type="xsd:QName"/>
      <element name="allAttributes" nillable="true" type="xsd:anyType"/>
      <element name="asDOM" nillable="true" type="apachesoap:Element"/>
      <element name="asDocument" nillable="true" type="apachesoap:Document"/>
      <element name="asString" nillable="true" type="soapenc:string"/>
      <element name="attributesEx" nillable="true" type="xsd:anyType"/>
      <element name="childElements" nillable="true" type="tns5:Iterator"/>
      <element name="children" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
      <element name="completeAttributes" nillable="true" 
type="tns6:Attributes"/>
      <element name="contentsIndex" type="xsd:int"/>
      <element name="deserializationContext" nillable="true" 
type="xsd:anyType"/>
      <element name="elementName" nillable="true" type="xsd:anyType"/>
      <element name="encodingStyle" nillable="true" type="soapenc:string"/>
      <element name="endIndex" type="xsd:int"/>
      <element name="envelope" nillable="true" type="tns2:SOAPEnvelope"/>
      <element name="fixupDeserializer" nillable="true" type="xsd:anyType"/>
      <element name="href" nillable="true" type="soapenc:string"/>
      <element name="length" type="xsd:int"/>
      <element name="name" nillable="true" type="soapenc:string"/>
      <element name="namespacePrefixes" nillable="true" type="tns5:Iterator"/>
      <element name="objectValue" nillable="true" type="xsd:anyType"/>
      <element name="realElement" nillable="true" type="tns2:MessageElement"/>
      <element name="recorder" nillable="true" type="tns2:SAX2EventRecorder"/>
      <element name="root" type="xsd:boolean"/>
      <element name="tagName" nillable="true" type="soapenc:string"/>
      <element name="type" nillable="true" type="xsd:QName"/>
      <element name="visibleNamespacePrefixes" nillable="true" 
type="tns5:Iterator"/>
      <element name="namespaces" nillable="true" 
type="impl:ArrayOf_xsd_anyType"/>
     </sequence>
    </extension>
   </complexContent>
  </complexType>
  <complexType name="SOAPBodyElement">
   <complexContent>
    <extension base="tns2:MessageElement">
     <sequence/>
    </extension>
   </complexContent>
  </complexType>

.
.
.

Reply via email to