axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From susan...@opensource.lk
Subject Re: WSDL2Ws error?
Date Thu, 18 Mar 2004 11:34:47 GMT
Hi,

It seems that there is something wrong with the wsdl too.
I changed the complexType part to be

            <xsd:complexType name="Struttura">
               <xsd:complexContent>
                   <xsd:restriction base="SOAP-ENC:Array">
                      <xsd:attribute ref="SOAP-ENC:arrayType"
wsdl:arrayType="xsd:integer[]"/>
                  </xsd:restriction>
               </xsd:complexContent>
            </xsd:complexType>

and fixed a bug we had in the WSDL2Ws tool.

Now it works fine.

Thanks,

Susantha.


> Good Morning,
>
> i am new to this mailing list.
> I have generated a simple wsdl and while compiling with this command, to
> generate the c++ code,
>
> "java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws Prova1.wsdl -lc++ -sclient"
>
> i receive this output:
> -------------------------------------------------------------------------------------------------
> ############## the type found
> ={http://andromeda.di.unipi.it/Prova1.wsdl}Struttura
> ############## the type found
> ={http://www.w3.org/2001/XMLSchema}integer[10]
> /.automount/capraia/l/disc1/home/paternes/WEBSERVICES/./Prova1/Client/Struttura_port.cpp
> created.....
> /.automount/capraia/l/disc1/home/paternes/WEBSERVICES/./Prova1/Client/Struttura_port.h
> created.....
> complex type writer called ......
> possible error calss with no attributes....................
> possible error calss with no attributes....................
> /.automount/capraia/l/disc1/home/paternes/WEBSERVICES/./Prova1/Client/Struttura.cpp
> created.....
> /.automount/capraia/l/disc1/home/paternes/WEBSERVICES/./Prova1/Client/Struttura.h
> created.....
> Array writer called ......
> Error occured yet we continue to genarate other classes ... you should
> check the error
> java.lang.NullPointerException
>         at
> org.apache.axis.wsdl.wsdl2ws.cpp.ParamWriter.getAttribList(ParamWriter.java:133)
>         at
> org.apache.axis.wsdl.wsdl2ws.cpp.ParamWriter.<init>(ParamWriter.java:95)
>         at
> org.apache.axis.wsdl.wsdl2ws.cpp.ArrayParamWriter.<init>(ArrayParamWriter.java:77)
>         at
> org.apache.axis.wsdl.wsdl2ws.cpp.AllParamWriter.writeSource(AllParamWriter.java:92)
>         at
> org.apache.axis.wsdl.wsdl2ws.Genarator.genarate(Genarator.java:75)
>         at
> org.apache.axis.wsdl.wsdl2ws.rpc.RPCWebServiceGenarator.genarate(RPCWebServiceGenarator.java:100)
>         at
> org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.genarateWrappers(WSDL2Ws.java:375)
>         at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(WSDL2Ws.java:515)
> ------------------------------------------------------------------------------------------------
>
> It seems that WSDL2Ws cannot handle the complex types.
> I post also the wsdl (as attachment) so that you can tell me where is the
> mistake.
>
> If some one can help me i would appreciate that very much.
>
> Thank you.
>
>
> --
> Andrea Paternesi
>
> Gruppo Linux Macerata
> http://glm.gulp.linux.it/start/
> http://lists.gulp.linux.it/mailman/listinfo/glm
>


Mime
View raw message