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!

Tracking down a fault

Status
Not open for further replies.

Kalisto

Programmer
Feb 18, 2003
997
GB
OK, I have 2 pieces of software, That generates me standard xml to describe webservices.

Despite what I am about to describe, this is an xml issue, so bear with the background please!

I am also using Visual Studio to create a simple front end to test these webservices. When I import the xml files to Vis Studio it complains with the following message
Code:
 Custom tool error: Unable to import WebService/Schema. Unable to import binding 
'userFacadeSoapBinding' from namespace 'f.s.g.b.org.uk'. 
Unable to import operation 'login'. 
Schema with targetNamespace=has invalid syntax. The 'base' attribute is either invalid or missing.
[URL unfurl="true"]http://bdefinitions.f.s.g.b.org.uk'[/URL] has invalid syntax. The 'base' attribute is either invalid or missing.

now there is a base attribute defined, and it is defined as base = "xsd:string" so can anyone suggest anything else to look at to eliminate the issue. I suspect that its a namespace issue, but thats just because they are the area of xml I am weakest on.

any help greatfully received.

K
 
Post the schema

Jon

"There are 10 types of people in the world... those who understand binary and those who don't.
 
Thats just it, there isnt one, its all in the wsdl!
k
 
OK, apologies for the length of this. I know that there is an issue with the fact that the schema seems to be assigning everything a type of ukphonenumber, but I can deal with that later.

error message is
Code:
: Custom tool error: Unable to import WebService/Schema. Unable to import binding 'adminFacadeSoapBinding' from namespace 'facade.soap.gw.b.org.uk'. Unable to import operation 'createSite'. Schema with targetNamespace='[URL unfurl="true"]http://bdefinitions.soap.gw.b.org.uk'[/URL] has invalid syntax. The 'base' attribute is either invalid or missing.

The start of the wsdl is below (This is intact, but I have shortened the schema definitions to save spave)

Code:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="facade.soap.gw.b.org.uk" xmlns:apachesoap="[URL unfurl="true"]http://xml.apache.org/xml-soap"[/URL] xmlns:impl="facade.soap.gw.b.org.uk" xmlns:intf="facade.soap.gw.b.org.uk" xmlns:soapenc="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] xmlns:tns1="[URL unfurl="true"]http://bdefinitions.soap.gw.b.org.uk"[/URL] xmlns:tns2="[URL unfurl="true"]http://dto.soap.gw.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.gw.b.org.uk"[/URL] xmlns="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema">[/URL]
   <import namespace="[URL unfurl="true"]http://dto.soap.gw.b.org.uk"/>[/URL]
   <import namespace="facade.soap.gw.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.gw.b.org.uk" xmlns="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema">[/URL]
   <import namespace="[URL unfurl="true"]http://bdefinitions.soap.gw.b.org.uk"/>[/URL]
   <import namespace="[URL unfurl="true"]http://dto.soap.gw.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="tns1:ukphonenumber[]"/>
     </restriction>
    </complexContent>
   </complexType>
  </schema>
  <schema targetNamespace="[URL unfurl="true"]http://dto.soap.gw.b.org.uk"[/URL] xmlns="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema">[/URL]
   <import namespace="[URL unfurl="true"]http://bdefinitions.soap.gw.b.org.uk"/>[/URL]
   <import namespace="facade.soap.gw.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>

   <wsdl:message name="listSitesResponse">

      <wsdl:part name="listSitesReturn" type="tns2:ArrayOf_Site"/>

   </wsdl:message>

   <wsdl:message name="removeSiteResponse">

   </wsdl:message>

   <wsdl:message name="createSiteResponse">

   </wsdl:message>

   <wsdl:message name="createSiteRequest">

      <wsdl:part name="in0" type="xsd:string"/>

      <wsdl:part name="in1" type="xsd:string"/>

      <wsdl:part name="in2" type="xsd:string"/>

      <wsdl:part name="in3" type="xsd:string"/>

      <wsdl:part name="in4" type="impl:ArrayOf_xsd_String"/>

   </wsdl:message>

   <wsdl:message name="listSitesRequest">

   </wsdl:message>

   <wsdl:message name="updateSiteResponse">

   </wsdl:message>

   <wsdl:message name="FacadeException">

      <wsdl:part name="fault" type="tns1:FacadeException"/>

   </wsdl:message>

   <wsdl:message name="updateSiteRequest">

      <wsdl:part name="in0" type="tns2:Site"/>

   </wsdl:message>

   <wsdl:message name="removeSiteRequest">

      <wsdl:part name="in0" type="tns1:guidtype"/>

   </wsdl:message>

   <wsdl:portType name="AdminFacade">

      <wsdl:operation name="createSite" parameterOrder="in0 in1 in2 in3 in4">

         <wsdl:input message="impl:createSiteRequest" name="createSiteRequest"/>

         <wsdl:output message="impl:createSiteResponse" name="createSiteResponse"/>

         <wsdl:fault message="impl:FacadeException" name="FacadeException"/>

      </wsdl:operation>

      <wsdl:operation name="removeSite" parameterOrder="in0">

         <wsdl:input message="impl:removeSiteRequest" name="removeSiteRequest"/>

         <wsdl:output message="impl:removeSiteResponse" name="removeSiteResponse"/>

         <wsdl:fault message="impl:FacadeException" name="FacadeException"/>

      </wsdl:operation>

      <wsdl:operation name="listSites">

         <wsdl:input message="impl:listSitesRequest" name="listSitesRequest"/>

         <wsdl:output message="impl:listSitesResponse" name="listSitesResponse"/>

         <wsdl:fault message="impl:FacadeException" name="FacadeException"/>

      </wsdl:operation>

      <wsdl:operation name="updateSite" parameterOrder="in0">

         <wsdl:input message="impl:updateSiteRequest" name="updateSiteRequest"/>

         <wsdl:output message="impl:updateSiteResponse" name="updateSiteResponse"/>

         <wsdl:fault message="impl:FacadeException" name="FacadeException"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="adminFacadeSoapBinding" type="impl:AdminFacade">

      <wsdlsoap:binding style="rpc" transport="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/http"/>[/URL]

      <wsdl:operation name="createSite">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="createSiteRequest">

            <wsdlsoap:body encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="createSiteResponse">

            <wsdlsoap:body encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="FacadeException">

            <wsdlsoap:fault encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] name="FacadeException" namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="removeSite">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="removeSiteRequest">

            <wsdlsoap:body encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="removeSiteResponse">

            <wsdlsoap:body encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="FacadeException">

            <wsdlsoap:fault encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] name="FacadeException" namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="listSites">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="listSitesRequest">

            <wsdlsoap:body encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="listSitesResponse">

            <wsdlsoap:body encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="FacadeException">

            <wsdlsoap:fault encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] name="FacadeException" namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="updateSite">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="updateSiteRequest">

            <wsdlsoap:body encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="updateSiteResponse">

            <wsdlsoap:body encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="FacadeException">

            <wsdlsoap:fault encodingStyle="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"[/URL] name="FacadeException" namespace="facade.soap.gw.b.org.uk" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="AdminFacadeService">

      <wsdl:port binding="impl:adminFacadeSoapBinding" name="adminFacade">

         <wsdlsoap:address location="[URL unfurl="true"]http://d30546:8080/gw/services/adminFacade"/>[/URL]

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>


any help is greatfully recieved as Im slowly going mad trying to resolve this one

Cheers

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top