I think that im missing something to generate the client stub 

Service Method

@WebMethod(operationName = "doTest")
public String doTest(@WebParam(header = true, name = "authentication")
Authentication authentication,   
                            @WebParam(name = "index") int index);


Part of WSDL 

<xs:complexType name="doTest">
−
<xs:sequence>
<xs:element name="index" type="xs:int"/>
</xs:sequence>
</xs:complexType>
−
<xs:complexType name="authentication">
−
<xs:sequence>
<xs:element minOccurs="0" name="password" type="xs:string"/>
<xs:element minOccurs="0" name="userName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
....

<wsdl:message name="doTest">
<wsdl:part element="tns:doTest" name="parameters">
    </wsdl:part>
<wsdl:part element="tns:authentication" name="authentication">
    </wsdl:part>
</wsdl:message>

.....

<wsdl:operation name="doTest">
<soap:operation soapAction="" style="document"/>
-
<wsdl:input name="doTest">
<soap:header message="tns:doTest" part="authentication" use="literal">
        </soap:header>
<soap:body parts="parameters" use="literal"/>
</wsdl:input>
−
<wsdl:output name="doTestResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>




But When i tried to generate Client then the client method looks like 

doTest(DoTest parameters,   Authentication authentication) {}

But i want it as 

doTest(int index,   Authentication authentication) {}



Note: When i generated code i used -exsh true and databinding xmlbeans .


How should i generate the client code to get in expected manner. 




-- 
View this message in context: 
http://old.nabble.com/Issue-creating-Client-Stub...-tp28396954p28396954.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to