Stephen One thing that axis devs assume is that your wsdl is both well-formed and valid -checking WSDL is 'well-formed' http://www.w3schools.com/xml/xml_validator.asp
-checking if WSDL is validhttp://www.w3.org/wiki/WsdlValidator Martin Gainty ______________________________________________ Note de déni et de confidentialitéCe message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: [email protected] Date: Sun, 12 May 2013 00:17:09 +0530 Subject: Re: Generate client from WSDL To: [email protected] What are the options you used here in generating the code? If you look at [2], it explains about the options you can pass when generating code from WSDL. Kishanthan.[2] http://axis.apache.org/axis2/java/core/tools/CodegenToolReference.html#cmdref On Tue, May 7, 2013 at 7:30 PM, Stephenson Ohimor <[email protected]> wrote: Thanks for getting back to me Kishanthan. I've tried Wsdl2Java however the code generated in the stub has object types that do not exists in the types package (also generated). I think its really odd that generating a client from a WSDL would result in non compiling code. My thoughts are that there may be something wrong with the Wsdl or perhaps there is a setting I need to pass into wsdl2Java to generate different stub code? Any thoughts? Thanks,Stephen On Mon, May 6, 2013 at 11:44 PM, Kishanthan Thangarajah <[email protected]> wrote: On Mon, May 6, 2013 at 10:09 PM, Stephenson Ohimor <[email protected]> wrote: Hi, I'm trying to create a client and embed it into a spring based web app. The webservice is written with Axis2. When I try to generate a client from the WSDL (via eclipse WSDL generation) I get a number of errors when the 'converter types' objects are created. My question is, what is the recommended process for generating a java client based off of a WSDL? Try using axis2 code generation tools [1]. There number of ways(command-line, ant task, maven plugin) to generate code from wsdl using given axis2 tools. Kishanthan. [1] http://axis.apache.org/axis2/java/core/tools/index.html Thanks,Stephen
