axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Bonazzoli <s.bonazz...@gmail.com>
Subject Re: wsdl2java bug ???
Date Thu, 16 Feb 2006 11:58:04 GMT
thanks for the link anne, there are some code samples but there isn't a wsdl
example... where can i find it?

Simone

On 2/16/06, Anne Thomas Manes <atmanes@gmail.com> wrote:
>
> Check the Wiki for information on using attachments.
> http://wiki.apache.org/ws/FrontPage/Axis.
> (scroll down to the section on Attachments)
>
> Anne
>
> On 2/16/06, Simone Bonazzoli <s.bonazzoli@gmail.com> wrote:
> >
> > sorry.... the element uploadRequest is wrong :)
> > forget it :)
> >
> > On 2/16/06, Simone Bonazzoli < s.bonazzoli@gmail.com > wrote:
> > >
> > > however, this is my xsd:
> > >
> > > <?xml version=" 1.0" encoding="UTF-8"?>
> > > <schema targetNamespace="http://www.informatica.uniroma2.it/WebDisk "
> > >         xmlns="http://www.w3.org/2001/XMLSchema"
> > >         xmlns:tns=" http://www.informatica.uniroma2.it/WebDisk "
> > >         xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> > >         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ ">
> > >
> > >     <import namespace="http://schemas.xmlsoap.org/soap/encoding/ "
> > > schemaLocation=" http://schemas.xmlsoap.org/soap/encoding/"/>
> > >
> > >     <complexType name="myFileType">
> > >         <sequence>
> > >             <element name="name" type="string"></element>
> > >             <element name="user" type="string"
> > > minOccurs="0"></element>
> > >             <element name="group" type="string"
> > > minOccurs="0"></element>
> > >             <element name="rigths" type="string"
> > > minOccurs="0"></element>
> > >             <element name="size" type="long"></element>
> > >             <element name="date" type="dateTime"></element>
> > >             <element name="isDirectory" type="boolean"></element>
> > >         </sequence>
> > >     </complexType>
> > >
> > >     <element name="listRequest">
> > >         <complexType>
> > >             <sequence>
> > >                 <element name="path" type="string"></element>
> > >                 <element name="options" type="string"></element>
> > >             </sequence>
> > >         </complexType>
> > >     </element>
> > >
> > >     <element name="listResponse">
> > >         <complexType>
> > >             <sequence minOccurs="0" maxOccurs="unbounded">
> > >                 <element name="myFile" type="tns:myFileType"/>
> > >             </sequence>
> > >         </complexType>
> > >     </element>
> > >
> > >     <element name="uploadRequest">
> > >         <complexType>
> > >             <sequence>
> > >                 <element name="fileName" type="string"/>
> > >                 <element name="file" type="base64Binary"/>
> > >             </sequence>
> > >         </complexType>
> > >     </element>
> > >
> > > </schema>
> > >
> > > On 2/16/06, Simone Bonazzoli < s.bonazzoli@gmail.com> wrote:
> > > >
> > > > how i can define my binding to use attachments??? i try the SWA
> > > > approach but i have a problem with axis... a few weeks ago i sent few
mail
> > > > but i didn't resolve my error... so i try the attachments sample (in the
> > > > samples direcotry of axis distribution) but there isn't wsdl of the example
> > > > so i try to see the wsdl generated from axis....
> > > >
> > > > can you help me?
> > > >
> > > > thx
> > > > Simone
> > > >
> > > > On 2/16/06, Anne Thomas Manes < atmanes@gmail.com> wrote:
> > > > >
> > > > > My guess is that it's your WSDL, but we need the imported XSD to
> > > > > make a final determination.
> > > > >
> > > > > One error that I see in the WSDL:
> > > > >
> > > > >     <wsdl:message name="uploadResponse">
> > > > >         <wsdl:part name="return" type="xsd:string"/>
> > > > >     </wsdl:message>
> > > > >
> > > > > When using document style, a message part must reference an
> > > > > element, not a type. This error could be causing the NPE.
> > > > >
> > > > > Also suspect is the reference to the element
> > > > > "apachesoap:DataHandler". First, you need to make sure that this
element is
> > > > > actually defined. And second, typically, you use this type when sending
> > > > > attachments, but you have not defined your binding to use attachments.
> > > > >
> > > > > >
> > > > > Anne
> > > > >
> > > > > On 2/16/06, Simone Bonazzoli <s.bonazzoli@gmail.com> wrote:
> > > > > >
> > > > > > i run wsdl2java for this instance do wsdl and i have the error
> > > > > > below, this is an error of mine or bug of wsdl2java tool???
> > > > > >
> > > > > > thanks
> > > > > > Simone
> > > > > >
> > > > > > [axis-wsdl2java] java.lang.NullPointerException
> > > > > > [axis-wsdl2java]     at
> > > > > > org.apache.axis.wsdl.toJava.Utils.getParameterTypeName(
> > > > > > Utils.java:994)
> > > > > > [axis-wsdl2java]     at
> > > > > > org.apache.axis.wsdl.toJava.JavaGeneratorFactory.constructSignature
> > > > > > (JavaGeneratorFactory.java:1473)
> > > > > > [axis-wsdl2java]     at
> > > > > > org.apache.axis.wsdl.toJava.JavaGeneratorFactory.constructSignatures
> > > > > > (JavaGeneratorFactory.java:1420)
> > > > > > [axis-wsdl2java]     at
> > > > > > org.apache.axis.wsdl.toJava.JavaGeneratorFactory.generatorPass(
> > > > > > JavaGeneratorFactory.java:213)
> > > > > > [axis-wsdl2java]     at org.apache.axis.wsdl.gen.Parser.generate
> > > > > > (Parser.java:425)
> > > > > > [axis-wsdl2java]     at
> > > > > > org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
> > > > > > [axis-wsdl2java]     at
> > > > > > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run (Parser.java
> > > > > > :362)
> > > > > > [axis-wsdl2java]     at java.lang.Thread.run(Thread.java:595)
> > > > > >
> > > > > > BUILD FAILED
> > > > > > /home/simo/develop/java/WebDisk/build.xml:104: WSDL processing
> > > > > > error for
> > > > > > /home/simo/develop/java/WebDisk/src/it/uniroma2/informatica/WebDisk.wsdl
:
> > > > > >  null
> > > > > >
> > > > > > Total time: 3 seconds
> > > > > >
> > > > > >
> > > > > >
> > > > > > -------------------------
> > > > > > WSDL
> > > > > >
> > > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > >
> > > > > > <wsdl:definitions
> > > > > >   targetNamespace="http://www.informatica.uniroma2.it/WebDisk/wsdl
> > > > > > "
> > > > > >   xmlns="http://schemas.xmlsoap.org/wsdl/ "
> > > > > >   xmlns:tns=" http://www.informatica.uniroma2.it/WebDisk/wsdl"
> > > > > >   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/ "
> > > > > >   xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/"
> > > > > >   xmlns:apachesoap="http://xml.apache.org/xml-soap"
> > > > > >   xmlns:types=" http://www.informatica.uniroma2.it/WebDisk"
> > > > > >   xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/ "
> > > > > >   xmlns:xsd=" http://www.w3.org/2001/XMLSchema" name="WebDisk">
> > > > > >
> > > > > >     <wsdl:types>
> > > > > >         <xsd:schema elementFormDefault="qualified"
> > > > > >             targetNamespace="http://www.informatica.uniroma2.it/WebDisk/wsdl/types
> > > > > > ">
> > > > > >               <xsd:import namespace="http://www.informatica.uniroma2.it/WebDisk"
> > > > > > schemaLocation="/home/simo/develop/java/WebDisk/src/it/uniroma2/informatica/WebDisk.xsd"/>
> > > > > >
> > > > > >         </xsd:schema>
> > > > > >     </wsdl:types>
> > > > > >
> > > > > >     <wsdl:message name="listRequest">
> > > > > >          <wsdl:part name="parameters"
> > > > > > element="types:listRequest" />
> > > > > >     </wsdl:message>
> > > > > >     <wsdl:message name="listResponse">
> > > > > >         <wsdl:part name="parameters"
> > > > > > element="types:listResponse"/>
> > > > > >     </wsdl:message>
> > > > > >
> > > > > >     <wsdl:message name="uploadRequest">
> > > > > >         <wsdl:part name="file"
> > > > > > element="apachesoap:DataHandler"/>
> > > > > >     </wsdl:message>
> > > > > >
> > > > > >     <wsdl:message name="uploadResponse">
> > > > > >         <wsdl:part name="return" type="xsd:string"/>
> > > > > >     </wsdl:message>
> > > > > >
> > > > > >
> > > > > >     <wsdl:portType name="WebDiskPortType">
> > > > > >         <wsdl:operation name="list">
> > > > > >             <wsdl:input message="tns:listRequest" />
> > > > > >             <wsdl:output message="tns:listResponse" />
> > > > > >         </wsdl:operation>
> > > > > >
> > > > > >         <wsdl:operation name="upload">
> > > > > >             <wsdl:input message="tns:uploadRequest"/>
> > > > > >             <wsdl:output message="tns:uploadResponse"/>
> > > > > >         </wsdl:operation>
> > > > > >     </wsdl:portType>
> > > > > >
> > > > > >     <wsdl:binding name="WebDiskSOAPBinding"
> > > > > > type="tns:WebDiskPortType">
> > > > > >         <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http
> > > > > > "/>
> > > > > >         <wsdl:operation name="list">
> > > > > >             <soap:operation soapAction="http://www.informatica.uniroma2.it/WebDisk/wsdl/list
> > > > > > "/>
> > > > > >             <wsdl:input>
> > > > > >                 <soap:body use="literal"/>
> > > > > >             </wsdl:input>
> > > > > >             <wsdl:output>
> > > > > >                 <soap:body use="literal"/>
> > > > > >             </wsdl:output>
> > > > > >         </wsdl:operation>
> > > > > >
> > > > > >         <wsdl:operation name="upload">
> > > > > >             <soap:operation soapAction="http://www.informatica.uniroma2.it/WebDisk/wsdl/upload
> > > > > > "/>
> > > > > >             <wsdl:input>
> > > > > >                 <soap:body use="literal"/>
> > > > > >             </wsdl:input>
> > > > > >             <wsdl:output>
> > > > > >                 <soap:body use="literal"/>
> > > > > >             </wsdl:output>
> > > > > >         </wsdl:operation>
> > > > > >
> > > > > >     </wsdl:binding>
> > > > > >
> > > > > >     <wsdl:service name="WebDiskService">
> > > > > >
> > > > > >         <wsdl:port binding="tns:WebDiskSOAPBinding"
> > > > > > name="WebDiskSOAP">
> > > > > >             <soap:address location="http://localhost:8080/axis/services/WebDiskSOAP
> > > > > > "/>
> > > > > >         </wsdl:port>
> > > > > >
> > > > > >     </wsdl:service>
> > > > > >
> > > > > > </wsdl:definitions>
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Mime
View raw message