I am migrating wsdl-java code generation from Axis to CXF. Have hit an issue
with following WSDL which does not generate method with input parameters
with CXF.  The same WSDL used with Axis 2 generates the method parameter. 

The given WSDL is: 

<wsdl:definitions xmlns:tns="http://soa.mytest.com/services/master/wsdl";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:ns0="http://soa.mytest.com/services/messages"; name="TestManifestPT"
targetNamespace="http://soa.mytest.com/services/master/wsdl"; >
    <wsdl:types>
        <xs:schema xmlns:tns="http://soa.mytest.com/services/messages";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://soa.mytest.com/services/messages"; version="1.2.0"
elementFormDefault="qualified" attributeFormDefault="unqualified">
            <xs:complexType name="TestManifest">
                <xs:complexContent>
                    <xs:extension base="tns:Notification"/>
                </xs:complexContent>
            </xs:complexType>
            <xs:complexType name="Message" abstract="true">
                <xs:attribute name="version" type="tns:Version"/>
            </xs:complexType>
            <xs:complexType name="Notification">
                <xs:complexContent>
                    <xs:extension base="tns:Message"/>
                </xs:complexContent>
            </xs:complexType>
            <xs:simpleType name="Version">
                <xs:restriction base="xs:string"/>
            </xs:simpleType>
            <xs:element name="TestManifest" type="tns:TestManifest"/>
        </xs:schema>
    </wsdl:types>
    
    <wsdl:message name="TestManifest">
        <wsdl:part name="body" element="ns0:TestManifest"/>
    </wsdl:message>
    <wsdl:portType name="TestManifestPT">
        <wsdl:operation name="TestManifest">
            <wsdl:input message="tns:TestManifest"/>
        </wsdl:operation>       
    </wsdl:portType>
   </wsdl:definitions>



The output it generates is testManifest() with empty parameters. The
expected is to generated with message type parameter.

@WebService(targetNamespace = "http://soa.mytest.com/services/master/wsdl";,
name = "TestManifestPT")
@DataBinding(org.apache.cxf.xmlbeans.XmlBeansDataBinding.class)
public interface TestManifestPT {

    @Oneway
    @RequestWrapper(localName = "TestManifest", targetNamespace =
"http://soa.mytest.com/services/messages";, className =
"com.mytest.soa.services.messages.TestManifestDocument")
    @WebMethod(operationName = "TestManifest")
    public void testManifest();
}

Axis tool generates testManifest( TestManifestDocument doc)  with
parameters. 
One of the constraint is not to change the WSDL in migration.

Looking for help if there are some arguments or parameters in CXF which can
generate the above method with parameter for above CXF.  Thanks in advance
for sharing your insights. 

/santosh




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Migration-to-CXF-WSDL2Java-is-not-generating-method-with-input-parameter-tp5709568.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to