- 3
- 0
- 约3.71千字
- 约 3页
- 2017-02-09 发布于重庆
- 举报
XFire与Spring集成WebService客户端的两种开发方式
XFire与Spring集成时WebService客户端的两种开发方式
方式①、借助Spring并通过WSDL文件创建WebService客户端
package com.jadyer.client;
import java.io.IOException;
import org.codehaus.xfire.client.Client;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
/**
* 此时应该将服务方提供的WSDL文件,拷贝到src目录下,即可
*/
public class ClientUseSpringFromWSDL {
public static void main(String[] args) throws IOException, Exception {
new ClientUseSpringFromWSDL().generatedClient();
}
public void generatedClient() throws IOException, Exception {
// 拷贝到src
原创力文档

文档评论(0)