I'm sending another wsdl which generated the same error when I tried to get
types.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:PessoaArr"
xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:impl="urn:PessoaArr"
xmlns:intf="urn:PessoaArr"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
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 14, 2005 (09:15:57 EDT)-->
 <wsdl:types>
  <schema targetNamespace="urn:PessoaArr"
xmlns="http://www.w3.org/2001/XMLSchema";>
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="Pessoa">
    <sequence>
     <element name="idade" type="xsd:int"/>
     <element name="nome" nillable="true" type="soapenc:string"/>
    </sequence>
   </complexType>
   <complexType name="ArrayOfPessoa">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:Pessoa[]"/>
     </restriction>
    </complexContent>
   </complexType>
  </schema>
 </wsdl:types>

   <wsdl:message name="getArrPessoaRequest">

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

   </wsdl:message>

   <wsdl:message name="getArrPessoaResponse">

      <wsdl:part name="getArrPessoaReturn" type="impl:ArrayOfPessoa"/>

   </wsdl:message>

   <wsdl:portType name="PessoaArrIf">

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

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

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

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="PessoaArrSoapBinding" type="impl:PessoaArrIf">

      <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="getArrPessoa">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getArrPessoaRequest">

            <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="urn:PessoaArr" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="getArrPessoaResponse">

            <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="urn:PessoaArr" use="encoded"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="PessoaArrIfService">

      <wsdl:port binding="impl:PessoaArrSoapBinding" name="PessoaArr">

         <wsdlsoap:address
location="http://localhost:8081/axis/services/PessoaArr"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>


This wsdl was generated by Apache Axis. Can you see something missing there?

If yes, please tell me!!

Thanks in advance!

Fabricio

-----Mensagem original-----
De: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED] 
Enviada em: sábado, 24 de dezembro de 2005 14:44
Para: wsif-user@ws.apache.org; [EMAIL PROTECTED]
Assunto: Re: Reading WSDL content

> That xml is only the piece of wsdl that I want to get. The entire wsdl is
passed
> to WSDL4J definition and I want to get just the <types/>. In linux I can
get it
> without problems, but doing this in windows I always get schema=null as I
said
> in the previous e-mail. :-(

My point, Fabricio, is that your WSDL looks like it's coded incorrectly!

You need to have a declaration for the soapenc namespace prefix, which does 
not appear in your document anywhere.  Note that the one in the import will 
not be propagated to the parent document context.

This could easily cause the kind of error that you have encountered.  

You should fix your WSDL definition to be correct and see if that resolves 
your issue.  I have a feeling it might.

As for having different behaviour on different platforms, that is quite 
common.

....A


> 
> Citando Andrzej Jan Taramina <[EMAIL PROTECTED]>:
> 
> > Fabricio:
> > 
> > You don't seem to define the "soapenc" namespace prefix anywhere.  That
might
> > 
> > be causing it.
> > 
> > > <wsdl:types>
> > >  <schema 
> > >
targetNamespace="urn:PessoaArr"xmlns="http://www.w3.org/2001/XMLSchema";>
> > >  <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
> > >  <complexType name="Pessoa">
> > >  <sequence>
> > >  <element name="idade"type="xsd:int"/>
> > >  <element name="nome"nillable="true" type="soapenc:string"/>
> > >  </sequence>
> > >  </complexType>
> > >  <complexType name="ArrayOfPessoa">
> > >  <complexContent>
> > >  <restriction base="soapenc:Array">
> > >  <attribute ref="soapenc:arrayType"wsdl:arrayType="impl:Pessoa[]"/>
> > >  </restriction>
> > >  </complexContent>
> > >  </complexType>
> > >  </schema>
> > > </wsdl:types>
> > 
> > 
> > 
> > Andrzej Jan Taramina
> > Chaeron Corporation: Enterprise System Solutions
> > http://www.chaeron.com
> > 
> 
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com

Reply via email to