Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wsdl definitions declaration - anyone spot whats wrong?

Status
Not open for further replies.

Kalisto

Programmer
Feb 18, 2003
997
GB
Im having issues with my xml / wsdl document as created on the fly by axis.

Below is the section of the code that I believe contains the error. (if I rename the tns1 by appending a 1 to the end of the namespace, ie. tns1=" then the system does not see any error with the fragemnt of code.

But why does this happen, all the xml provided looks standard to me (admittedly Im a novice and namespaces sometimes throw me)

Any help / advice / information is welcome

K

Code:
<wsdl:definitions targetNamespace="facade.soap.gateway.b.org.uk" xmlns:apachesoap="[URL unfurl="true"]http://xml.apache.org/xml-soap"[/URL] xmlns:impl="facade.soap.gateway.b.org.uk" xmlns:intf="facade.soap.gateway.b.org.uk" xmlns:soapenc="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] xmlns:tns1="[URL unfurl="true"]http://bdefinitions.soap.gateway.b.org.uk"[/URL] xmlns:tns2="[URL unfurl="true"]http://dto.soap.gateway.b.org.uk"[/URL] xmlns:wsdl="[URL unfurl="true"]http://schemas.xmlsoap.org/wsdl/"[/URL] xmlns:wsdlsoap="[URL unfurl="true"]http://schemas.xmlsoap.org/wsdl/soap/"[/URL] xmlns:xsd="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema">[/URL]
<!--WSDL created by Apache Axis version: 1.2RC3
Built on Feb 28, 2005 (10:15:14 EST)-->
 <wsdl:types>
  <schema targetNamespace="[URL unfurl="true"]http://bdefinitions.soap.gateway.b.org.uk"[/URL] xmlns="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema">[/URL]
   <import namespace="[URL unfurl="true"]http://dto.soap.gateway.b.org.uk"/>[/URL]
   <import namespace="facade.soap.gateway.b.org.uk"/>
   <import namespace="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"/>[/URL]
 <complexType name="ukphonenumber">
    <simpleContent>
     <extension/>
    </simpleContent>
   </complexType> 
   <complexType name="FacadeException">
    <sequence>
     <element name="message" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="guidtype">
    <simpleContent>
     <extension/>
    </simpleContent>
   </complexType>
  </schema>
  <schema targetNamespace="facade.soap.gateway.b.org.uk" xmlns="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema">[/URL]
   <import namespace="[URL unfurl="true"]http://bdefinitions.soap.gateway.b.org.uk"/>[/URL]
   <import namespace="[URL unfurl="true"]http://dto.soap.gateway.b.org.uk"/>[/URL]
   <import namespace="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"/>[/URL]
   <complexType name="ArrayOf_xsd_String">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string"/>
     </restriction>
    </complexContent>
   </complexType>
  </schema>
  <schema targetNamespace="[URL unfurl="true"]http://dto.soap.gateway.b.org.uk"[/URL] xmlns="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema">[/URL]
   <import namespace="[URL unfurl="true"]http://bdefinitions.soap.gateway.b.org.uk"/>[/URL]
   <import namespace="facade.soap.gateway.b.org.uk"/>
   <import namespace="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"/>[/URL]
   <complexType name="Service">
    <sequence>
     <element name="id" type="xsd:string"/>
     <element name="name" type="xsd:string"/>
     <element name="description" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="Site">
    <sequence>
     <element name="id" type="xsd:string"/>
     <element name="name" type="xsd:string"/>
     <element name="description" type="xsd:string"/>
     <element name="url" type="xsd:string"/>
     <element name="emailUrl" type="xsd:string"/>
     <element name="accessibleFields" type="xsd:string"/>
     <element maxOccurs="unbounded" minOccurs="0" name="service" type="tns2:Service"/>
    </sequence>
   </complexType>
   <complexType name="ArrayOf_Site">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="tns2:Site[]"/>
     </restriction>
    </complexContent>
   </complexType>
  </schema>
 </wsdl:types>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top