Web services 哪个Java库可以自动生成所有用于调用Web服务的模板代码?

Web services 哪个Java库可以自动生成所有用于调用Web服务的模板代码?,web-services,Web Services,有一个wsimport命令生成WSDL中引用的所有类型。但这对调用web服务方法、将XML解析为Java对象等剩下的所有样板文件都没有任何作用 假设服务提供者WSDL定义的名为CustomerService的web服务提供了一个操作getCustomerAddress(字符串CustomerID),并返回CustomerAddress类型的对象。 wsimport仅生成CustomerAddress等类型。我要寻找的是自动生成的代码,如: String AppID = "" ; // auto

有一个wsimport命令生成WSDL中引用的所有类型。但这对调用web服务方法、将XML解析为Java对象等剩下的所有样板文件都没有任何作用

假设服务提供者WSDL定义的名为CustomerService的web服务提供了一个操作getCustomerAddress(字符串CustomerID),并返回CustomerAddress类型的对象。 wsimport仅生成CustomerAddress等类型。我要寻找的是自动生成的代码,如:

String AppID = "" ;  // autogenerated (if there was such parameter specified in WSDL)
String endpointA = "some end point";
CustomerAddress getCustomerAddress(String customerID) {

// all the bolierplate of actaully calling the webservice, unmarshalling the XML response 
// including error/exception handling etc.


return result;
}

我喜欢,特别是如果您已经在使用Spring。

我找不到如何使用SpringWeb服务自动生成样板代码?你能提供更多的信息吗?