Re: Reading WSDL content

"Andrzej Jan Taramina" <andrzej-2/[email protected]> Sat, 24 Dec 2005 11:43:32 -0500
Newsgroups gmane.comp.apache.webservices.wsif.user
Organization Chaeron Corporation
Message-ID <[email protected]>
> 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 <andrzej-2/[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