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 Martin Aberle <m....@gmx.de> on 2003/12/10 13:12:46 UTC

RE: Axis C++ wsdl2ws Exception

Hello Kanchana,

in my opinion you got the same problem as myself. Your zip file does not
contain the header file coveragedata.h, that is needed by etpp_authreturn.h.
Most of the files are created here correctly but some are missing (I assume
these files, that got a java exception - wsdl2ws does not abort on this
exception).

The coveragedata object uses the type "choice", is this generally a problem?
But even if I change "choice" to "sequence", the file "coveragedata.h" will
not be generated.

Cheers,
 Martin

>Hi Martin,
>I used the tool to generate the client artifacts for your given
>http://www.carus.de/projects/xaction/services/v50/Xaction_50_State wsdl
file
>.Tool works fine and gave me following header files and cpp stubs.
>(Here I have attached the stateout.zip.)Therefore you can compare with what
>you got.
>
>To use WSDL2Ws java tool you should set the CLASSPATH Environment Variable
>to point to the following jar files in [(where the Axis C++
>extracted)]AXIS_EXTRACT\lib\axisjava.
>you need following jar files to run it.
>axis.jar
>commons-discovery.jar
>commons-logging.jar
>jaxrpc.jar
>saaj.jar
>wsdl4j.jar
>xml-apis.jar
>j2sdk 1.4 or +
>
>for more details about how to use WSDL tool
>http://ws.apache.org/axis/cpp/winuser-guide.html or
>http://ws.apache.org/axis/cpp/linuser-guide.html
>Yes there are some differences than wsdl2java.But WSDL2ws tool in Axis C++
>works fine for the complex types.Yes there are some limitions for "any
type"
>but in your wsdl i couldn't find any type.There can't be a wrong with the
>wsdl either.Here etpp_authreturn header file and cpp file which include
>coveragedata also generated.Check with configuration stuff following the
>Documentation,state.zip file and let me know.I'm willing to help you.
>cheers
>kanchana
>
>
>less.wsdl
>
>> -----Original Message-----
>> From: Martin Aberle [mailto:m.aberle@gmx.de]
>> Sent: Sunday, December 07, 2003 10:34 PM
>> To: axis-user@ws.apache.org
>> Subject: Axis C++ wsdl2ws Exception
>>
>>
>> Hi,
>>
>> I am trying the beta version of Aixs C++. I want to write a client, that
>> connects to our exisiting web service. When I run wsdl2ws,
>> several exceptions
>> occur and some complex types are not created. These messages are shown:
>>
>> 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(ParamWr
>> iter.java:133)
>>     at
>> org.apache.axis.wsdl.wsdl2ws.cpp.ParamWriter.<init>(ParamWriter.java:95)
>>     at
>> org.apache.axis.wsdl.wsdl2ws.cpp.ParamCPPFileWriter.<init>(ParamCP
>> PFileWriter.java:74)
>>     at
>> org.apache.axis.wsdl.wsdl2ws.cpp.BeanParamWriter.<init>(BeanParamW
>> riter.java:80)
>>     at
>> org.apache.axis.wsdl.wsdl2ws.cpp.AllParamWriter.writeSource(AllPar
>> amWriter.java:96)
>>     at org.apache.axis.wsdl.wsdl2ws.Genarator.genarate(Genarator.java:75)
>>     at
>> org.apache.axis.wsdl.wsdl2ws.rpc.RPCWebServiceGenarator.genarate(R
>> PCWebServiceGenarator.java:95)
>>     at
>> org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.genarateWrappers(WSDL2Ws.java:375)
>>     at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(WSDL2Ws.java:515)
>>
>> The source WSDL file was
>> http://www.carus.de/projects/xaction/services/v50/Xaction_50_State
>less.wsdl
>
>The data type coveragedata was not generated for example.  Is there
>something wring with the WSDL (Axis Java processes this file without
>problem) or has
>wsdl2ws some limitations?
>
>Thanks in advance,
> Martin
>
>--
>+++ GMX - die erste Adresse für Mail, Message, More +++
>Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
>
-- 
Martin Aberle


-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



RE: Axis C++ wsdl2ws Exception

Posted by Kanchana Welagedara <ka...@opensource.lk>.
Hi Martin;
Yes .There's a bug.when carefully checked I understood that.I'll enter it to
Bugzilla.Thanks in advance for making us alert on this.
Thanks
Kanchana

> -----Original Message-----
> From: Martin Aberle [mailto:m.aberle@gmx.de]
> Sent: Wednesday, December 10, 2003 6:13 PM
> To: axis-user@ws.apache.org
> Subject: RE: Axis C++ wsdl2ws Exception
>
>
> Hello Kanchana,
>
> in my opinion you got the same problem as myself. Your zip file does not
> contain the header file coveragedata.h, that is needed by
> etpp_authreturn.h.
> Most of the files are created here correctly but some are missing
> (I assume
> these files, that got a java exception - wsdl2ws does not abort on this
> exception).
>
> The coveragedata object uses the type "choice", is this generally
> a problem?
> But even if I change "choice" to "sequence", the file
> "coveragedata.h" will
> not be generated.
>
> Cheers,
>  Martin
>
> >Hi Martin,
> >I used the tool to generate the client artifacts for your given
> >http://www.carus.de/projects/xaction/services/v50/Xaction_50_State wsdl
> file
> >.Tool works fine and gave me following header files and cpp stubs.
> >(Here I have attached the stateout.zip.)Therefore you can
> compare with what
> >you got.
> >
> >To use WSDL2Ws java tool you should set the CLASSPATH
> Environment Variable
> >to point to the following jar files in [(where the Axis C++
> >extracted)]AXIS_EXTRACT\lib\axisjava.
> >you need following jar files to run it.
> >axis.jar
> >commons-discovery.jar
> >commons-logging.jar
> >jaxrpc.jar
> >saaj.jar
> >wsdl4j.jar
> >xml-apis.jar
> >j2sdk 1.4 or +
> >
> >for more details about how to use WSDL tool
> >http://ws.apache.org/axis/cpp/winuser-guide.html or
> >http://ws.apache.org/axis/cpp/linuser-guide.html
> >Yes there are some differences than wsdl2java.But WSDL2ws tool
> in Axis C++
> >works fine for the complex types.Yes there are some limitions for "any
> type"
> >but in your wsdl i couldn't find any type.There can't be a wrong with the
> >wsdl either.Here etpp_authreturn header file and cpp file which include
> >coveragedata also generated.Check with configuration stuff following the
> >Documentation,state.zip file and let me know.I'm willing to help you.
> >cheers
> >kanchana
> >
> >
> >less.wsdl
> >
> >> -----Original Message-----
> >> From: Martin Aberle [mailto:m.aberle@gmx.de]
> >> Sent: Sunday, December 07, 2003 10:34 PM
> >> To: axis-user@ws.apache.org
> >> Subject: Axis C++ wsdl2ws Exception
> >>
> >>
> >> Hi,
> >>
> >> I am trying the beta version of Aixs C++. I want to write a
> client, that
> >> connects to our exisiting web service. When I run wsdl2ws,
> >> several exceptions
> >> occur and some complex types are not created. These messages are shown:
> >>
> >> 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(ParamWr
> >> iter.java:133)
> >>     at
> >>
> org.apache.axis.wsdl.wsdl2ws.cpp.ParamWriter.<init>(ParamWriter.java:95)
> >>     at
> >> org.apache.axis.wsdl.wsdl2ws.cpp.ParamCPPFileWriter.<init>(ParamCP
> >> PFileWriter.java:74)
> >>     at
> >> org.apache.axis.wsdl.wsdl2ws.cpp.BeanParamWriter.<init>(BeanParamW
> >> riter.java:80)
> >>     at
> >> org.apache.axis.wsdl.wsdl2ws.cpp.AllParamWriter.writeSource(AllPar
> >> amWriter.java:96)
> >>     at
> org.apache.axis.wsdl.wsdl2ws.Genarator.genarate(Genarator.java:75)
> >>     at
> >> org.apache.axis.wsdl.wsdl2ws.rpc.RPCWebServiceGenarator.genarate(R
> >> PCWebServiceGenarator.java:95)
> >>     at
> >> org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.genarateWrappers(WSDL2Ws.java:375)
> >>     at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(WSDL2Ws.java:515)
> >>
> >> The source WSDL file was
> >> http://www.carus.de/projects/xaction/services/v50/Xaction_50_State
> >less.wsdl
> >
> >The data type coveragedata was not generated for example.  Is there
> >something wring with the WSDL (Axis Java processes this file without
> >problem) or has
> >wsdl2ws some limitations?
> >
> >Thanks in advance,
> > Martin
> >
> >--
> >+++ GMX - die erste Adresse für Mail, Message, More +++
> >Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
> >
> --
> Martin Aberle
>
>
> --
> +++ GMX - die erste Adresse für Mail, Message, More +++
> Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
>
>
>