I tried with following changes but still the problem reproducible
public interface IDataTypeTester {
String helloWorld(String text);
@WebResult(name="integer")
int helloUsers(@WebParam(name="user")List<String> users);
}
package com.savvion.webservice.cxf.service;
@WebService
public class DataTypeTesterImpl implements IDataTypeTester {
@WebResult(name="integer")
public int helloUsers(@WebParam(name="user")List<String> users) {
return users.size();
}
}
In Server class
public static Server getServer() {
DataTypeTesterImpl helloworldImpl = new DataTypeTesterImpl();
JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
svrFactory.setServiceClass(IDataTypeTester.class);
svrFactory.setAddress("http://localhost:9000/DataTypeTester");
svrFactory.setServiceBean(helloworldImpl);
svrFactory.setStart(false);
//add logging interceptor
svrFactory.getInInterceptors().add(new LoggingInInterceptor());
svrFactory.getOutInterceptors().add(new LoggingOutInterceptor());
Server server = svrFactory.create();
return server;
}
So I am able to see the following
<xs:complexType name="helloUsers">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="user"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
But in the client request class object still having 'users' attribute
instead of 'user'.
Thanks
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-Client-issue-with-upgrade-from-CXF-2-2-7-to-2-4-2-tp4845738p4957653.html
Sent from the cxf-user mailing list archive at Nabble.com.