I am attempting to build a Web Service Client using an existing WSDL. I am
using MyEclipse 6.0.1. However, the client fails to build because there is
an error in the WSDL. However, when using Eclipse with the XFire plugin,
I've been told everything works. 



<?xml version="1.0" encoding="UTF-8"?> 
<wsdl:definitions 
   targetNamespace="http://service.server.dim.jtdi"; 
   xmlns:tns="http://service.server.dim.jtdi"; 
   xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
   xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"; 
   xmlns:ns1="http://model.server.dim.jtdi"; 
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
   xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/"; 
   xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding"; 
   xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/"; 
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";> 


<wsdl:types> 
       
         <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
               attributeFormDefault="qualified" 
               elementFormDefault="qualified" 
               targetNamespace="http://model.server.dim.jtdi";> 
          
         <xsd:complexType name="ArrayOfUrgency"> 
            <xsd:sequence> 
               <xsd:element maxOccurs="unbounded" minOccurs="0" 
                  name="Urgency" nillable="true" type="ns1:Urgency" /> 
            </xsd:sequence> 
         </xsd:complexType> 
          
         <xsd:complexType name="Urgency"> 
            <xsd:sequence> 
               <xsd:element minOccurs="0" name="description" 
                  nillable="true" type="xsd:string" /> 
               <xsd:element minOccurs="0" name="id" nillable="true" 
                  type="xsd:long" /> 
               <xsd:element minOccurs="0" name="name" 
                  nillable="true" type="xsd:string" /> 
            </xsd:sequence> 
         </xsd:complexType> 



      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
         attributeFormDefault="qualified" elementFormDefault="qualified" 
         targetNamespace="http://service.server.dim.jtdi";> 



         <xsd:element name="getAllUrgenciesResponse"> 
            <xsd:complexType> 
               <xsd:sequence> 
                  <xsd:element maxOccurs="1" minOccurs="1" 
                     name="out" nillable="true" type="ns1:ArrayOfUrgency"
/>--->>>The error happens here with the ns1:ArrayOfUrgency  type <<<---- 
               </xsd:sequence> 
            </xsd:complexType> 
         </xsd:element> 


      .... 
      </schema> 
</wsdl:types> 

.... 
</wsdl:definitions> 

 


This is the error I am receiving: 


src-resolve.4.2: Error resolving component 'ns1:ArrayOfUrgency'. It was
detected that 'ns1:ArrayOfUrgency' is in namespace
'http://model.server.dim.jtdi', but components from this namespace are not
referenceable from schema document
'file:///C:/jtdiNewWorkspace/testwebservice/web/WEB-INF/wsdl/DimWebService.wsdl'.
If this is the incorrect namespace, perhaps the prefix of
'ns1:ArrayOfUrgency' needs to be changed. If this is the correct namespace,
then an appropriate 'import' tag should be added to
'file:///C:/jtdiNewWorkspace/testwebservice/web/WEB-INF/wsdl/DimWebService.wsdl'.
  
testwebservice/web/WEB-INF/wsdl   DimWebService.wsdl   line 169  
1193761736130   140632 
 

Any assistance in understanding this error would be greatly appreciated. 

Russ
-- 
View this message in context: 
http://www.nabble.com/Well-Formed-WSDL-tf4721077.html#a13497074
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to