You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Simone Bonazzoli <s....@gmail.com> on 2006/02/16 12:16:53 UTC

wsdl2java bug ???

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>

Re: wsdl2java bug ???

Posted by Anne Thomas Manes <at...@gmail.com>.
When using doc style, all content that goes in the SOAP Body must be defined
as an element, but the attachments are defined as types. So you must define
elements to contain your fileName and return strings. e.g., the messages
should be defined like so...

    <wsdl:message name="uploadRequest">
        <wsdl:part name="fileName" element="types:fileName"/>
        <wsdl:part name="file" type="xsd:base64Binary"/>     </wsdl:message>

    <wsdl:message name="uploadResponse">
        <wsdl:part name="return" element="types:return"/>
    </wsdl:message>

And you need to add the following to your schema:

     <xsd:element name="fileName" type="xsd:string"/>
     <xsd:element name="return" type="xsd:string"/>

Anne

On 2/18/06, Simone Bonazzoli <s....@gmail.com> wrote:
>
> this is exactly swa specification... MIME message.... or not?
>
> On 2/18/06, Xinjun Chen <xj...@gmail.com> wrote:
> >
> > I am not sure what your problem is. I found the following snippet from
> > your WSDL file.
> >
> >    <wsdl:message name=3D"uploadRequest">
> >        <wsdl:part name=3D"fileName" type=3D"xsd:string"/>
> >        <wsdl:part name=3D"file" type=3D"xsd:base64Binary"/>
> >    </wsdl:message>
> >
> > You use doc-lit style, yet your message have two parts. I am not sure
> > whether this will cause problem. But anyway, this is not a good practice to
> > have more than one part in a message.
> >
> >
> >
> >
> > Regards,
> > Xinjun
> >
> >
> > On 2/16/06, Simone Bonazzoli <s.bonazzoli@gmail.com > wrote:
> > >
> > > rodriguo, i think that the service is deployed correctly...
> > >
> > > this is the wsdd..... any suggests???
> > >
> > > simone
> > >
> > > <!-- Use this file to deploy some handlers/chains and services
> > > -->
> > > <!-- Two ways to do this:
> > > -->
> > > <!--   java org.apache.axis.client.AdminClient deploy.wsdd
> > > -->
> > > <!--      after the axis server is running
> > > -->
> > > <!-- or
> > > -->
> > > <!--   java org.apache.axis.utils.Admin client|server deploy.wsdd
> > > -->
> > > <!--      from the same directory that the Axis engine runs
> > > -->
> > >
> > > <deployment
> > >     xmlns=" http://xml.apache.org/axis/wsdd/"
> > >     xmlns:java="http://xml.apache.org/axis/wsdd/providers/java ">
> > >
> > >   <!-- Services from WebDiskService WSDL service -->
> > >
> > >   <service name="WebDiskSOAP" provider="java:RPC" style="document"
> > > use="literal">
> > >       <parameter name="wsdlTargetNamespace" value="
> > > http://www.informatica.uniroma2.it/WebDisk/wsdl"/>
> > >       <parameter name="wsdlServiceElement" value="WebDiskService"/>
> > >       <parameter name="schemaQualified" value=" http://www.informatica.uniroma2.it/WebDisk/wsdl/types
> > > "/>
> > >       <parameter name="schemaUnqualified" value="http://www.informatica.uniroma2.it/WebDisk
> > > "/>
> > >       <parameter name="wsdlServicePort" value="WebDiskSOAP"/>
> > >       <parameter name="className" value="
> > > it.uniroma2.informatica.webservices.WebDiskSOAPBindingImpl "/>
> > >       <parameter name="wsdlPortType" value="WebDiskPortType"/>
> > >       <parameter name="typeMappingVersion" value="1.2"/>
> > >
> > >       <operation name="list" qname="list"
> > > returnQName="retNS:listResponse" xmlns:retNS="
> > > http://www.informatica.uniroma2.it/WebDisk"
> > > returnType="rtns:listResponse" soapAction="
> > > http://www.informatica.uniroma2.it/WebDisk/wsdl/list" >
> > >         <parameter qname="pns:listRequest" xmlns:pns=" http://www.informatica.uniroma2.it/WebDisk
> > > " type="tns:listRequest" xmlns:tns="
> > > http://www.informatica.uniroma2.it/WebDisk"/>
> > >       </operation>
> > >
> > >       <operation name="upload" qname="upload"
> > > returnQName="retNS:uploadResponse" xmlns:rtNS="
> > > http://www.informatica.uniroma2.it/WebDisk" returnType="xsd:string"
> > > soapAction=" http://www.informatica.uniroma2.it/WebDisk/wsdl/upload" >
> > >         <parameter qname="fileName" type="pns:string" xmlns:pns=" http://www.w3.org/2001/XMLSchema
> > > "/>
> > >         <parameter qname="file" type="pns:Multipart" xmlns:pns="
> > > http://xml.apache.org/xml-soap"/>
> > >       </operation>
> > >
> > >       <parameter name="allowedMethods" value="list upload"/>
> > >
> > >       <requestFlow>
> > >           <handler type="soapmonitor"/>
> > >       </requestFlow>
> > >       <responseFlow>
> > >     <handler type="soapmonitor"/>
> > >       </responseFlow>
> > >
> > >
> > >
> > >       <typeMapping
> > >         xmlns:ns="http://www.informatica.uniroma2.it/WebDisk "
> > >         qname="ns:listRequest"
> > >         type="java:it.uniroma2.informatica.types.ListRequest"
> > >         serializer="
> > > org.apache.axis.encoding.ser.castor.CastorSerializerFactory"
> > >         deserializer="
> > > org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
> > >         encodingStyle=""
> > >       />
> > >       <typeMapping
> > >         xmlns:ns=" http://www.informatica.uniroma2.it/WebDisk"
> > >         qname="ns:listResponse"
> > >         type="java:it.uniroma2.informatica.types.ListResponse"
> > >         serializer="
> > > org.apache.axis.encoding.ser.castor.CastorSerializerFactory "
> > >         deserializer="
> > > org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
> > >         encodingStyle=""
> > >       />
> > >       <typeMapping
> > >         xmlns:ns=" http://www.informatica.uniroma2.it/WebDisk"
> > >         qname="ns:myFileType"
> > >         type="java:it.uniroma2.informatica.types.MyFileType"
> > >         serializer="
> > > org.apache.axis.encoding.ser.castor.CastorSerializerFactory "
> > >         deserializer="
> > > org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
> > >         encodingStyle=""
> > >       />
> > >       <typeMapping
> > >         xmlns:ns=" http://www.informatica.uniroma2.it/WebDisk"
> > >         qname="ns:DataHandler"
> > >         type="java:javax.activation.DataHandler"
> > >         serializer="
> > > org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory "
> > >         deserializer="
> > > org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
> > >         encodingStyle=""
> > >       />
> > >
> > >
> > >   </service>
> > > </deployment>
> > >
> > >
> > > On 2/16/06, Simone Bonazzoli <s.bonazzoli@gmail.com > wrote:
> > > >
> > > > thank you for the information.... i will try
> > > >
> > > > regards
> > > > simone
> > > >
> > > > On 2/16/06, Rodrigo Ruiz <rruiz@gridsystems.com > wrote:
> > > > >
> > > > > From the logs you give in your post, it seems you are trying to
> > > > > catch
> > > > > the wrong error :-)
> > > > >
> > > > > The NoSuchMethodException is not an error condition. If you watch
> > > > > the
> > > > > axis source code you will see that it is just a first attempt to
> > > > > get a
> > > > > factory instance. Just after this log entry, there is a second
> > > > > attempt
> > > > > (using another approach) and this one is successful.
> > > > >
> > > > > The real problem is this one:
> > > > >
> > > > > 1047 [main] DEBUG org.apache.axis.ConfigurationException   -
> > > > > Exception:
> > > > > org.apache.axis.ConfigurationException: No service named
> > > > > WebDiskSOAP is
> > > > > available
> > > > > 1048 [main] DEBUG org.apache.axis.ConfigurationException  -
> > > > > Exception:
> > > > > org.apache.axis.ConfigurationException: No service named
> > > > > http://www.informatica.uniroma2.it/WebDisk/wsdl/upload
> > > > > <http://www.informatica.uniroma2.it/WebDisk/wsdl/upload > is
> > > > > available
> > > > >
> > > > > It seems the service is not correctly deployed on axis, and
> > > > > therefore,
> > > > > it does not know how to handle your service soapAction.
> > > > >
> > > > >
> > > > > Best Regards,
> > > > > Rodrigo Ruiz
> > > > >
> > > > > Simone Bonazzoli wrote:
> > > > > > i see that example but i have a problem and i didn't be able to
> > > > > > resolve it...
> > > > > > the title of the mail sended in this mailing list is SWA
> > > > > PRoblem...
> > > > > >
> > > > > > howevere.... i paste the text below.... if u can help me i
> > > > > appreciate
> > > > > > your help :)
> > > > > >
> > > > > > Simone
> > > > > >
> > > > > > ---------------------------------------------
> > > > > > Hi, i'm developing a simple webservice that support the upload
> > > > > and
> > > > > > download of binary files... i look at the example "swa" present
> > > > > in the
> > > > > > samples directory of the axis distribution....
> > > > > > i customize my wsdl and all otherthings but when i try to run my
> > > > > > client the axis.log report this exception:
> > > > > >
> > > > > > java.lang.NoSuchMethodException :
> > > > > >
> > > > > org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(
> > > > > java.lang.Class,
> > > > > > javax.xml.namespace.QName)
> > > > > >
> > > > >
> > > >
> > > >
> > >
> >
>

Re: wsdl2java bug ???

Posted by Simone Bonazzoli <s....@gmail.com>.
this is exactly swa specification... MIME message.... or not?

On 2/18/06, Xinjun Chen <xj...@gmail.com> wrote:
>
> I am not sure what your problem is. I found the following snippet from
> your WSDL file.
>
>    <wsdl:message name=3D"uploadRequest">
>        <wsdl:part name=3D"fileName" type=3D"xsd:string"/>
>        <wsdl:part name=3D"file" type=3D"xsd:base64Binary"/>
>    </wsdl:message>
>
> You use doc-lit style, yet your message have two parts. I am not sure
> whether this will cause problem. But anyway, this is not a good practice to
> have more than one part in a message.
>
>
>
>
> Regards,
> Xinjun
>
>
> On 2/16/06, Simone Bonazzoli <s....@gmail.com> wrote:
> >
> > rodriguo, i think that the service is deployed correctly...
> >
> > this is the wsdd..... any suggests???
> >
> > simone
> >
> > <!-- Use this file to deploy some handlers/chains and services      -->
> > <!-- Two ways to do this:                                           -->
> > <!--   java org.apache.axis.client.AdminClient deploy.wsdd          -->
> > <!--      after the axis server is running                          -->
> > <!-- or                                                             -->
> > <!--   java org.apache.axis.utils.Admin client|server deploy.wsdd   -->
> > <!--      from the same directory that the Axis engine runs         -->
> >
> > <deployment
> >     xmlns=" http://xml.apache.org/axis/wsdd/"
> >     xmlns:java="http://xml.apache.org/axis/wsdd/providers/java ">
> >
> >   <!-- Services from WebDiskService WSDL service -->
> >
> >   <service name="WebDiskSOAP" provider="java:RPC" style="document"
> > use="literal">
> >       <parameter name="wsdlTargetNamespace" value="
> > http://www.informatica.uniroma2.it/WebDisk/wsdl"/>
> >       <parameter name="wsdlServiceElement" value="WebDiskService"/>
> >       <parameter name="schemaQualified" value=" http://www.informatica.uniroma2.it/WebDisk/wsdl/types
> > "/>
> >       <parameter name="schemaUnqualified" value="http://www.informatica.uniroma2.it/WebDisk
> > "/>
> >       <parameter name="wsdlServicePort" value="WebDiskSOAP"/>
> >       <parameter name="className" value="
> > it.uniroma2.informatica.webservices.WebDiskSOAPBindingImpl "/>
> >       <parameter name="wsdlPortType" value="WebDiskPortType"/>
> >       <parameter name="typeMappingVersion" value="1.2"/>
> >
> >       <operation name="list" qname="list"
> > returnQName="retNS:listResponse" xmlns:retNS="
> > http://www.informatica.uniroma2.it/WebDisk"
> > returnType="rtns:listResponse" soapAction="
> > http://www.informatica.uniroma2.it/WebDisk/wsdl/list" >
> >         <parameter qname="pns:listRequest" xmlns:pns=" http://www.informatica.uniroma2.it/WebDisk
> > " type="tns:listRequest" xmlns:tns="
> > http://www.informatica.uniroma2.it/WebDisk"/>
> >       </operation>
> >
> >       <operation name="upload" qname="upload"
> > returnQName="retNS:uploadResponse" xmlns:rtNS="
> > http://www.informatica.uniroma2.it/WebDisk" returnType="xsd:string"
> > soapAction=" http://www.informatica.uniroma2.it/WebDisk/wsdl/upload" >
> >         <parameter qname="fileName" type="pns:string" xmlns:pns=" http://www.w3.org/2001/XMLSchema
> > "/>
> >         <parameter qname="file" type="pns:Multipart" xmlns:pns="
> > http://xml.apache.org/xml-soap"/>
> >       </operation>
> >
> >       <parameter name="allowedMethods" value="list upload"/>
> >
> >       <requestFlow>
> >           <handler type="soapmonitor"/>
> >       </requestFlow>
> >       <responseFlow>
> >     <handler type="soapmonitor"/>
> >       </responseFlow>
> >
> >
> >
> >       <typeMapping
> >         xmlns:ns="http://www.informatica.uniroma2.it/WebDisk "
> >         qname="ns:listRequest"
> >         type="java:it.uniroma2.informatica.types.ListRequest"
> >         serializer="
> > org.apache.axis.encoding.ser.castor.CastorSerializerFactory"
> >         deserializer="
> > org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
> >         encodingStyle=""
> >       />
> >       <typeMapping
> >         xmlns:ns=" http://www.informatica.uniroma2.it/WebDisk"
> >         qname="ns:listResponse"
> >         type="java:it.uniroma2.informatica.types.ListResponse"
> >         serializer="
> > org.apache.axis.encoding.ser.castor.CastorSerializerFactory "
> >         deserializer="
> > org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
> >         encodingStyle=""
> >       />
> >       <typeMapping
> >         xmlns:ns=" http://www.informatica.uniroma2.it/WebDisk"
> >         qname="ns:myFileType"
> >         type="java:it.uniroma2.informatica.types.MyFileType"
> >         serializer="
> > org.apache.axis.encoding.ser.castor.CastorSerializerFactory "
> >         deserializer="
> > org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
> >         encodingStyle=""
> >       />
> >       <typeMapping
> >         xmlns:ns=" http://www.informatica.uniroma2.it/WebDisk"
> >         qname="ns:DataHandler"
> >         type="java:javax.activation.DataHandler"
> >         serializer="
> > org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory "
> >         deserializer="
> > org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
> >         encodingStyle=""
> >       />
> >
> >
> >   </service>
> > </deployment>
> >
> >
> > On 2/16/06, Simone Bonazzoli <s.bonazzoli@gmail.com > wrote:
> > >
> > > thank you for the information.... i will try
> > >
> > > regards
> > > simone
> > >
> > > On 2/16/06, Rodrigo Ruiz <rruiz@gridsystems.com > wrote:
> > > >
> > > > From the logs you give in your post, it seems you are trying to
> > > > catch
> > > > the wrong error :-)
> > > >
> > > > The NoSuchMethodException is not an error condition. If you watch
> > > > the
> > > > axis source code you will see that it is just a first attempt to get
> > > > a
> > > > factory instance. Just after this log entry, there is a second
> > > > attempt
> > > > (using another approach) and this one is successful.
> > > >
> > > > The real problem is this one:
> > > >
> > > > 1047 [main] DEBUG org.apache.axis.ConfigurationException   -
> > > > Exception:
> > > > org.apache.axis.ConfigurationException: No service named WebDiskSOAP
> > > > is
> > > > available
> > > > 1048 [main] DEBUG org.apache.axis.ConfigurationException  -
> > > > Exception:
> > > > org.apache.axis.ConfigurationException: No service named
> > > > http://www.informatica.uniroma2.it/WebDisk/wsdl/upload
> > > > <http://www.informatica.uniroma2.it/WebDisk/wsdl/upload > is
> > > > available
> > > >
> > > > It seems the service is not correctly deployed on axis, and
> > > > therefore,
> > > > it does not know how to handle your service soapAction.
> > > >
> > > >
> > > > Best Regards,
> > > > Rodrigo Ruiz
> > > >
> > > > Simone Bonazzoli wrote:
> > > > > i see that example but i have a problem and i didn't be able to
> > > > > resolve it...
> > > > > the title of the mail sended in this mailing list is SWA
> > > > PRoblem...
> > > > >
> > > > > howevere.... i paste the text below.... if u can help me i
> > > > appreciate
> > > > > your help :)
> > > > >
> > > > > Simone
> > > > >
> > > > > ---------------------------------------------
> > > > > Hi, i'm developing a simple webservice that support the upload and
> > > > > download of binary files... i look at the example "swa" present in
> > > > the
> > > > > samples directory of the axis distribution....
> > > > > i customize my wsdl and all otherthings but when i try to run my
> > > > > client the axis.log report this exception:
> > > > >
> > > > > java.lang.NoSuchMethodException :
> > > > >
> > > > org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(
> > > > java.lang.Class,
> > > > > javax.xml.namespace.QName)
> > > > >
> > > >
> > >
> > >
> >
>

Re: wsdl2java bug ???

Posted by Xinjun Chen <xj...@gmail.com>.
I am not sure what your problem is. I found the following snippet from your
WSDL file.

   <wsdl:message name=3D"uploadRequest">
       <wsdl:part name=3D"fileName" type=3D"xsd:string"/>
       <wsdl:part name=3D"file" type=3D"xsd:base64Binary"/>
   </wsdl:message>

You use doc-lit style, yet your message have two parts. I am not sure
whether this will cause problem. But anyway, this is not a good practice to
have more than one part in a message.




Regards,
Xinjun


On 2/16/06, Simone Bonazzoli <s....@gmail.com> wrote:
>
> rodriguo, i think that the service is deployed correctly...
>
> this is the wsdd..... any suggests???
>
> simone
>
> <!-- Use this file to deploy some handlers/chains and services      -->
> <!-- Two ways to do this:                                           -->
> <!--   java org.apache.axis.client.AdminClient deploy.wsdd          -->
> <!--      after the axis server is running                          -->
> <!-- or                                                             -->
> <!--   java org.apache.axis.utils.Admin client|server deploy.wsdd   -->
> <!--      from the same directory that the Axis engine runs         -->
>
> <deployment
>     xmlns=" http://xml.apache.org/axis/wsdd/"
>     xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>
>   <!-- Services from WebDiskService WSDL service -->
>
>   <service name="WebDiskSOAP" provider="java:RPC" style="document"
> use="literal">
>       <parameter name="wsdlTargetNamespace" value="http://www.informatica.uniroma2.it/WebDisk/wsdl
> "/>
>       <parameter name="wsdlServiceElement" value="WebDiskService"/>
>       <parameter name="schemaQualified" value="
> http://www.informatica.uniroma2.it/WebDisk/wsdl/types"/>
>       <parameter name="schemaUnqualified" value="http://www.informatica.uniroma2.it/WebDisk
> "/>
>       <parameter name="wsdlServicePort" value="WebDiskSOAP"/>
>       <parameter name="className" value="
> it.uniroma2.informatica.webservices.WebDiskSOAPBindingImpl "/>
>       <parameter name="wsdlPortType" value="WebDiskPortType"/>
>       <parameter name="typeMappingVersion" value="1.2"/>
>
>       <operation name="list" qname="list" returnQName="retNS:listResponse"
> xmlns:retNS=" http://www.informatica.uniroma2.it/WebDisk"
> returnType="rtns:listResponse" soapAction="http://www.informatica.uniroma2.it/WebDisk/wsdl/list"
> >
>         <parameter qname="pns:listRequest" xmlns:pns="http://www.informatica.uniroma2.it/WebDisk
> " type="tns:listRequest" xmlns:tns="
> http://www.informatica.uniroma2.it/WebDisk"/>
>       </operation>
>
>       <operation name="upload" qname="upload"
> returnQName="retNS:uploadResponse" xmlns:rtNS="
> http://www.informatica.uniroma2.it/WebDisk" returnType="xsd:string"
> soapAction=" http://www.informatica.uniroma2.it/WebDisk/wsdl/upload" >
>         <parameter qname="fileName" type="pns:string" xmlns:pns="http://www.w3.org/2001/XMLSchema
> "/>
>         <parameter qname="file" type="pns:Multipart" xmlns:pns="
> http://xml.apache.org/xml-soap"/>
>       </operation>
>
>       <parameter name="allowedMethods" value="list upload"/>
>
>       <requestFlow>
>           <handler type="soapmonitor"/>
>       </requestFlow>
>       <responseFlow>
>     <handler type="soapmonitor"/>
>       </responseFlow>
>
>
>
>       <typeMapping
>         xmlns:ns="http://www.informatica.uniroma2.it/WebDisk "
>         qname="ns:listRequest"
>         type="java:it.uniroma2.informatica.types.ListRequest"
>         serializer="
> org.apache.axis.encoding.ser.castor.CastorSerializerFactory"
>         deserializer="
> org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
>         encodingStyle=""
>       />
>       <typeMapping
>         xmlns:ns=" http://www.informatica.uniroma2.it/WebDisk"
>         qname="ns:listResponse"
>         type="java:it.uniroma2.informatica.types.ListResponse"
>         serializer="
> org.apache.axis.encoding.ser.castor.CastorSerializerFactory "
>         deserializer="
> org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
>         encodingStyle=""
>       />
>       <typeMapping
>         xmlns:ns=" http://www.informatica.uniroma2.it/WebDisk"
>         qname="ns:myFileType"
>         type="java:it.uniroma2.informatica.types.MyFileType"
>         serializer="
> org.apache.axis.encoding.ser.castor.CastorSerializerFactory "
>         deserializer="
> org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
>         encodingStyle=""
>       />
>       <typeMapping
>         xmlns:ns=" http://www.informatica.uniroma2.it/WebDisk"
>         qname="ns:DataHandler"
>         type="java:javax.activation.DataHandler"
>         serializer="
> org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory "
>         deserializer="
> org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
>         encodingStyle=""
>       />
>
>
>   </service>
> </deployment>
>
>
> On 2/16/06, Simone Bonazzoli <s....@gmail.com> wrote:
> >
> > thank you for the information.... i will try
> >
> > regards
> > simone
> >
> > On 2/16/06, Rodrigo Ruiz <rruiz@gridsystems.com > wrote:
> > >
> > > From the logs you give in your post, it seems you are trying to catch
> > > the wrong error :-)
> > >
> > > The NoSuchMethodException is not an error condition. If you watch the
> > > axis source code you will see that it is just a first attempt to get a
> > > factory instance. Just after this log entry, there is a second attempt
> > >
> > > (using another approach) and this one is successful.
> > >
> > > The real problem is this one:
> > >
> > > 1047 [main] DEBUG org.apache.axis.ConfigurationException   -
> > > Exception:
> > > org.apache.axis.ConfigurationException: No service named WebDiskSOAP
> > > is
> > > available
> > > 1048 [main] DEBUG org.apache.axis.ConfigurationException  - Exception:
> > > org.apache.axis.ConfigurationException: No service named
> > > http://www.informatica.uniroma2.it/WebDisk/wsdl/upload
> > > <http://www.informatica.uniroma2.it/WebDisk/wsdl/upload> is available
> > >
> > > It seems the service is not correctly deployed on axis, and therefore,
> > >
> > > it does not know how to handle your service soapAction.
> > >
> > >
> > > Best Regards,
> > > Rodrigo Ruiz
> > >
> > > Simone Bonazzoli wrote:
> > > > i see that example but i have a problem and i didn't be able to
> > > > resolve it...
> > > > the title of the mail sended in this mailing list is SWA PRoblem...
> > > >
> > > > howevere.... i paste the text below.... if u can help me i
> > > appreciate
> > > > your help :)
> > > >
> > > > Simone
> > > >
> > > > ---------------------------------------------
> > > > Hi, i'm developing a simple webservice that support the upload and
> > > > download of binary files... i look at the example "swa" present in
> > > the
> > > > samples directory of the axis distribution....
> > > > i customize my wsdl and all otherthings but when i try to run my
> > > > client the axis.log report this exception:
> > > >
> > > > java.lang.NoSuchMethodException:
> > > > org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(
> > > java.lang.Class,
> > > > javax.xml.namespace.QName)
> > > >
> > >
> >
> >
>

Re: wsdl2java bug ???

Posted by Simone Bonazzoli <s....@gmail.com>.
rodriguo, i think that the service is deployed correctly...

this is the wsdd..... any suggests???

simone

<!-- Use this file to deploy some handlers/chains and services      -->
<!-- Two ways to do this:                                           -->
<!--   java org.apache.axis.client.AdminClient deploy.wsdd          -->
<!--      after the axis server is running                          -->
<!-- or                                                             -->
<!--   java org.apache.axis.utils.Admin client|server deploy.wsdd   -->
<!--      from the same directory that the Axis engine runs         -->

<deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

  <!-- Services from WebDiskService WSDL service -->

  <service name="WebDiskSOAP" provider="java:RPC" style="document"
use="literal">
      <parameter name="wsdlTargetNamespace" value="
http://www.informatica.uniroma2.it/WebDisk/wsdl"/>
      <parameter name="wsdlServiceElement" value="WebDiskService"/>
      <parameter name="schemaQualified" value="
http://www.informatica.uniroma2.it/WebDisk/wsdl/types"/>
      <parameter name="schemaUnqualified" value="
http://www.informatica.uniroma2.it/WebDisk"/>
      <parameter name="wsdlServicePort" value="WebDiskSOAP"/>
      <parameter name="className" value="
it.uniroma2.informatica.webservices.WebDiskSOAPBindingImpl"/>
      <parameter name="wsdlPortType" value="WebDiskPortType"/>
      <parameter name="typeMappingVersion" value="1.2"/>

      <operation name="list" qname="list" returnQName="retNS:listResponse"
xmlns:retNS="http://www.informatica.uniroma2.it/WebDisk"
returnType="rtns:listResponse" soapAction="
http://www.informatica.uniroma2.it/WebDisk/wsdl/list" >
        <parameter qname="pns:listRequest" xmlns:pns="
http://www.informatica.uniroma2.it/WebDisk" type="tns:listRequest"
xmlns:tns="http://www.informatica.uniroma2.it/WebDisk"/>
      </operation>

      <operation name="upload" qname="upload"
returnQName="retNS:uploadResponse" xmlns:rtNS="
http://www.informatica.uniroma2.it/WebDisk" returnType="xsd:string"
soapAction="http://www.informatica.uniroma2.it/WebDisk/wsdl/upload" >
        <parameter qname="fileName" type="pns:string" xmlns:pns="
http://www.w3.org/2001/XMLSchema"/>
        <parameter qname="file" type="pns:Multipart" xmlns:pns="
http://xml.apache.org/xml-soap"/>
      </operation>

      <parameter name="allowedMethods" value="list upload"/>

      <requestFlow>
          <handler type="soapmonitor"/>
      </requestFlow>
      <responseFlow>
    <handler type="soapmonitor"/>
      </responseFlow>



      <typeMapping
        xmlns:ns="http://www.informatica.uniroma2.it/WebDisk"
        qname="ns:listRequest"
        type="java:it.uniroma2.informatica.types.ListRequest"
        serializer="
org.apache.axis.encoding.ser.castor.CastorSerializerFactory"
        deserializer="
org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
        encodingStyle=""
      />
      <typeMapping
        xmlns:ns="http://www.informatica.uniroma2.it/WebDisk"
        qname="ns:listResponse"
        type="java:it.uniroma2.informatica.types.ListResponse"
        serializer="
org.apache.axis.encoding.ser.castor.CastorSerializerFactory"
        deserializer="
org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
        encodingStyle=""
      />
      <typeMapping
        xmlns:ns="http://www.informatica.uniroma2.it/WebDisk"
        qname="ns:myFileType"
        type="java:it.uniroma2.informatica.types.MyFileType"
        serializer="
org.apache.axis.encoding.ser.castor.CastorSerializerFactory"
        deserializer="
org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
        encodingStyle=""
      />
      <typeMapping
        xmlns:ns="http://www.informatica.uniroma2.it/WebDisk"
        qname="ns:DataHandler"
        type="java:javax.activation.DataHandler"
        serializer="
org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
        deserializer="
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
        encodingStyle=""
      />


  </service>
</deployment>


On 2/16/06, Simone Bonazzoli <s....@gmail.com> wrote:
>
> thank you for the information.... i will try
>
> regards
> simone
>
> On 2/16/06, Rodrigo Ruiz <rruiz@gridsystems.com > wrote:
> >
> > From the logs you give in your post, it seems you are trying to catch
> > the wrong error :-)
> >
> > The NoSuchMethodException is not an error condition. If you watch the
> > axis source code you will see that it is just a first attempt to get a
> > factory instance. Just after this log entry, there is a second attempt
> > (using another approach) and this one is successful.
> >
> > The real problem is this one:
> >
> > 1047 [main] DEBUG org.apache.axis.ConfigurationException   - Exception:
> > org.apache.axis.ConfigurationException: No service named WebDiskSOAP is
> > available
> > 1048 [main] DEBUG org.apache.axis.ConfigurationException  - Exception:
> > org.apache.axis.ConfigurationException: No service named
> > http://www.informatica.uniroma2.it/WebDisk/wsdl/upload
> > <http://www.informatica.uniroma2.it/WebDisk/wsdl/upload> is available
> >
> > It seems the service is not correctly deployed on axis, and therefore,
> > it does not know how to handle your service soapAction.
> >
> >
> > Best Regards,
> > Rodrigo Ruiz
> >
> > Simone Bonazzoli wrote:
> > > i see that example but i have a problem and i didn't be able to
> > > resolve it...
> > > the title of the mail sended in this mailing list is SWA PRoblem...
> > >
> > > howevere.... i paste the text below.... if u can help me i appreciate
> > > your help :)
> > >
> > > Simone
> > >
> > > ---------------------------------------------
> > > Hi, i'm developing a simple webservice that support the upload and
> > > download of binary files... i look at the example "swa" present in the
> > > samples directory of the axis distribution....
> > > i customize my wsdl and all otherthings but when i try to run my
> > > client the axis.log report this exception:
> > >
> > > java.lang.NoSuchMethodException:
> > > org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create (
> > java.lang.Class,
> > > javax.xml.namespace.QName)
> > >
> >
>
>

Re: wsdl2java bug ???

Posted by Simone Bonazzoli <s....@gmail.com>.
thank you for the information.... i will try

regards
simone

On 2/16/06, Rodrigo Ruiz <rr...@gridsystems.com> wrote:
>
> From the logs you give in your post, it seems you are trying to catch
> the wrong error :-)
>
> The NoSuchMethodException is not an error condition. If you watch the
> axis source code you will see that it is just a first attempt to get a
> factory instance. Just after this log entry, there is a second attempt
> (using another approach) and this one is successful.
>
> The real problem is this one:
>
> 1047 [main] DEBUG org.apache.axis.ConfigurationException   - Exception:
> org.apache.axis.ConfigurationException: No service named WebDiskSOAP is
> available
> 1048 [main] DEBUG org.apache.axis.ConfigurationException  - Exception:
> org.apache.axis.ConfigurationException: No service named
> http://www.informatica.uniroma2.it/WebDisk/wsdl/upload
> <http://www.informatica.uniroma2.it/WebDisk/wsdl/upload> is available
>
> It seems the service is not correctly deployed on axis, and therefore,
> it does not know how to handle your service soapAction.
>
>
> Best Regards,
> Rodrigo Ruiz
>
> Simone Bonazzoli wrote:
> > i see that example but i have a problem and i didn't be able to
> > resolve it...
> > the title of the mail sended in this mailing list is SWA PRoblem...
> >
> > howevere.... i paste the text below.... if u can help me i appreciate
> > your help :)
> >
> > Simone
> >
> > ---------------------------------------------
> > Hi, i'm developing a simple webservice that support the upload and
> > download of binary files... i look at the example "swa" present in the
> > samples directory of the axis distribution....
> > i customize my wsdl and all otherthings but when i try to run my
> > client the axis.log report this exception:
> >
> > java.lang.NoSuchMethodException:
> > org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(
> java.lang.Class,
> > javax.xml.namespace.QName)
> >
>

Re: wsdl2java bug ???

Posted by Rodrigo Ruiz <rr...@gridsystems.com>.
 From the logs you give in your post, it seems you are trying to catch 
the wrong error :-)

The NoSuchMethodException is not an error condition. If you watch the 
axis source code you will see that it is just a first attempt to get a 
factory instance. Just after this log entry, there is a second attempt 
(using another approach) and this one is successful.

The real problem is this one:

1047 [main] DEBUG org.apache.axis.ConfigurationException   - Exception:
org.apache.axis.ConfigurationException: No service named WebDiskSOAP is 
available
1048 [main] DEBUG org.apache.axis.ConfigurationException  - Exception:
org.apache.axis.ConfigurationException: No service named 
http://www.informatica.uniroma2.it/WebDisk/wsdl/upload 
<http://www.informatica.uniroma2.it/WebDisk/wsdl/upload> is available

It seems the service is not correctly deployed on axis, and therefore, 
it does not know how to handle your service soapAction.


Best Regards,
Rodrigo Ruiz

Simone Bonazzoli wrote:
> i see that example but i have a problem and i didn't be able to 
> resolve it...
> the title of the mail sended in this mailing list is SWA PRoblem...
>
> howevere.... i paste the text below.... if u can help me i appreciate 
> your help :)
>
> Simone
>
> ---------------------------------------------
> Hi, i'm developing a simple webservice that support the upload and 
> download of binary files... i look at the example "swa" present in the 
> samples directory of the axis distribution....
> i customize my wsdl and all otherthings but when i try to run my 
> client the axis.log report this exception:
>
> java.lang.NoSuchMethodException: 
> org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(java.lang.Class, 
> javax.xml.namespace.QName)
>

Re: wsdl2java bug ???

Posted by Simone Bonazzoli <s....@gmail.com>.
i see that example but i have a problem and i didn't be able to resolve
it...
the title of the mail sended in this mailing list is SWA PRoblem...

howevere.... i paste the text below.... if u can help me i appreciate your
help :)

Simone

---------------------------------------------
Hi, i'm developing a simple webservice that support the upload and download
of binary files... i look at the example "swa" present in the samples
directory of the axis distribution....
i customize my wsdl and all otherthings but when i try to run my client the
axis.log report this exception:

java.lang.NoSuchMethodException:
org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(
java.lang.Class, javax.xml.namespace.QName)

below i put my wsdd file and my wsdl file... the question is: is this an
axis bug or a my error... please help me :)

0    [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - getBundle(
org.apache.axis,org.apache.axis.i18n,resource,null,...)
32   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - loadBundle:
Ignoring MissingResourceException: Can't find bundle for base name
org.apache.axis.resource, locale en_US
32   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - Created
org.apache.axis.i18n.resource, linked to parent null
33   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle   - getBundle(
org.apache.axis,org.apache.axis.utils,resource,null,...)
35   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - loadBundle:
Ignoring MissingResourceException: Can't find bundle for base name
org.apache.axis.utils.resource , locale en_US
35   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - loadBundle:
Ignoring MissingResourceException: Can't find bundle for base name
org.apache.axis.resource, locale en_US
35   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - Root package
not found, cross link to org.apache.axis.i18n.resource
35   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - Root package
not found, cross link to org.apache.axis.i18n.resource
36   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(engineConfigLoadFactory)
37   [main] DEBUG
org.apache.axis.configuration.EngineConfigurationFactoryFinder   - Factory
org.apache.axis.configuration.EngineConfigurationFactoryServlet Ignored:
unable to load/resolve class.
39   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (engineFactory)
39   [main] DEBUG
org.apache.axis.configuration.EngineConfigurationFactoryFinder  - Got
EngineFactory:
org.apache.axis.configuration.EngineConfigurationFactoryDefault
45   [main] DEBUG org.apache.axis.AxisEngine   - Enter: AxisEngine::init
459  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
459  [main] DEBUG org.apache.axis.utils.JavaUtils  - Attachment support is
enabled?  true
502  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(class java.lang.String,
{http://xml.apache.org/xml-soap}PlainText)
<http://xml.apache.org/xml-soap%7DPlainText%29>
505  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(oddDigits00)
505  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (badChars01)
637  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(class java.awt.Image,
{http://xml.apache.org/xml-soap}Image)
<http://xml.apache.org/xml-soap%7DImage%29>
682  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(class
javax.mail.internet.MimeMultipart,
{http://xml.apache.org/xml-soap}Multipart)<http://xml.apache.org/xml-soap%7DMultipart%29>
684  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(interface
javax.xml.transform.Source, {
http://xml.apache.org/xml-soap}Source)<http://xml.apache.org/xml-soap%7DSource%29>
687  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(class
org.apache.axis.attachments.OctetStream , {
http://xml.apache.org/xml-soap}octet-stream)<http://xml.apache.org/xml-soap%7Doctet-stream%29>
688  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory()
757  [main] DEBUG org.apache.axis.AxisEngine  - Exit: AxisEngine::init
775  [main] DEBUG org.apache.axis.description.OperationDesc  - @13785d3
added parameter >name:      
{http://www.informatica.uniroma2.it/WebDisk}listRequest<http://www.informatica.uniroma2.it/WebDisk%7DlistRequest>
typeEntry:  null
mode:       IN
position:   0
isReturn:   false
typeQName:  {http://www.informatica.uniroma2.it/WebDisk}
<http://www.informatica.uniroma2.it/WebDisk%7D>>listRequest
javaType:   class it.uniroma2.informatica.types.ListRequest
inHeader:   false
outHeader:  false
@32efa7<total parameters:1
775  [main] DEBUG org.apache.axis.description.OperationDesc  -
@13785d3setReturnType({
http://www.informatica.uniroma2.it/WebDisk}listResponse)<http://www.informatica.uniroma2.it/WebDisk%7DlistResponse%29>
787  [main] DEBUG org.apache.axis.description.OperationDesc  - @1242b11
added parameter >name:       fileName
typeEntry:  null
mode:       IN
position:   0
isReturn:   false
typeQName:  {http://www.w3.org/2001/XMLSchema}string<http://www.w3.org/2001/XMLSchema%7Dstring>
javaType:   class java.lang.String
inHeader:   false
outHeader:  false
@1878144<total parameters:1
787  [main] DEBUG org.apache.axis.description.OperationDesc  - @1242b11
added parameter >name:       file
typeEntry:  null
mode:       IN
position:   1
isReturn:   false
typeQName:  {http://xml.apache.org/xml-soap}Multipart<http://xml.apache.org/xml-soap%7DMultipart>
javaType:   class javax.mail.internet.MimeMultipart
inHeader:   false
outHeader:  false
@137d090<total parameters:2
787  [main] DEBUG org.apache.axis.description.OperationDesc  -
@1242b11setReturnType({http://www.w3.org/2001/XMLSchema}string)
<http://www.w3.org/2001/XMLSchema%7Dstring%29>
944  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(transport00)
944  [main] DEBUG org.apache.axis.client.Call  - Transport is
org.apache.axis.transport.http.HTTPTransport@90c06f
946  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(exception00)
948  [main] DEBUG org.apache.axis.encoding.ser.BaseSerializerFactory  -
Exception:
java.lang.NoSuchMethodException :
org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(
java.lang.Class, javax.xml.namespace.QName)
    at java.lang.Class.getMethod(Class.java:1581)
    at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory (
BaseSerializerFactory.java:254)
    at org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
    at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.createCall
(WebDiskSOAPBindingStub.java:161)
    at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload(
WebDiskSOAPBindingStub.java:218)
    at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
    at it.uniroma2.informatica.webservices.WebDiskClient.main (
WebDiskClient.java:36)
952  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(exception00)
952  [main] DEBUG org.apache.axis.encoding.ser.BaseDeserializerFactory   -
Exception:
java.lang.NoSuchMethodException:
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.create(
java.lang.Class, javax.xml.namespace.QName)
    at java.lang.Class.getMethod(Class.java:1581)
    at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(
BaseDeserializerFactory.java:225)
    at org.apache.axis.client.Call.registerTypeMapping(Call.java:2317)
    at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.createCall(
WebDiskSOAPBindingStub.java:161)
    at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload(
WebDiskSOAPBindingStub.java:218)
    at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java :80)
    at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)
953  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(class
javax.activation.DataHandler, {
http://www.informatica.uniroma2.it/WebDisk/}DataHandler)<http://www.informatica.uniroma2.it/WebDisk/%7DDataHandler%29>
962  [main] DEBUG org.apache.axis.client.Call  - Enter: Call::invoke(ns,
meth, args)
979  [main] DEBUG org.apache.axis.client.Call  - operation=name:
upload
returnQName: return
returnType:  {http://www.w3.org/2001/XMLSchema}string<http://www.w3.org/2001/XMLSchema%7Dstring>
returnClass: class java.lang.String
elementQName:null
soapAction:  null
style:       rpc
use:         encoded
numInParams: 2
method:null
 ParameterDesc[0]:
  name:       fileName
  typeEntry:  null
  mode:       IN
  position:   0
  isReturn:   false
  typeQName:  {http://www.w3.org/2001/XMLSchema}string<http://www.w3.org/2001/XMLSchema%7Dstring>
  javaType:   class java.lang.String
  inHeader:   false
  outHeader:  false

 ParameterDesc[1]:
  name:       file
  typeEntry:  null
  mode:       IN
  position:   1
  isReturn:   false
  typeQName:  {
http://xml.apache.org/xml-soap}Multipart<http://xml.apache.org/xml-soap%7DMultipart>
  javaType:   class javax.mail.internet.MimeMultipart
  inHeader:   false
  outHeader:  false


979  [main] DEBUG org.apache.axis.client.Call  - operation.getNumParams ()=2
979  [main] DEBUG org.apache.axis.client.Call  - getParamList number of
params: 2
1000 [main] DEBUG org.apache.axis.client.Call  - Enter:
Call::invoke(RPCElement)
1033 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle   -
org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
1033 [main] DEBUG org.apache.axis.Message  - Attachment support is enabled?
true
1045 [main] DEBUG org.apache.axis.SOAPPart  - Enter: SOAPPart
ctor(FORM_SOAPENVELOPE)
1045 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
1045 [main] DEBUG org.apache.axis.SOAPPart  - Setting current message form
to: FORM_SOAPENVELOPE (currentMessage is now
org.apache.axis.message.SOAPEnvelope)
1045 [main] DEBUG org.apache.axis.SOAPPart  - Exit: SOAPPart ctor()
1045 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (addBody00)
1045 [main] DEBUG org.apache.axis.message.SOAPBody  - Adding body element to
message...
1045 [main] DEBUG org.apache.axis.client.Call  - Enter: Call::invoke()
1046 [main] DEBUG org.apache.axis.MessageContext   - MessageContext:
setTargetService(WebDiskSOAP)
1046 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(noService10)
1047 [main] DEBUG org.apache.axis.ConfigurationException   - Exception:
org.apache.axis.ConfigurationException: No service named WebDiskSOAP is
available
org.apache.axis.ConfigurationException: No service named WebDiskSOAP is
available
    at org.apache.axis.configuration.FileProvider.getService (
FileProvider.java:233)
    at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
    at org.apache.axis.MessageContext.setTargetService(MessageContext.java
:755)
    at org.apache.axis.client.Call.invoke( Call.java:2690)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload (
WebDiskSOAPBindingStub.java:230)
    at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
    at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)

    at org.apache.axis.configuration.FileProvider.getService(
FileProvider.java:233)
    at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
    at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
    at org.apache.axis.client.Call.invoke(Call.java:2690)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke (Call.java:1812)
    at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload(
WebDiskSOAPBindingStub.java:230)
    at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
    at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)
1047 [main] DEBUG org.apache.axis.MessageContext  - MessageContext:
setServiceHandler(null)
1047 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle   -
org.apache.axis.i18n.resource::handleGetObject(targetService)
1047 [main] DEBUG org.apache.axis.client.Call  - Target service:
WebDiskSOAP
1047 [main] DEBUG org.apache.axis.MessageContext  - MessageContext:
setTargetService( http://www.informatica.uniroma2.it/WebDisk/wsdl/upload)
1047 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (noService10)
1048 [main] DEBUG org.apache.axis.ConfigurationException  - Exception:
org.apache.axis.ConfigurationException: No service named
http://www.informatica.uniroma2.it/WebDisk/wsdl/upload
is available
org.apache.axis.ConfigurationException: No service named
http://www.informatica.uniroma2.it/WebDisk/wsdl/upload is available
    at org.apache.axis.configuration.FileProvider.getService(
FileProvider.java:233)
    at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
    at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
    at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl(
HTTPTransport.java:89)
    at org.apache.axis.client.Transport.setupMessageContext(Transport.java
:46)
    at org.apache.axis.client.Call.invoke (Call.java:2738)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload (
WebDiskSOAPBindingStub.java:230)
    at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
    at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)

    at org.apache.axis.configuration.FileProvider.getService(
FileProvider.java:233)
    at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
    at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
    at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl(
HTTPTransport.java:89)
    at org.apache.axis.client.Transport.setupMessageContext(Transport.java
:46)
    at org.apache.axis.client.Call.invoke (Call.java:2738)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload (
WebDiskSOAPBindingStub.java:230)
    at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
    at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)
1048 [main] DEBUG org.apache.axis.MessageContext  - MessageContext:
setServiceHandler(null)
1055 [main] DEBUG org.apache.axis.SOAPPart  - Enter:
SOAPPart::getAsSOAPEnvelope()
1055 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle   -
org.apache.axis.i18n.resource::handleGetObject(currForm)
1055 [main] DEBUG org.apache.axis.SOAPPart  - current form is
FORM_SOAPENVELOPE
1055 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (register00)
1055 [main] DEBUG org.apache.axis.encoding.SerializationContext  - register
'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/'
1055 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1056 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1056 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (register00)
1056 [main] DEBUG org.apache.axis.encoding.SerializationContext  - register
'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/'
1056 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(register00)
1056 [main] DEBUG org.apache.axis.encoding.SerializationContext  - register
'xsd' - ' http://www.w3.org/2001/XMLSchema'
1056 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1056 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(register00)
1056 [main] DEBUG org.apache.axis.encoding.SerializationContext  - register
'xsi' - 'http://www.w3.org/2001/XMLSchema-instance'
1056 [main] DEBUG org.apache.axis.utils.NSStack   - NSPush (32)
1056 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(startElem00)
1056 [main] DEBUG org.apache.axis.encoding.SerializationContext  - Start
element [ http://schemas.xmlsoap.org/soap/envelope/]:Envelope<http://schemas.xmlsoap.org/soap/envelope/%5D:Envelope>
1062 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (startElem00)
1062 [main] DEBUG org.apache.axis.encoding.SerializationContext  - Start
element [http://schemas.xmlsoap.org/soap/envelope/]:Body<http://schemas.xmlsoap.org/soap/envelope/%5D:Body>
1062 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1062 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(register00)
1062 [main] DEBUG org.apache.axis.encoding.SerializationContext   - register
'' - ''
1063 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1063 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1063 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (startElem00)
1063 [main] DEBUG org.apache.axis.encoding.SerializationContext  - Start
element []:upload
1069 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (startElem00)
1069 [main] DEBUG org.apache.axis.encoding.SerializationContext  - Start
element []:fileName
1069 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1076 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle   -
org.apache.axis.i18n.resource::handleGetObject(endElem00)
1076 [main] DEBUG org.apache.axis.encoding.SerializationContext  - End
element fileName
1076 [main] DEBUG org.apache.axis.utils.NSStack  - NSPop (32)
1090 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(startElem00)
1090 [main] DEBUG org.apache.axis.encoding.SerializationContext  - Start
element []:file
1090 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1091 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(endElem00)
1091 [main] DEBUG org.apache.axis.encoding.SerializationContext   - End
element file
1091 [main] DEBUG org.apache.axis.utils.NSStack  - NSPop (32)
1091 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(endElem00)
1091 [main] DEBUG org.apache.axis.encoding.SerializationContext  - End
element upload
1091 [main] DEBUG org.apache.axis.utils.NSStack  - NSPop (32)
1091 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (endElem00)
1091 [main] DEBUG org.apache.axis.encoding.SerializationContext  - End
element soapenv:Body
1091 [main] DEBUG org.apache.axis.utils.NSStack  - NSPop (32)
1091 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle   -
org.apache.axis.i18n.resource::handleGetObject(endElem00)
1091 [main] DEBUG org.apache.axis.encoding.SerializationContext  - End
element soapenv:Envelope
1091 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle   -
org.apache.axis.i18n.resource::handleGetObject(empty00)
1091 [main] DEBUG org.apache.axis.utils.NSStack  - NSPop (empty)
1091 [main] DEBUG org.apache.axis.client.Call  - <?xml version="1.0"
encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"<http://www.w3.org/2001/XMLSchema-instance%22>><soapenv:Body><upload
xmlns=""><fileName>fileEst.jpg</fileName><file
href="cid:E773E1C9F468724E1683F8F6B8FE05A9"/></upload></soapenv:Body></soapenv:Envelope>

1092 [main] DEBUG org.apache.axis.client.AxisClient  - Enter:
AxisClient::invoke
1092 [main] DEBUG org.apache.axis.client.AxisClient  - EngineHandler: null
1101 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle   -
org.apache.axis.i18n.resource::handleGetObject(axisUserAgent)
1110 [main] DEBUG org.apache.axis.SimpleChain  - Enter: SimpleChain::invoke
1111 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject (enter00)
1111 [main] DEBUG org.apache.axis.transport.http.HTTPSender  - Enter:
HTTPSender::invoke
1112 [main] DEBUG org.apache.axis.SOAPPart  - Enter: SOAPPart::saveChanges

..................
.................
..............


the wsdl file

<?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: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="fileName" type="xsd:string"/>
        <wsdl:part name="file" type="xsd:base64Binary"/>
    </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"/<http://schemas.xmlsoap.org/soap/http%22/>
>
        <wsdl:operation name="list">
            <soap:operation
soapAction="http://www.informatica.uniroma2.it/WebDisk/wsdl/list"/<http://www.informatica.uniroma2.it/WebDisk/wsdl/list%22/>
>
            <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"/<http://www.informatica.uniroma2.it/WebDisk/wsdl/upload%22/>
>
            <wsdl:input>
                <mime:multipartRelated>
                    <mime:part>
                        <soap:body use="literal" parts="fileName"/>
                    </mime:part>
                    <mime:part>
                        <mime:content part="file" type="multipart/mixed"/>
                    </mime:part>
                </mime:multipartRelated>
            </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"/
<http://localhost:8080/axis/services/WebDiskSOAP%22/>>
        </wsdl:port>

    </wsdl:service>

</wsdl:definitions>


ReplyForward






MAILER-DAEMON@apache.org to me
 More options  Jan 15
Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<ax...@ws.apache.org>:
Sorry, only subscribers may post. If you are a subscriber, check to be sure
you are sending from your subscribed address. (#5.7.2)

--- Below this line is a copy of the message.

Return-Path: <s....@gmail.com>
Received: (qmail 9762 invoked by uid 99); 15 Jan 2006 18:13:25 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
   by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2006 10:13:24 -0800
X-ASF-Spam-Status: No, hits=0.0 required=10.0
       tests=HTML_MESSAGE,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: domain of s.bonazzoli@gmail.comdesignates
64.233.184.194 as permitted sender)
Received: from [64.233.184.194] (HELO wproxy.gmail.com) (64.233.184.194)
   by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2006 10:13:20 -0800
Received: by wproxy.gmail.com with SMTP id i31so963485wra
       for <ax...@ws.apache.org>; Sun, 15 Jan 2006 10:13:00 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
       s=beta; d=gmail.com;
       h=received:message-id:date:from:to:subject:mime-version:content-type;

 b=MneqzqSCXNTwK7mPLRFv+OGi0YDJn9G47qz/PH1cN4c/AWBZ2+rSn+6KPxiZSMmeo0g+pYm57vOt9es9aN5HfMTLCrntIFzMsN7Waem9sgZfJoAH+3FLdYEnY2P38Ol86a6uXK0N6LqcDDNhJ3ZAWG+2Y21Tcv/qPRYCMa+hOL8=
Received: by 10.65.251.9 with SMTP id d9mr2537890qbs;
       Sun, 15 Jan 2006 10:12:59 -0800 (PST)
Received: by 10.65.177.3 with HTTP; Sun, 15 Jan 2006 10:12:59 -0800 (PST)
Message-ID: <4a...@mail.gmail.com>
Date: Sun, 15 Jan 2006 19:12:59 +0100
From: Simone Bonazzoli <s....@gmail.com>
To: axis-user@ws.apache.org
Subject: SWA problem
MIME-Version: 1.0
Content-Type: multipart/alternative;
       boundary="----=_Part_8470_7036360.1137348779925"
X-Virus-Checked: Checked by ClamAV on apache.org

------=_Part_8470_7036360.1137348779925
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
- Show quoted text -

Hi, i'm developing a simple webservice that support the upload and download
of binary files... i look at the example "swa" present in the samples
directory of the axis distribution....
i customize my wsdl and all otherthings but when i try to run my client the
axis.log report this exception:

java.lang.NoSuchMethodException:
org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(
java.lang.Class, javax.xml.namespace.QName)

below i put my wsdd file and my wsdl file... the question is: is this an
axis bug or a my error... please help me :)

0    [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - getBundle(
org.apache.axis,org.apache.axis.i18n,resource,null,...)
32   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - loadBundle:
Ignoring MissingResourceException: Can't find bundle for base name
org.apache.axis.resource, locale en_US
32   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - Created
org.apache.axis.i18n.resource, linked to parent null
33   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - getBundle(
org.apache.axis,org.apache.axis.utils,resource,null,...)
35   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - loadBundle:
Ignoring MissingResourceException: Can't find bundle for base name
org.apache.axis.utils.resource, locale en_US
35   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - loadBundle:
Ignoring MissingResourceException: Can't find bundle for base name
org.apache.axis.resource, locale en_US
35   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - Root packag=
e
not found, cross link to org.apache.axis.i18n.resource
35   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  - Root packag=
e
- Show quoted text -
not found, cross link to org.apache.axis.i18n.resource
36   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(engineConfigLoadFactory)
37   [main] DEBUG
org.apache.axis.configuration.EngineConfigurationFactoryFinder  - Factory
org.apache.axis.configuration.EngineConfigurationFactoryServlet Ignored:
unable to load/resolve class.
39   [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(engineFactory)
39   [main] DEBUG
org.apache.axis.configuration.EngineConfigurationFactoryFinder  - Got
EngineFactory:
org.apache.axis.configuration.EngineConfigurationFactoryDefault
45   [main] DEBUG org.apache.axis.AxisEngine  - Enter: AxisEngine::init
459  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
459  [main] DEBUG org.apache.axis.utils.JavaUtils  - Attachment support is
enabled?  true
502  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(class java.lang.String, {
http://xml.apache.org/xml-soap}PlainText<http://xml.apache.org/xml-soap%7DPlainText>
)
505  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(oddDigits00)
505  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(badChars01)
637  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(class java.awt.Image, {
http://xml.apache.org/xml-soap}Image<http://xml.apache.org/xml-soap%7DImage>
)
682  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(class
javax.mail.internet.MimeMultipart, {
http://xml.apache.org/xml-soap}Multipart<http://xml.apache.org/xml-soap%7DMultipart>
)
684  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(interface
javax.xml.transform.Source,
{http://xml.apache.org/xml-soap}Source<http://xml.apache.org/xml-soap%7DSource>
)
687  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(class
org.apache.axis.attachments.OctetStream, {
http://xml.apache.org/xml-soap}octet-stream<http://xml.apache.org/xml-soap%7Doctet-stream>
)
688  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory()
757  [main] DEBUG org.apache.axis.AxisEngine  - Exit: AxisEngine::init
775  [main] DEBUG org.apache.axis.description.OperationDesc  - @13785d3
added parameter >name:       {
http://www.informatica.uniroma2.it/WebDisk}listRequest<http://www.informatica.uniroma2.it/WebDisk%7DlistRequest>
typeEntry:  null
mode:       IN
position:   0
isReturn:   false
typeQName:  {http://www.informatica.uniroma2.it/WebDisk}<http://www.informatica.uniroma2.it/WebDisk%7D>
>listRequest
javaType:   class it.uniroma2.informatica.types.ListRequest
inHeader:   false
outHeader:  false
@32efa7<total parameters:1
775  [main] DEBUG org.apache.axis.description.OperationDesc  -
@13785d3setReturnType({
http://www.informatica.uniroma2.it/WebDisk}listResponse<http://www.informatica.uniroma2.it/WebDisk%7DlistResponse>
)
787  [main] DEBUG org.apache.axis.description.OperationDesc  - @1242b11
added parameter >name:       fileName
typeEntry:  null
mode:       IN
position:   0
isReturn:   false
typeQName:  {http://www.w3.org/2001/XMLSchema}string<http://www.w3.org/2001/XMLSchema%7Dstring>
javaType:   class java.lang.String
inHeader:   false
outHeader:  false
@1878144<total parameters:1
787  [main] DEBUG org.apache.axis.description.OperationDesc  - @1242b11
added parameter >name:       file
typeEntry:  null
mode:       IN
position:   1
isReturn:   false
typeQName:  {http://xml.apache.org/xml-soap}Multipart<http://xml.apache.org/xml-soap%7DMultipart>
javaType:   class javax.mail.internet.MimeMultipart
inHeader:   false
outHeader:  false
@137d090<total parameters:2
787  [main] DEBUG org.apache.axis.description.OperationDesc  -
@1242b11setReturnType({http://www.w3.org/2001/XMLSchema}string<http://www.w3.org/2001/XMLSchema%7Dstring>
)
944  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(transport00)
944  [main] DEBUG org.apache.axis.client.Call  - Transport is
org.apache.axis.transport.http.HTTPTransport@90c06f
946  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(exception00)
948  [main] DEBUG org.apache.axis.encoding.ser.BaseSerializerFactory  -
Exception:
java.lang.NoSuchMethodException:
org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(
java.lang.Class, javax.xml.namespace.QName)
   at java.lang.Class.getMethod(Class.java:1581)
   at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(
BaseSerializerFactory.java:254)
   at org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
   at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.createCal=
l
(WebDiskSOAPBindingStub.java:161)
   at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload(
WebDiskSOAPBindingStub.java:218)
   at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
   at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)
952  [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(exception00)
952  [main] DEBUG org.apache.axis.encoding.ser.BaseDeserializerFactory  -
Exception:
java.lang.NoSuchMethodException:
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.create(
java.lang.Class, javax.xml.namespace.QName)
   at java.lang.Class.getMethod(Class.java:1581)
   at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(
BaseDeserializerFactory.java:225)
   at org.apache.axis.client.Call.registerTypeMapping(Call.java:2317)
   at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.createCal=
l
(WebDiskSOAPBindingStub.java:161)
   at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload(
WebDiskSOAPBindingStub.java:218)
   at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
   at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)
953  [main] DEBUG
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory  -
Enter/Exit: JAFDataHandlerDeserializerFactory(class
javax.activation.DataHandler, {
http://www.informatica.uniroma2.it/WebDisk/}DataHandler<http://www.informatica.uniroma2.it/WebDisk/%7DDataHandler>
)
962  [main] DEBUG org.apache.axis.client.Call  - Enter: Call::invoke(ns,
meth, args)
979  [main] DEBUG org.apache.axis.client.Call  - operation=3Dname:
- Show quoted text -
upload
returnQName: return
returnType:  {http://www.w3.org/2001/XMLSchema}string<http://www.w3.org/2001/XMLSchema%7Dstring>
returnClass: class java.lang.String
elementQName:null
soapAction:  null
style:       rpc
use:         encoded
numInParams: 2
method:null
 ParameterDesc[0]:
 name:       fileName
 typeEntry:  null
 mode:       IN
 position:   0
 isReturn:   false
 typeQName:  {http://www.w3.org/2001/XMLSchema}string<http://www.w3.org/2001/XMLSchema%7Dstring>
 javaType:   class java.lang.String
 inHeader:   false
 outHeader:  false

 ParameterDesc[1]:
 name:       file
 typeEntry:  null
 mode:       IN
 position:   1
 isReturn:   false
 typeQName:  {http://xml.apache.org/xml-soap}Multipart<http://xml.apache.org/xml-soap%7DMultipart>
 javaType:   class javax.mail.internet.MimeMultipart
 inHeader:   false
 outHeader:  false


979  [main] DEBUG org.apache.axis.client.Call  - operation.getNumParams()=
=3D2
979  [main] DEBUG org.apache.axis.client.Call  - getParamList number of
params: 2
1000 [main] DEBUG org.apache.axis.client.Call  - Enter:
Call::invoke(RPCElement)
1033 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
1033 [main] DEBUG org.apache.axis.Message  - Attachment support is enabled?
true
1045 [main] DEBUG org.apache.axis.SOAPPart  - Enter: SOAPPart
ctor(FORM_SOAPENVELOPE)
1045 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
1045 [main] DEBUG org.apache.axis.SOAPPart  - Setting current message form
to: FORM_SOAPENVELOPE (currentMessage is now
org.apache.axis.message.SOAPEnvelope)
1045 [main] DEBUG org.apache.axis.SOAPPart  - Exit: SOAPPart ctor()
1045 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(addBody00)
1045 [main] DEBUG org.apache.axis.message.SOAPBody  - Adding body element t=
o
- Show quoted text -
message...
1045 [main] DEBUG org.apache.axis.client.Call  - Enter: Call::invoke()
1046 [main] DEBUG org.apache.axis.MessageContext  - MessageContext:
setTargetService(WebDiskSOAP)
1046 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(noService10)
1047 [main] DEBUG org.apache.axis.ConfigurationException  - Exception:
org.apache.axis.ConfigurationException: No service named WebDiskSOAP is
available
org.apache.axis.ConfigurationException: No service named WebDiskSOAP is
available
   at org.apache.axis.configuration.FileProvider.getService(
FileProvider.java:233)
   at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
   at org.apache.axis.MessageContext.setTargetService(MessageContext.java
:755)
   at org.apache.axis.client.Call.invoke(Call.java:2690)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload(
WebDiskSOAPBindingStub.java:230)
   at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
   at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)

   at org.apache.axis.configuration.FileProvider.getService(
FileProvider.java:233)
   at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
   at org.apache.axis.MessageContext.setTargetService(MessageContext.java
:755)
   at org.apache.axis.client.Call.invoke(Call.java:2690)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload(
WebDiskSOAPBindingStub.java:230)
   at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
   at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)
1047 [main] DEBUG org.apache.axis.MessageContext  - MessageContext:
setServiceHandler(null)
1047 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(targetService)
1047 [main] DEBUG org.apache.axis.client.Call  - Target service:
WebDiskSOAP
1047 [main] DEBUG org.apache.axis.MessageContext  - MessageContext:
setTargetService(http://www.informatica.uniroma2.it/WebDisk/wsdl/upload)
1047 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(noService10)
1048 [main] DEBUG org.apache.axis.ConfigurationException  - Exception:
org.apache.axis.ConfigurationException: No service named
http://www.informatica.uniroma2.it/WebDisk/wsdl/upload is available
org.apache.axis.ConfigurationException: No service named
http://www.informatica.uniroma2.it/WebDisk/wsdl/upload is available
   at org.apache.axis.configuration.FileProvider.getService(
FileProvider.java:233)
   at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
   at org.apache.axis.MessageContext.setTargetService(MessageContext.java
:755)
   at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl=
(
HTTPTransport.java:89)
   at org.apache.axis.client.Transport.setupMessageContext(Transport.java
:46)
   at org.apache.axis.client.Call.invoke(Call.java:2738)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload(
WebDiskSOAPBindingStub.java:230)
   at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
   at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)

   at org.apache.axis.configuration.FileProvider.getService(
FileProvider.java:233)
   at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
   at org.apache.axis.MessageContext.setTargetService(MessageContext.java
:755)
   at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl=
(
HTTPTransport.java:89)
   at org.apache.axis.client.Transport.setupMessageContext(Transport.java
:46)
   at org.apache.axis.client.Call.invoke(Call.java:2738)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.upload(
WebDiskSOAPBindingStub.java:230)
   at it.uniroma2.informatica.webservices.WebDiskClient.testUpload(
WebDiskClient.java:80)
   at it.uniroma2.informatica.webservices.WebDiskClient.main(
WebDiskClient.java:36)
1048 [main] DEBUG org.apache.axis.MessageContext  - MessageContext:
setServiceHandler(null)
1055 [main] DEBUG org.apache.axis.SOAPPart  - Enter:
SOAPPart::getAsSOAPEnvelope()
1055 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(currForm)
1055 [main] DEBUG org.apache.axis.SOAPPart  - current form is
FORM_SOAPENVELOPE
1055 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(register00)
1055 [main] DEBUG org.apache.axis.encoding.SerializationContext  - register
'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/'
1055 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1056 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1056 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(register00)
1056 [main] DEBUG org.apache.axis.encoding.SerializationContext  - register
'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/'
1056 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(register00)
1056 [main] DEBUG org.apache.axis.encoding.SerializationContext  - register
'xsd' - 'http://www.w3.org/2001/XMLSchema'
1056 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1056 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(register00)
1056 [main] DEBUG org.apache.axis.encoding.SerializationContext  - register
'xsi' - 'http://www.w3.org/2001/XMLSchema-instance'
1056 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1056 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(startElem00)
1056 [main] DEBUG org.apache.axis.encoding.SerializationContext  - Start
element [http://schemas.xmlsoap.org/soap/envelope/]:Envelope<http://schemas.xmlsoap.org/soap/envelope/%5D:Envelope>
1062 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(startElem00)
1062 [main] DEBUG org.apache.axis.encoding.SerializationContext  - Start
element [http://schemas.xmlsoap.org/soap/envelope/]:Body<http://schemas.xmlsoap.org/soap/envelope/%5D:Body>
1062 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1062 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(register00)
1062 [main] DEBUG org.apache.axis.encoding.SerializationContext  - register
'' - ''
1063 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1063 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1063 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(startElem00)
1063 [main] DEBUG org.apache.axis.encoding.SerializationContext  - Start
element []:upload
1069 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(startElem00)
1069 [main] DEBUG org.apache.axis.encoding.SerializationContext  - Start
element []:fileName
1069 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1076 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(endElem00)
1076 [main] DEBUG org.apache.axis.encoding.SerializationContext  - End
element fileName
1076 [main] DEBUG org.apache.axis.utils.NSStack  - NSPop (32)
1090 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(startElem00)
1090 [main] DEBUG org.apache.axis.encoding.SerializationContext  - Start
element []:file
1090 [main] DEBUG org.apache.axis.utils.NSStack  - NSPush (32)
1091 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(endElem00)
1091 [main] DEBUG org.apache.axis.encoding.SerializationContext  - End
element file
1091 [main] DEBUG org.apache.axis.utils.NSStack  - NSPop (32)
1091 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(endElem00)
1091 [main] DEBUG org.apache.axis.encoding.SerializationContext  - End
element upload
1091 [main] DEBUG org.apache.axis.utils.NSStack  - NSPop (32)
1091 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(endElem00)
1091 [main] DEBUG org.apache.axis.encoding.SerializationContext  - End
element soapenv:Body
1091 [main] DEBUG org.apache.axis.utils.NSStack  - NSPop (32)
1091 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(endElem00)
1091 [main] DEBUG org.apache.axis.encoding.SerializationContext  - End
element soapenv:Envelope
1091 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(empty00)
1091 [main] DEBUG org.apache.axis.utils.NSStack  - NSPop (empty)
1091 [main] DEBUG org.apache.axis.client.Call  - <?xml version=3D"1.0"
encoding=3D"UTF-8"?><soapenv:Envelope xmlns:soapenv=3D"
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=3D"
http://www.w3.org/2001/XMLSchema" xmlns:xsi=3D"
http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><upload
xmlns=3D""><fileName>fileEst.jpg</fileName><file
href=3D"cid:E773E1C9F468724E1683F8F6B8FE05A9"/></upload></soapenv:Body></so=
apenv:Envelope>
1092 [main] DEBUG org.apache.axis.client.AxisClient  - Enter:
AxisClient::invoke
1092 [main] DEBUG org.apache.axis.client.AxisClient  - EngineHandler: null
1101 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(axisUserAgent)
1110 [main] DEBUG org.apache.axis.SimpleChain  - Enter: SimpleChain::invoke
1111 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle  -
org.apache.axis.i18n.resource::handleGetObject(enter00)
1111 [main] DEBUG org.apache.axis.transport.http.HTTPSender  - Enter:
HTTPSender::invoke
1112 [main] DEBUG org.apache.axis.SOAPPart  - Enter: SOAPPart::saveChanges

..................
.................
..............


the wsdl file

<?xml version=3D"1.0" encoding=3D"UTF-8"?>

<wsdl:definitions
 targetNamespace=3D"http://www.informatica.uniroma2.it/WebDisk/wsdl"
 xmlns=3D"http://schemas.xmlsoap.org/wsdl/"
 xmlns:tns=3D"http://www.informatica.uniroma2.it/WebDisk/wsdl"
 xmlns:soap=3D"http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/"
 xmlns:types=3D"http://www.informatica.uniroma2.it/WebDisk"
 xmlns:mime=3D"http://schemas.xmlsoap.org/wsdl/mime/"
 xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" name=3D"WebDisk">

   <wsdl:types>
       <xsd:schema elementFormDefault=3D"qualified"
           targetNamespace=3D"
http://www.informatica.uniroma2.it/WebDisk/wsdl/types">
             <xsd:import namespace=3D"
http://www.informatica.uniroma2.it/WebDisk"
schemaLocation=3D"/home/simo/develop/java/WebDisk/src/it/uniroma2/informati=
ca/WebDisk.xsd"/>
       </xsd:schema>
   </wsdl:types>

   <wsdl:message name=3D"listRequest">
        <wsdl:part name=3D"parameters" element=3D"types:listRequest" />
   </wsdl:message>
   <wsdl:message name=3D"listResponse">
       <wsdl:part name=3D"parameters" element=3D"types:listResponse"/>
   </wsdl:message>

   <wsdl:message name=3D"uploadRequest">
       <wsdl:part name=3D"fileName" type=3D"xsd:string"/>
       <wsdl:part name=3D"file" type=3D"xsd:base64Binary"/>
   </wsdl:message>

   <wsdl:message name=3D"uploadResponse">
       <wsdl:part name=3D"return" type=3D"xsd:string"/>
   </wsdl:message>


   <wsdl:portType name=3D"WebDiskPortType">
       <wsdl:operation name=3D"list">
           <wsdl:input message=3D"tns:listRequest" />
           <wsdl:output message=3D"tns:listResponse" />
       </wsdl:operation>

       <wsdl:operation name=3D"upload">
           <wsdl:input message=3D"tns:uploadRequest"/>
           <wsdl:output message=3D"tns:uploadResponse"/>
       </wsdl:operation>
   </wsdl:portType>

   <wsdl:binding name=3D"WebDiskSOAPBinding" type=3D"tns:WebDiskPortType">
       <soap:binding style=3D"document" transport=3D"
http://schemas.xmlsoap.org/soap/http"/>
       <wsdl:operation name=3D"list">
           <soap:operation soapAction=3D"
http://www.informatica.uniroma2.it/WebDisk/wsdl/list"/>
           <wsdl:input>
               <soap:body use=3D"literal"/>
           </wsdl:input>
           <wsdl:output>
               <soap:body use=3D"literal"/>
           </wsdl:output>
       </wsdl:operation>

       <wsdl:operation name=3D"upload">
           <soap:operation soapAction=3D"
http://www.informatica.uniroma2.it/WebDisk/wsdl/upload"/>
           <wsdl:input>
               <mime:multipartRelated>
                   <mime:part>
                       <soap:body use=3D"literal" parts=3D"fileName"/>
                   </mime:part>
                   <mime:part>
                       <mime:content part=3D"file" type=3D"multipart/mixed=
"/>
                   </mime:part>
               </mime:multipartRelated>
           </wsdl:input>
           <wsdl:output>
               <soap:body use=3D"literal"/>
           </wsdl:output>
       </wsdl:operation>
   </wsdl:binding>

   <wsdl:service name=3D"WebDiskService">

       <wsdl:port binding=3D"tns:WebDiskSOAPBinding" name=3D"WebDiskSOAP">
           <soap:address location=3D"
http://localhost:8080/axis/services/WebDiskSOAP"/>
       </wsdl:port>

   </wsdl:service>

</wsdl:definitions>

------=_Part_8470_7036360.1137348779925
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi, i'm developing a simple webservice that support the upload and download=
 of binary files... i look at the example &quot;swa&quot; present in the sa=
mples directory of the axis distribution....<br>i customize my wsdl and all=
 otherthings but when i try to run my client the=20
axis.log report this exception:<br><br>java.lang.NoSuchMethodException: org=
.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(java.lang.=
Class, javax.xml.namespace.QName)<br><br>below i put my wsdd file and my ws=
dl file... the question is: is this an axis bug or a my error... please hel=
p me :)
<br><br>0&nbsp;&nbsp;&nbsp; [main] DEBUG org.apache.axis.i18n.ProjectResour=
ceBundle&nbsp; - getBundle(org.apache.axis,org.apache.axis.i18n,resource,nu=
ll,...)<br>32&nbsp;&nbsp; [main] DEBUG org.apache.axis.i18n.ProjectResource=
Bundle&nbsp; - loadBundle: Ignoring MissingResourceException: Can't find bu=
ndle for base name=20
org.apache.axis.resource, locale en_US<br>32&nbsp;&nbsp; [main] DEBUG org.a=
pache.axis.i18n.ProjectResourceBundle&nbsp; - Created org.apache.axis.i18n.=
resource, linked to parent null<br>33&nbsp;&nbsp; [main] DEBUG org.apache.a=
xis.i18n.ProjectResourceBundle
&nbsp; - getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...)=
<br>35&nbsp;&nbsp; [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&=
nbsp; - loadBundle: Ignoring MissingResourceException: Can't find bundle fo=
r base name org.apache.axis.utils.resource
, locale en_US<br>35&nbsp;&nbsp; [main] DEBUG org.apache.axis.i18n.ProjectR=
esourceBundle&nbsp; - loadBundle: Ignoring MissingResourceException: Can't =
find bundle for base name org.apache.axis.resource, locale en_US<br>35&nbsp=
;&nbsp; [main] DEBUG=20
org.apache.axis.i18n.ProjectResourceBundle&nbsp; - Root package not found, =
cross link to org.apache.axis.i18n.resource<br>35&nbsp;&nbsp; [main] DEBUG =
org.apache.axis.i18n.ProjectResourceBundle&nbsp; - Root package not found, =
cross link to org.apache.axis.i18n.resource
<br>36&nbsp;&nbsp; [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&=
nbsp; - org.apache.axis.i18n.resource::handleGetObject(engineConfigLoadFact=
ory)<br>37&nbsp;&nbsp; [main] DEBUG org.apache.axis.configuration.EngineCon=
figurationFactoryFinder
&nbsp; - Factory org.apache.axis.configuration.EngineConfigurationFactorySe=
rvlet Ignored: unable to load/resolve class.<br>39&nbsp;&nbsp; [main] DEBUG=
 org.apache.axis.i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.re=
source::handleGetObject
(engineFactory)<br>39&nbsp;&nbsp; [main] DEBUG org.apache.axis.configuratio=
n.EngineConfigurationFactoryFinder&nbsp; - Got EngineFactory: org.apache.ax=
is.configuration.EngineConfigurationFactoryDefault<br>45&nbsp;&nbsp; [main]=
 DEBUG org.apache.axis.AxisEngine
&nbsp; - Enter: AxisEngine::init<br>459&nbsp; [main] DEBUG org.apache.axis.=
i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.resource::handleGet=
Object(attachEnabled)<br>459&nbsp; [main] DEBUG org.apache.axis.utils.JavaU=
tils&nbsp; - Attachment support is enabled?&nbsp; true
<br>502&nbsp; [main] DEBUG org.apache.axis.encoding.ser.JAFDataHandlerDeser=
ializerFactory&nbsp; - Enter/Exit: JAFDataHandlerDeserializerFactory(class =
java.lang.String, {<a
href=3D"http://xml.apache.org/xml-soap}PlainText)<http://xml.apache.org/xml-soap%7DPlainText%29>
">ht=
tp://xml.apache.org/xml-soap}PlainText)
</a><br>505&nbsp; [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&n=
bsp; - org.apache.axis.i18n.resource::handleGetObject(oddDigits00)<br>505&n=
bsp; [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&nbsp; - org.ap=
ache.axis.i18n.resource::handleGetObject
(badChars01)<br>637&nbsp; [main] DEBUG org.apache.axis.encoding.ser.JAFData=
HandlerDeserializerFactory&nbsp; - Enter/Exit: JAFDataHandlerDeserializerFa=
ctory(class java.awt.Image, {<a
href=3D"http://xml.apache.org/xml-soap}Imag=<http://xml.apache.org/xml-soap%7DImag=>
e)">http://xml.apache.org/xml-soap}Image<http://xml.apache.org/xml-soap%7DImage>
)
</a><br>682&nbsp; [main] DEBUG org.apache.axis.encoding.ser.JAFDataHandlerD=
eserializerFactory&nbsp; - Enter/Exit: JAFDataHandlerDeserializerFactory(cl=
ass javax.mail.internet.MimeMultipart, {<a href=3D"http://xml.apache.org/xm=
l-soap}Multipart) <http://xml.apache.org/xm=l-soap%7DMultipart%29>">
http://xml.apache.org/xml-soap}Multipart)<http://xml.apache.org/xml-soap%7DMultipart%29></a><br>684&nbsp;
[main] DEBUG org=
.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory&nbsp; - Enter/E=
xit: JAFDataHandlerDeserializerFactory(interface javax.xml.transform.Source=
, {<a href=3D"http://xml.apache.org/xml-soap}Source)<http://xml.apache.org/xml-soap%7DSource%29>
">
http://xml.apache.org/xml-soap}Source)<http://xml.apache.org/xml-soap%7DSource%29></a><br>687&nbsp;
[main] DEBUG org.ap=
ache.axis.encoding.ser.JAFDataHandlerDeserializerFactory&nbsp; - Enter/Exit=
: JAFDataHandlerDeserializerFactory(class org.apache.axis.attachments.Octet=
Stream
, {<a href=3D"http://xml.apache.org/xml-soap}octet-stream)<http://xml.apache.org/xml-soap%7Doctet-stream%29>
">http://xml.apac=
he.org/xml-soap}octet-stream)
<http://he.org/xml-soap%7Doctet-stream%29></a><br>688&nbsp;
[main] DEBUG org.apache.axis=
.encoding.ser.JAFDataHandlerDeserializerFactory&nbsp; - Enter/Exit: JAFData=
HandlerDeserializerFactory()
<br>757&nbsp; [main] DEBUG org.apache.axis.AxisEngine&nbsp; - Exit: AxisEng=
ine::init<br>775&nbsp; [main] DEBUG org.apache.axis.description.OperationDe=
sc&nbsp; - @13785d3 added parameter &gt;name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; {<a href=3D"http://www.informatica.uniroma2.it/WebDisk}listRequest<http://www.informatica.uniroma2.it/WebDisk%7DlistRequest>
">
http://www.informatica.uniroma2.it/WebDisk}listRequest<http://www.informatica.uniroma2.it/WebDisk%7DlistRequest>
</a><br>typeEntry:&nb=
sp; null<br>mode:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN<br>position:&nbsp;=
&nbsp; 0<br>isReturn:&nbsp;&nbsp; false<br>typeQName:&nbsp; {<a href=3D"htt=
p://www.informatica.uniroma2.it/WebDisk}">http://www.informatica.uniroma2.i=
t/WebDisk}
</a>&gt;listRequest<br>javaType:&nbsp;&nbsp; class it.uniroma2.informatica.=
types.ListRequest<br>inHeader:&nbsp;&nbsp; false<br>outHeader:&nbsp; false<=
br>@32efa7&lt;total parameters:1<br>775&nbsp; [main] DEBUG org.apache.axis.=
description.OperationDesc&nbsp; - @13785d3setReturnType({
<a href=3D"http://www.informatica.uniroma2.it/WebDisk}listResponse)<http://www.informatica.uniroma2.it/WebDisk%7DlistResponse%29>
">http:/=
/www.informatica.uniroma2.it/WebDisk}listResponse)</a><br>787&nbsp; [main] =
DEBUG org.apache.axis.description.OperationDesc&nbsp; - @1242b11 added para=
meter &gt;name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fileName
<br>typeEntry:&nbsp; null<br>mode:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN<b=
r>position:&nbsp;&nbsp; 0<br>isReturn:&nbsp;&nbsp; false<br>typeQName:&nbsp=
; {<a href=3D"http://www.w3.org/2001/XMLSchema}string<http://www.w3.org/2001/XMLSchema%7Dstring>
">http://www.w3.org/20=
01/XMLSchema}string
<http://www.w3.org/20=01/XMLSchema%7Dstring></a><br>javaType:&nbsp;&nbsp;
class java.lang.String
<br>inHeader:&nbsp;&nbsp; false<br>outHeader:&nbsp; false<br>@1878144&lt;to=
tal parameters:1<br>787&nbsp; [main] DEBUG org.apache.axis.description.Oper=
ationDesc&nbsp; - @1242b11 added parameter &gt;name:&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; file<br>typeEntry:&nbsp; null<br>mode:&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; IN
<br>position:&nbsp;&nbsp; 1<br>isReturn:&nbsp;&nbsp; false<br>typeQName:&nb=
sp; {<a href=3D"http://xml.apache.org/xml-soap}Multipart<http://xml.apache.org/xml-soap%7DMultipart>
">http://xml.apache=
.org/xml-soap}Multipart</a><br>javaType:&nbsp;&nbsp; class javax.mail.inter=
net.MimeMultipart<br>inHeader:&nbsp;&nbsp; false
<br>outHeader:&nbsp; false<br>@137d090&lt;total parameters:2<br>787&nbsp; [=
main] DEBUG org.apache.axis.description.OperationDesc&nbsp; - @1242b11setRe=
turnType({<a href=3D"http://www.w3.org/2001/XMLSchema}string)<http://www.w3.org/2001/XMLSchema%7Dstring%29>
">http://www.w=
3.org/2001/XMLSchema}string <http://3.org/2001/XMLSchema%7Dstring>)
</a><br>944&nbsp; [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&n=
bsp; - org.apache.axis.i18n.resource::handleGetObject(transport00)<br>944&n=
bsp; [main] DEBUG org.apache.axis.client.Call&nbsp; - Transport is org.apac=
he.axis.transport.http.HTTPTransport@90c06f
<br>946&nbsp; [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&nbsp;=
 - org.apache.axis.i18n.resource::handleGetObject(exception00)<br>948&nbsp;=
 [main] DEBUG org.apache.axis.encoding.ser.BaseSerializerFactory&nbsp; - Ex=
ception:<br>java.lang.NoSuchMethodException
: org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(java.=
lang.Class, javax.xml.namespace.QName)<br>&nbsp;&nbsp;&nbsp; at java.lang.C=
lass.getMethod(Class.java:1581)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.en=
coding.ser.BaseSerializerFactory.createFactory
(BaseSerializerFactory.java:254)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.c=
lient.Call.registerTypeMapping(Call.java:2315)<br>&nbsp;&nbsp;&nbsp; at it.=
uniroma2.informatica.webservices.WebDiskSOAPBindingStub.createCall(WebDiskS=
OAPBindingStub.java:161)<br>
&nbsp;&nbsp;&nbsp; at it.uniroma2.informatica.webservices.WebDiskSOAPBindin=
gStub.upload(WebDiskSOAPBindingStub.java:218)<br>&nbsp;&nbsp;&nbsp; at it.u=
niroma2.informatica.webservices.WebDiskClient.testUpload(WebDiskClient.java=
:80)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.informatica.webservices.WebDiskCl=
ient.main
(WebDiskClient.java:36)<br>952&nbsp; [main] DEBUG org.apache.axis.i18n.Proj=
ectResourceBundle&nbsp; - org.apache.axis.i18n.resource::handleGetObject(ex=
ception00)<br>952&nbsp; [main] DEBUG org.apache.axis.encoding.ser.BaseDeser=
ializerFactory
&nbsp; - Exception:<br>java.lang.NoSuchMethodException: org.apache.axis.enc=
oding.ser.JAFDataHandlerDeserializerFactory.create(java.lang.Class, javax.x=
ml.namespace.QName)<br>&nbsp;&nbsp;&nbsp; at java.lang.Class.getMethod(Clas=
s.java:1581)<br>
&nbsp;&nbsp;&nbsp; at org.apache.axis.encoding.ser.BaseDeserializerFactory.=
createFactory(BaseDeserializerFactory.java:225)<br>&nbsp;&nbsp;&nbsp; at or=
g.apache.axis.client.Call.registerTypeMapping(Call.java:2317)<br>&nbsp;&nbs=
p;&nbsp; at it.uniroma2.informatica.webservices.WebDiskSOAPBindingStub.crea=
teCall
(WebDiskSOAPBindingStub.java:161)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.info=
rmatica.webservices.WebDiskSOAPBindingStub.upload(WebDiskSOAPBindingStub.ja=
va:218)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.informatica.webservices.WebDis=
kClient.testUpload(WebDiskClient.java
:80)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.informatica.webservices.WebDiskCl=
ient.main(WebDiskClient.java:36)<br>953&nbsp; [main] DEBUG org.apache.axis.=
encoding.ser.JAFDataHandlerDeserializerFactory&nbsp; - Enter/Exit: JAFDataH=
andlerDeserializerFactory(class=20
javax.activation.DataHandler, {<a href=3D"http://www.informatica.uniroma2.i=
t/WebDisk/}DataHandler)<http://www.informatica.uniroma2.i=t/WebDisk/%7DDataHandler%29>
">http://www.informatica.uniroma2.it/WebDisk/}DataHa=<http://www.informatica.uniroma2.it/WebDisk/%7DDataHa=>
ndler)</a><br>962&nbsp; [main] DEBUG org.apache.axis.client.Call&nbsp; - En=
ter: Call::invoke(ns, meth, args)
<br>979&nbsp; [main] DEBUG org.apache.axis.client.Call&nbsp; - operation=3D=
name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; upload<br>returnQName: retu=
rn<br>returnType:&nbsp; {<a
href=3D"http://www.w3.org/2001/XMLSchema}string=<http://www.w3.org/2001/XMLSchema%7Dstring=>
">http://www.w3.org/2001/XMLSchema}string<http://www.w3.org/2001/XMLSchema%7Dstring></a><br>returnClass:
class=20
java.lang.String<br>elementQName:null<br>soapAction:&nbsp; null<br>style:&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rpc<br>use:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp; encoded<br>numInParams: 2<br>method:null<br>&nbsp;Param=
eterDesc[0]:<br>&nbsp; name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fileName<b=
r>&nbsp; typeEntry:&nbsp; null<br>&nbsp; mode:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp; IN
<br>&nbsp; position:&nbsp;&nbsp; 0<br>&nbsp; isReturn:&nbsp;&nbsp; false<br=
>&nbsp; typeQName:&nbsp; {<a
href=3D"http://www.w3.org/2001/XMLSchema}strin=<http://www.w3.org/2001/XMLSchema%7Dstrin=>
g">http://www.w3.org/2001/XMLSchema}string<http://www.w3.org/2001/XMLSchema%7Dstring></a><br>&nbsp;
javaType:&nbsp;&nb=
sp; class java.lang.String<br>&nbsp; inHeader:&nbsp;&nbsp; false<br>
&nbsp; outHeader:&nbsp; false<br><br>&nbsp;ParameterDesc[1]:<br>&nbsp; name=
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file<br>&nbsp; typeEntry:&nbsp; null<=
br>&nbsp; mode:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN<br>&nbsp; position:&=
nbsp;&nbsp; 1<br>&nbsp; isReturn:&nbsp;&nbsp; false<br>&nbsp; typeQName:&nb=
sp; {<a href=3D"http://xml.apache.org/xml-soap}Multipart<http://xml.apache.org/xml-soap%7DMultipart>
">
http://xml.apache.org/xml-soap}Multipart<http://xml.apache.org/xml-soap%7DMultipart></a><br>&nbsp;
javaType:&nbsp;&nbsp=
; class javax.mail.internet.MimeMultipart<br>&nbsp; inHeader:&nbsp;&nbsp; f=
alse<br>&nbsp; outHeader:&nbsp; false<br><br><br>979&nbsp; [main] DEBUG org=
.apache.axis.client.Call&nbsp; - operation.getNumParams
()=3D2<br>979&nbsp; [main] DEBUG org.apache.axis.client.Call&nbsp; - getPar=
amList number of params: 2<br>1000 [main] DEBUG org.apache.axis.client.Call=
&nbsp; - Enter: Call::invoke(RPCElement)<br>1033 [main] DEBUG org.apache.ax=
is.i18n.ProjectResourceBundle
&nbsp; - org.apache.axis.i18n.resource::handleGetObject(attachEnabled)<br>1=
033 [main] DEBUG org.apache.axis.Message&nbsp; - Attachment support is enab=
led?&nbsp; true<br>1045 [main] DEBUG org.apache.axis.SOAPPart&nbsp; - Enter=
: SOAPPart ctor(FORM_SOAPENVELOPE)
<br>1045 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&nbsp; - or=
g.apache.axis.i18n.resource::handleGetObject(setMsgForm)<br>1045 [main] DEB=
UG org.apache.axis.SOAPPart&nbsp; - Setting current message form to: FORM_S=
OAPENVELOPE (currentMessage is now=20
org.apache.axis.message.SOAPEnvelope)<br>1045 [main] DEBUG org.apache.axis.=
SOAPPart&nbsp; - Exit: SOAPPart ctor()<br>1045 [main] DEBUG org.apache.axis=
.i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.resource::handleGe=
tObject
(addBody00)<br>1045 [main] DEBUG org.apache.axis.message.SOAPBody&nbsp; - A=
dding body element to message...<br>1045 [main] DEBUG org.apache.axis.clien=
t.Call&nbsp; - Enter: Call::invoke()<br>1046 [main] DEBUG org.apache.axis.M=
essageContext
&nbsp; - MessageContext: setTargetService(WebDiskSOAP)<br>1046 [main] DEBUG=
 org.apache.axis.i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.re=
source::handleGetObject(noService10)<br>1047 [main] DEBUG org.apache.axis.C=
onfigurationException
&nbsp; - Exception: <br>org.apache.axis.ConfigurationException: No service =
named WebDiskSOAP is available<br>org.apache.axis.ConfigurationException: N=
o service named WebDiskSOAP is available<br>&nbsp;&nbsp;&nbsp; at org.apach=
e.axis.configuration.FileProvider.getService
(FileProvider.java:233)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.AxisEngine=
.getService(AxisEngine.java:311)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.M=
essageContext.setTargetService(MessageContext.java:755)<br>&nbsp;&nbsp;&nbs=
p; at org.apache.axis.client.Call.invoke(
Call.java:2690)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invoke=
(Call.java:2443)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invok=
e(Call.java:2366)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invo=
ke(Call.java:1812)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.informatica.webserv=
ices.WebDiskSOAPBindingStub.upload
(WebDiskSOAPBindingStub.java:230)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.info=
rmatica.webservices.WebDiskClient.testUpload(WebDiskClient.java:80)<br>&nbs=
p;&nbsp;&nbsp; at it.uniroma2.informatica.webservices.WebDiskClient.main(We=
bDiskClient.java:36)<br><br>
&nbsp;&nbsp;&nbsp; at org.apache.axis.configuration.FileProvider.getService=
(FileProvider.java:233)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.AxisEngine=
.getService(AxisEngine.java:311)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.M=
essageContext.setTargetService(MessageContext.java
:755)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invoke(Call.java=
:2690)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invoke(Call.jav=
a:2443)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invoke(Call.ja=
va:2366)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invoke
(Call.java:1812)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.informatica.webservic=
es.WebDiskSOAPBindingStub.upload(WebDiskSOAPBindingStub.java:230)<br>&nbsp;=
&nbsp;&nbsp; at it.uniroma2.informatica.webservices.WebDiskClient.testUploa=
d(WebDiskClient.java:80)<br>
&nbsp;&nbsp;&nbsp; at it.uniroma2.informatica.webservices.WebDiskClient.mai=
n(WebDiskClient.java:36)<br>1047 [main] DEBUG org.apache.axis.MessageContex=
t&nbsp; - MessageContext: setServiceHandler(null)<br>1047 [main] DEBUG org.=
apache.axis.i18n.ProjectResourceBundle
&nbsp; - org.apache.axis.i18n.resource::handleGetObject(targetService)<br>1=
047 [main] DEBUG org.apache.axis.client.Call&nbsp; - Target service:&nbsp; =
WebDiskSOAP<br>1047 [main] DEBUG org.apache.axis.MessageContext&nbsp; - Mes=
sageContext: setTargetService(
<a href=3D"http://www.informatica.uniroma2.it/WebDisk/wsdl/upload">http://w=
ww.informatica.uniroma2.it/WebDisk/wsdl/upload</a>)<br>1047 [main] DEBUG or=
g.apache.axis.i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.resou=
rce::handleGetObject
(noService10)<br>1048 [main] DEBUG org.apache.axis.ConfigurationException&n=
bsp; - Exception: <br>org.apache.axis.ConfigurationException: No service na=
med <a href=3D"http://www.informatica.uniroma2.it/WebDisk/wsdl/upload">http=
://www.informatica.uniroma2.it/WebDisk/wsdl/upload
</a> is available<br>org.apache.axis.ConfigurationException: No service nam=
ed <a href=3D"http://www.informatica.uniroma2.it/WebDisk/wsdl/upload">http:=
//www.informatica.uniroma2.it/WebDisk/wsdl/upload</a> is available<br>&nbsp=
;&nbsp;&nbsp; at=20
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233=
)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.AxisEngine.getService(AxisEngine=
.java:311)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.MessageContext.setTarge=
tService(MessageContext.java
:755)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.transport.http.HTTPTransport=
.setupMessageContextImpl(HTTPTransport.java:89)<br>&nbsp;&nbsp;&nbsp; at or=
g.apache.axis.client.Transport.setupMessageContext(Transport.java:46)<br>&n=
bsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invoke
(Call.java:2738)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invok=
e(Call.java:2443)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invo=
ke(Call.java:2366)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.inv=
oke(Call.java:1812)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.informatica.webser=
vices.WebDiskSOAPBindingStub.upload
(WebDiskSOAPBindingStub.java:230)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.info=
rmatica.webservices.WebDiskClient.testUpload(WebDiskClient.java:80)<br>&nbs=
p;&nbsp;&nbsp; at it.uniroma2.informatica.webservices.WebDiskClient.main(We=
bDiskClient.java:36)<br><br>
&nbsp;&nbsp;&nbsp; at org.apache.axis.configuration.FileProvider.getService=
(FileProvider.java:233)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.AxisEngine=
.getService(AxisEngine.java:311)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.M=
essageContext.setTargetService(MessageContext.java
:755)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.transport.http.HTTPTransport=
.setupMessageContextImpl(HTTPTransport.java:89)<br>&nbsp;&nbsp;&nbsp; at or=
g.apache.axis.client.Transport.setupMessageContext(Transport.java:46)<br>&n=
bsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invoke
(Call.java:2738)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invok=
e(Call.java:2443)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invo=
ke(Call.java:2366)<br>&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.inv=
oke(Call.java:1812)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.informatica.webser=
vices.WebDiskSOAPBindingStub.upload
(WebDiskSOAPBindingStub.java:230)<br>&nbsp;&nbsp;&nbsp; at it.uniroma2.info=
rmatica.webservices.WebDiskClient.testUpload(WebDiskClient.java:80)<br>&nbs=
p;&nbsp;&nbsp; at it.uniroma2.informatica.webservices.WebDiskClient.main(We=
bDiskClient.java:36)<br>1048 [main] DEBUG=20
org.apache.axis.MessageContext&nbsp; - MessageContext: setServiceHandler(nu=
ll)<br>1055 [main] DEBUG org.apache.axis.SOAPPart&nbsp; - Enter: SOAPPart::=
getAsSOAPEnvelope()<br>1055 [main] DEBUG org.apache.axis.i18n.ProjectResour=
ceBundle
&nbsp; - org.apache.axis.i18n.resource::handleGetObject(currForm)<br>1055 [=
main] DEBUG org.apache.axis.SOAPPart&nbsp; - current form is FORM_SOAPENVEL=
OPE<br>1055 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&nbsp; -=
 org.apache.axis.i18n.resource::handleGetObject
(register00)<br>1055 [main] DEBUG org.apache.axis.encoding.SerializationCon=
text&nbsp; - register 'soapenv' - '<a href=3D"http://schemas.xmlsoap.org/so=
ap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>'<br>1055 [main]=
 DEBUG=20
org.apache.axis.utils.NSStack&nbsp; - NSPush (32)<br>1056 [main] DEBUG org.=
apache.axis.utils.NSStack&nbsp; - NSPush (32)<br>1056 [main] DEBUG org.apac=
he.axis.i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.resource::h=
andleGetObject
(register00)<br>1056 [main] DEBUG org.apache.axis.encoding.SerializationCon=
text&nbsp; - register 'soapenv' - '<a href=3D"http://schemas.xmlsoap.org/so=
ap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>'<br>1056 [main]=
 DEBUG=20
org.apache.axis.i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.res=
ource::handleGetObject(register00)<br>1056 [main] DEBUG org.apache.axis.enc=
oding.SerializationContext&nbsp; - register 'xsd' - '<a href=3D"http://www.=
w3.org/2001/XMLSchema">
http://www.w3.org/2001/XMLSchema</a>'<br>1056 [main] DEBUG org.apache.axis.=
utils.NSStack&nbsp; - NSPush (32)<br>1056 [main] DEBUG org.apache.axis.i18n=
.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.resource::handleGetObje=
ct(register00)
<br>1056 [main] DEBUG org.apache.axis.encoding.SerializationContext&nbsp; -=
 register 'xsi' - '<a href=3D"http://www.w3.org/2001/XMLSchema-instance">ht=
tp://www.w3.org/2001/XMLSchema-instance</a>'<br>1056 [main] DEBUG org.apach=
e.axis.utils.NSStack
&nbsp; - NSPush (32)<br>1056 [main] DEBUG org.apache.axis.i18n.ProjectResou=
rceBundle&nbsp; - org.apache.axis.i18n.resource::handleGetObject(startElem0=
0)<br>1056 [main] DEBUG org.apache.axis.encoding.SerializationContext&nbsp;=
 - Start element [
<a href=3D"http://schemas.xmlsoap.org/soap/envelope/]:Envelope<http://schemas.xmlsoap.org/soap/envelope/%5D:Envelope>
">http://sche=
mas.xmlsoap.org/soap/envelope/]:Envelope<http://mas.xmlsoap.org/soap/envelope/%5D:Envelope></a><br>1062
[main] DEBUG org.apach=
e.axis.i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.resource::ha=
ndleGetObject
(startElem00)<br>1062 [main] DEBUG org.apache.axis.encoding.SerializationCo=
ntext&nbsp; - Start element [<a href=3D"http://schemas.xmlsoap.org/soap/env=
elope/]:Body <http://schemas.xmlsoap.org/soap/env=elope/%5D:Body>">
http://schemas.xmlsoap.org/soap/envelope/]:Body<http://schemas.xmlsoap.org/soap/envelope/%5D:Body></a><br>1062
[=
main] DEBUG=20
org.apache.axis.utils.NSStack&nbsp; - NSPush (32)<br>1062 [main] DEBUG org.=
apache.axis.i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.resourc=
e::handleGetObject(register00)<br>1062 [main] DEBUG org.apache.axis.encodin=
g.SerializationContext
&nbsp; - register '' - ''<br>1063 [main] DEBUG org.apache.axis.utils.NSStac=
k&nbsp; - NSPush (32)<br>1063 [main] DEBUG org.apache.axis.utils.NSStack&nb=
sp; - NSPush (32)<br>1063 [main] DEBUG org.apache.axis.i18n.ProjectResource=
Bundle&nbsp; - org.apache.axis.i18n.resource::handleGetObject
(startElem00)<br>1063 [main] DEBUG org.apache.axis.encoding.SerializationCo=
ntext&nbsp; - Start element []:upload<br>1069 [main] DEBUG org.apache.axis.=
i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.resource::handleGet=
Object
(startElem00)<br>1069 [main] DEBUG org.apache.axis.encoding.SerializationCo=
ntext&nbsp; - Start element []:fileName<br>1069 [main] DEBUG org.apache.axi=
s.utils.NSStack&nbsp; - NSPush (32)<br>1076 [main] DEBUG org.apache.axis.i1=
8n.ProjectResourceBundle
&nbsp; - org.apache.axis.i18n.resource::handleGetObject(endElem00)<br>1076 =
[main] DEBUG org.apache.axis.encoding.SerializationContext&nbsp; - End elem=
ent fileName<br>1076 [main] DEBUG org.apache.axis.utils.NSStack&nbsp; - NSP=
op (32)<br>
1090 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&nbsp; - org.ap=
ache.axis.i18n.resource::handleGetObject(startElem00)<br>1090 [main] DEBUG =
org.apache.axis.encoding.SerializationContext&nbsp; - Start element []:file=
<br>1090 [main] DEBUG=20
org.apache.axis.utils.NSStack&nbsp; - NSPush (32)<br>1091 [main] DEBUG org.=
apache.axis.i18n.ProjectResourceBundle&nbsp; - org.apache.axis.i18n.resourc=
e::handleGetObject(endElem00)<br>1091 [main] DEBUG org.apache.axis.encoding=
.SerializationContext
&nbsp; - End element file<br>1091 [main] DEBUG org.apache.axis.utils.NSStac=
k&nbsp; - NSPop (32)<br>1091 [main] DEBUG org.apache.axis.i18n.ProjectResou=
rceBundle&nbsp; - org.apache.axis.i18n.resource::handleGetObject(endElem00)=
<br>1091 [main] DEBUG=20
org.apache.axis.encoding.SerializationContext&nbsp; - End element upload<br=
>1091 [main] DEBUG org.apache.axis.utils.NSStack&nbsp; - NSPop (32)<br>1091=
 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&nbsp; - org.apache=
.axis.i18n.resource::handleGetObject
(endElem00)<br>1091 [main] DEBUG org.apache.axis.encoding.SerializationCont=
ext&nbsp; - End element soapenv:Body<br>1091 [main] DEBUG org.apache.axis.u=
tils.NSStack&nbsp; - NSPop (32)<br>1091 [main] DEBUG org.apache.axis.i18n.P=
rojectResourceBundle
&nbsp; - org.apache.axis.i18n.resource::handleGetObject(endElem00)<br>1091 =
[main] DEBUG org.apache.axis.encoding.SerializationContext&nbsp; - End elem=
ent soapenv:Envelope<br>1091 [main] DEBUG org.apache.axis.i18n.ProjectResou=
rceBundle
&nbsp; - org.apache.axis.i18n.resource::handleGetObject(empty00)<br>1091 [m=
ain] DEBUG org.apache.axis.utils.NSStack&nbsp; - NSPop (empty)<br>1091 [mai=
n] DEBUG org.apache.axis.client.Call&nbsp; - &lt;?xml version=3D&quot;1.0&q=
uot; encoding=3D&quot;UTF-8&quot;?&gt;&lt;soapenv:Envelope xmlns:soapenv=3D=
&quot;
<a href=3D"http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoa=
p.org/soap/envelope/</a>&quot; xmlns:xsd=3D&quot;<a href=3D"http://www.w3.o=
rg/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot; xmlns:xsi=3D&=
quot;
<a href=3D"http://www.w3.org/2001/XMLSchema-instance&quot;">http://www.w3.o=
rg/2001/XMLSchema-instance&quot;</a>&gt;&lt;soapenv:Body&gt;&lt;upload xmln=
s=3D&quot;&quot;&gt;&lt;fileName&gt;fileEst.jpg&lt;/fileName&gt;&lt;file hr=
ef=3D&quot;cid:E773E1C9F468724E1683F8F6B8FE05A9&quot;/&gt;&lt;/upload&gt;&l=
t;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;
<br>1092 [main] DEBUG org.apache.axis.client.AxisClient&nbsp; - Enter: Axis=
Client::invoke<br>1092 [main] DEBUG org.apache.axis.client.AxisClient&nbsp;=
 - EngineHandler: null<br>1101 [main] DEBUG org.apache.axis.i18n.ProjectRes=
ourceBundle
&nbsp; - org.apache.axis.i18n.resource::handleGetObject(axisUserAgent)<br>1=
110 [main] DEBUG org.apache.axis.SimpleChain&nbsp; - Enter: SimpleChain::in=
voke<br>1111 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle&nbsp; =
- org.apache.axis.i18n.resource::handleGetObject
(enter00)<br>1111 [main] DEBUG org.apache.axis.transport.http.HTTPSender&nb=
sp; - Enter:&nbsp; HTTPSender::invoke<br>1112 [main] DEBUG org.apache.axis.=
SOAPPart&nbsp; - Enter: SOAPPart::saveChanges<br><br>..................<br>=
.................
<br>..............<br><br><br>the wsdl file<br><br>&lt;?xml version=3D&quot=
;1.0&quot; encoding=3D&quot;UTF-8&quot;?&gt;<br><br>&lt;wsdl:definitions<br=
>&nbsp; targetNamespace=3D&quot;<a href=3D"http://www.informatica.uniroma2.=
it/WebDisk/wsdl">
http://www.informatica.uniroma2.it/WebDisk/wsdl</a>&quot;<br>&nbsp; xmlns=
=3D&quot;<a href=3D"http://schemas.xmlsoap.org/wsdl/">http://schemas.xmlsoa=
p.org/wsdl/</a>&quot;<br>&nbsp; xmlns:tns=3D&quot;<a href=3D"http://www.inf=
ormatica.uniroma2.it/WebDisk/wsdl">
http://www.informatica.uniroma2.it/WebDisk/wsdl</a>&quot;<br>&nbsp; xmlns:s=
oap=3D&quot;<a href=3D"http://schemas.xmlsoap.org/wsdl/soap/">http://schema=
s.xmlsoap.org/wsdl/soap/</a>&quot;<br>&nbsp; xmlns:wsdl=3D&quot;<a href=3D"=
http://schemas.xmlsoap.org/wsdl/">
http://schemas.xmlsoap.org/wsdl/</a>&quot;<br>&nbsp; xmlns:types=3D&quot;<a=
 href=3D"http://www.informatica.uniroma2.it/WebDisk">http://www.informatica=
.uniroma2.it/WebDisk</a>&quot;<br>&nbsp; xmlns:mime=3D&quot;<a href=3D"http=
://schemas.xmlsoap.org/wsdl/mime/">
http://schemas.xmlsoap.org/wsdl/mime/</a>&quot;<br>&nbsp; xmlns:xsd=3D&quot=
;<a href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSch=
ema</a>&quot; name=3D&quot;WebDisk&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; <b=
r>&nbsp;&nbsp;&nbsp; &lt;wsdl:types&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xsd:schema elementFormDefault=3D&=
quot;qualified&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&=
nbsp; targetNamespace=3D&quot;<a href=3D"http://www.informatica.uniroma2.it=
/WebDisk/wsdl/types">http://www.informatica.uniroma2.it/WebDisk/wsdl/types<=
/a>
&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; &lt;xsd:import namespace=3D&quot;<a href=3D"http://www.informa=
tica.uniroma2.it/WebDisk">http://www.informatica.uniroma2.it/WebDisk</a>&qu=
ot;&nbsp; schemaLocation=3D&quot;/home/simo/develop/java/WebDisk/src/it/uni=
roma2/informatica/WebDisk.xsd&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/xsd:schema&gt;<br>&nbsp;&nbs=
p;&nbsp; &lt;/wsdl:types&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &=
lt;wsdl:message name=3D&quot;listRequest&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &n=
bsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:part name=3D&quot;parameters&quot; element=
=3D&quot;types:listRequest&quot; /&gt;
<br>&nbsp;&nbsp;&nbsp; &lt;/wsdl:message&gt;<br>&nbsp;&nbsp;&nbsp; &lt;wsdl=
:message name=3D&quot;listResponse&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&n=
bsp;&nbsp; &lt;wsdl:part name=3D&quot;parameters&quot; element=3D&quot;type=
s:listResponse&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/wsdl:message&gt;<br>&n=
bsp;&nbsp;&nbsp;=20
<br>&nbsp;&nbsp;&nbsp; &lt;wsdl:message name=3D&quot;uploadRequest&quot;&gt=
;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;wsdl:part name=3D&quot;fileN=
ame&quot; type=3D&quot;xsd:string&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&n=
bsp;&nbsp; &lt;wsdl:part name=3D&quot;file&quot; type=3D&quot;xsd:base64Bin=
ary&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp; &lt;/wsdl:message&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;=
wsdl:message name=3D&quot;uploadResponse&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &n=
bsp;&nbsp;&nbsp; &lt;wsdl:part name=3D&quot;return&quot; type=3D&quot;xsd:s=
tring&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/wsdl:message&gt;<br>&nbsp;&nbsp=
;&nbsp; <br><br>&nbsp;&nbsp;&nbsp; &lt;wsdl:portType name=3D&quot;WebDiskPo=
rtType&quot;&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;wsdl:operation name=3D&quot;l=
ist&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &=
lt;wsdl:input message=3D&quot;tns:listRequest&quot; /&gt;<br>&nbsp;&nbsp;&n=
bsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:output message=3D&=
quot;tns:listResponse&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&lt;/wsdl:operation&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbs=
p;&nbsp; &lt;wsdl:operation name=3D&quot;upload&quot;&gt;<br>&nbsp;&nbsp;&n=
bsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;wsdl:input message=3D&quot;t=
ns:uploadRequest&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;=
&nbsp;&nbsp; &lt;wsdl:output message=3D&quot;tns:uploadResponse&quot;/&gt;<=
br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/wsdl:operation&gt;<br>&nbsp;&nbs=
p;&nbsp; &lt;/wsdl:portType&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;wsdl:binding =
name=3D&quot;WebDiskSOAPBinding&quot; type=3D&quot;tns:WebDiskPortType&quot=
;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;soap:binding style=3D&qu=
ot;document&quot; transport=3D&quot;
<a href=3D"http://schemas.xmlsoap.org/soap/http&quot;/">http://schemas.xmls=
oap.org/soap/http&quot;/</a>&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &=
lt;wsdl:operation name=3D&quot;list&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&=
nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;soap:operation soapAction=3D&quot;<a hre=
f=3D"http://www.informatica.uniroma2.it/WebDisk/wsdl/list&quot;/">
http://www.informatica.uniroma2.it/WebDisk/wsdl/list&quot;/</a>&gt;<br>&nbs=
p;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;wsdl:input&gt;<br>=
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=
 &lt;soap:body use=3D&quot;literal&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&=
nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/wsdl:input&gt;<br>&nbsp;&nbsp;&nbsp; &n=
bsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;wsdl:output&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&n=
bsp; &lt;soap:body use=3D&quot;literal&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nb=
sp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/wsdl:output&gt;<br>&nbsp;&nbsp;&nbs=
p; &nbsp;&nbsp;&nbsp; &lt;/wsdl:operation&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:op=
eration name=3D&quot;upload&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; &nbsp;&nbsp;&nbsp; &lt;soap:operation soapAction=3D&quot;
<a href=3D"http://www.informatica.uniroma2.it/WebDisk/wsdl/upload&quot;/">h=
ttp://www.informatica.uniroma2.it/WebDisk/wsdl/upload&quot;/</a>&gt;<br>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;wsdl:input&g=
t;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&=
nbsp;&nbsp; &lt;mime:multipartRelated&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mime:part&gt;<br>&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:body use=3D&=
quot;literal&quot; parts=3D&quot;fileName&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; &lt;/mime:part&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp; &lt;mime:part&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mim=
e:content part=3D&quot;file&quot; type=3D&quot;multipart/mixed&quot;/&gt;<b=
r>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/mime:part&gt;<br>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; &lt;/mime:multipartRelated&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; &nbsp;&nbsp;&nbsp; &lt;/wsdl:input&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;wsdl:=
output&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=
 &nbsp;&nbsp;&nbsp; &lt;soap:body use=3D&quot;literal&quot;/&gt;<br>&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/wsdl:output&gt;=
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/wsdl:operation&gt;<br>&=
nbsp;&nbsp;&nbsp; &lt;/wsdl:binding&gt;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&=
nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;wsdl:service name=3D&quot;WebDiskService&q=
uot;&gt;
<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;wsdl:port binding=3D&quot=
;tns:WebDiskSOAPBinding&quot; name=3D&quot;WebDiskSOAP&quot;&gt;<br>&nbsp;&=
nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;soap:address location=
=3D&quot;<a href=3D"http://localhost:8080/axis/services/WebDiskSOAP&quot;/"=
>http://localhost:8080/axis/services/WebDiskSOAP&quot;/
</a>&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/wsdl:port&gt;&nbsp;&=
nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp; &lt;/wsdl:service=
&gt;<br>&nbsp;&nbsp;&nbsp; <br>&lt;/wsdl:definitions&gt;<br><br>


On 2/16/06, Rodrigo Ruiz <rr...@gridsystems.com> wrote:
>
> Hi Simone,
>
> Take a look at another axis example: samples/swa
>
> It took me several days to notice this example was there :-D
>
> Regards,
> Rodrigo Ruiz
>
>

Re: wsdl2java bug ???

Posted by Rodrigo Ruiz <rr...@gridsystems.com>.
Hi Simone,

Take a look at another axis example: samples/swa

It took me several days to notice this example was there :-D

Regards,
Rodrigo Ruiz


Re: wsdl2java bug ???

Posted by Simone Bonazzoli <s....@gmail.com>.
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 <at...@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....@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....@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>
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: wsdl2java bug ???

Posted by Anne Thomas Manes <at...@gmail.com>.
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....@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....@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>
> > > > >
> > > > >
> > > >
> > >
> >
>

Re: wsdl2java bug ???

Posted by Simone Bonazzoli <s....@gmail.com>.
sorry.... the element uploadRequest is wrong :)
forget it :)

On 2/16/06, Simone Bonazzoli <s....@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....@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>
> > > >
> > > >
> > >
> >
>

Re: wsdl2java bug ???

Posted by Simone Bonazzoli <s....@gmail.com>.
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....@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 <at...@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....@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>
> > >
> > >
> >
>

Re: wsdl2java bug ???

Posted by Simone Bonazzoli <s....@gmail.com>.
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 <at...@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....@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>
> >
> >
>

Re: wsdl2java bug ???

Posted by Anne Thomas Manes <at...@gmail.com>.
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....@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>
>
>