Hi, When you use -d none the operations are generated as axiom_node input and axiom_node output. If you want to generate c native types instead of that drop -d none part in the command (or just -d adb). And possibly add the -uw flag if you are using a nightly build.
java org.apache.axis2.wsdl.WSDL2C -uri <wsdl_file> -ss -uw Thanks Dimuthu On Fri, Apr 3, 2009 at 5:10 PM, ramesh Gopal <[email protected]>wrote: > > > Hello. > > I am having the following wsdl. > > <?xml version="1.0" encoding="UTF-8" ?> > <wsdl:definitions targetNamespace="http://xxx/visa_valid" xmlns=" > http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xxx/visa_valid" > name="visa_valid" xmlns:apachesoap="http://xml.apache.org/xml-soap" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl=" > http://schemas..xmlsoap.org/wsdl/" xmlns:wsdlsoap=" > http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd=" > http://www.w3.org/2001/XMLSchema"> > <wsdl:types> > <schema elementFormDefault="qualified" > targetNamespace="http:/xxx/visa_valid" xmlns=" > http://www.w3.org/2001/XMLSchema"> > <element name="visa_valid"> > <complexType> > <sequence> > <element name="in0" type="xsd:string" /> > <element name="in1" type="xsd:string" /> > <element name="in2" type="xsd:string" /> > </sequence> > </complexType> > </element> > <element name="visa_validresponse"> > <complexType> > <sequence> > <element name="out0" type="xsd:string" /> > <element name="out1" type="xsd:decimal" /> > <element name="out2" type="xsd:decimal" /> > </sequence> > </complexType> > </element> > </schema> > </wsdl:types> > <wsdl:message name="visa_validresp"> > <wsdl:part name="body" element="tns:visa_validresponse" /> > </wsdl:message> > <wsdl:message name="visa_validreq"> > <wsdl:part name="body" element="tns:visa_valid" /> > </wsdl:message> > <wsdl:portType name="visa_validporttype"> > <wsdl:operation name="visa_valid"> > <wsdl:input message="tns:visa_validreq" name="visa_validrequest" /> > <wsdl:output message="tns:visa_validresp" name="visa_validresponse" /> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="visa_validsoapbinding" type="tns:visa_validporttype"> > <wsdlsoap:binding style="document" transport=" > http://schemas.xmlsoap.org/soap/http" /> > <wsdl:operation name="visa_valid"> > <wsdlsoap:operation soapAction="" /> > <wsdl:input> > <wsdlsoap:body use="literal" /> > </wsdl:input> > <wsdl:output> > <wsdlsoap:body use="literal" /> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="ws_visa"> > <wsdl:port binding="tns:visa_validsoapbinding" name="visa_validservice"> > <wsdlsoap:address location="http://<ip>:<port>/axis2/services/ws_visa" /> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > Now when I try to generate the client code using the command: > > java org.apache.axis2.wsdl.WSDL2C -uri <wsdl_file> -sd -d none > > it generates the client stub. > > However, there is a lot of difference between the WSDL2JAVA and WSDL2C > tools. > > The WSDL2C generates the code taking a node as an input value. Then it > becomes imperative that the user forms the xml request and sends it. > But in WSDL2Java, it just needs a value for input (The value can be either > a string / integer/ decimal etc value). > Is this a expected behaviour with WSDL2C ???? > > > Does WSDL2C only cater to SOAP requests ? I dont see any code being > generated for HTTP / MQ requests ? > > --- On Thu, 2/4/09, ramesh Gopal <[email protected]> wrote: > > > From: ramesh Gopal <[email protected]> > > Subject: WSDL2C tool > > To: "Apache AXIS C User List" <[email protected]> > > Date: Thursday, 2 April, 2009, 11:20 AM > > > > > > Hello, > > > > I have used WSDL2C (taking input as a wsdl file) to > > generate the a client code using the command mentioned below > > : > > > > java org.apache.axis2.wsdl.WSDL2C -uri <wsdl_file> > > -sd -d none > > > > Does the WSDL2C parse the wsdl to a point where it can get > > more information about what the input/output datatypes are > > ??? > > input/output message tags are (eg ... if <max> is an > > input tag does WSDL2C retrieve this information too) .... > > > > I have used a Web Services explorer tool on Eclipse, and > > saw that this gets all the specific information from a wsdl > > file. > > > > Its my understanding that expecting the user to know all > > this information from a wsdl (and that too from someone who > > is new to Web service world), how do we see all this > > happening ??? > > > > Rgds, > > Ramesh. > > > > > > Add more friends to your messenger and > > enjoy! Go to http://messenger.yahoo.com/invite/ > > > > > > > Add more friends to your messenger and enjoy! Go to > http://messenger.yahoo.com/invite/ > > -- Thanks, Dimuthu Gamage http://www.dimuthu.org http://www.wso2.org
