Ajith! For the SimpleTest wsdl that venkat provided in his following mail, I too ran the WSDL2Java giving all options and finally if I look at the test case that got generated there is a serious return type incompatibility observed. We are returning OMElement for an XMLObject of xmlbeans. And hence the code is not compiling, can you check that out once.
Jaya On 7/26/05, Venkat Reddy <[EMAIL PROTECTED]> wrote: > I just tried it with some simplest wsdl file and code generated is not > in a compilable shape with lot of illegal and unnecessary line breaks. > I thought we had this code since M2, so is it because i'm doing > something wrong? > > Actually, i'm looking to use this tool to generate code for JAX-WS > stubs. I think it should allow to plug-in my own emitter with > customized templates that implement JAX-WS interfaces. Is this > possible? or should I write my own code generator for this? > > best regards > - venkat > > ----------------- the test wsdl follows -------------------- > <?xml version="1.0"?> > <definitions name="SimpleTest" > targetNamespace="http://SimpleTest.org/" > xmlns="http://schemas.xmlsoap.org/wsdl/" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:tns="http://SimpleTest.org/" > xmlns:s="http://SimpleTest.org/xsd" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> > > <types> > <schema xmlns="http://www.w3.org/2001/XMLSchema" > targetNamespace="http://SimpleTest.org/xsd"> > > <element name="echoString"> > <complexType> > <sequence> > <element name="inputString" type="xsd:string" > nillable="true"/> > </sequence> > </complexType> > </element> > > <element name="StringResponseName"> > <complexType> > <sequence> > <element name="responseString" > type="xsd:string" nillable="true"/> > </sequence> > </complexType> > </element> > </schema> > </types> > > <message name="echoString"> > <part name="body" element="s:echoString"/> > </message> > <message name="echoStringResponse"> > <part name="return" element="s:StringResponseName"/> > </message> > > <portType name="SimpleTest"> > <operation name="echoString" parameterOrder="body" > > <input message="tns:echoString"/> > <output message="tns:echoStringResponse"/> > </operation> > </portType> > > <binding name="SimpleTestBinding" type="tns:SimpleTest"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <operation name="echoString"> > <soap:operation soapAction="http://SimpleTest.org/"/> > <input> > <soap:body use="literal"/> > </input> > <output> > <soap:body use="literal"/> > </output> > </operation> > </binding> > > <service name="SimpleTestService"> > <port name="SimpleTestPort" binding="tns:SimpleTestBinding"> > <soap:address > location="http://localhost:8080/axis/services/SimpleTestPort"/> > </port> > </service> > </definitions> > -- -- Jaya
