文件名称:RI Webservice TEST
文件大小:2KB
文件格式:TXT
更新时间:2012-02-05 09:45:34
Webservice TEST
public class RiWebServiceTest extends TestCase { public void testRiWebService() throws Exception { DefaultServiceConfiguration config = new DefaultServiceConfiguration(); ReflectionServiceFactoryBean serviceFactory = new ReflectionServiceFactoryBean(); serviceFactory.getServiceConfigurations().add(config); ClientProxyFactoryBean factory = new ClientProxyFactoryBean(); factory.setServiceClass(RIWebService.class); factory.setServiceFactory(serviceFactory); factory .setAddress("http://172.16.7.177/insurance/services/RIWebService"); factory.setServiceName(new QName( "http://service.esb.soa.pub.ebao.com/", "RIWebService")); RIWebService ri = (RIWebService) factory.create(); System.out.println("ri = " + ri); ClaimInformationSOABO claimInformationSOABO = createClaimInformationSOABO(); ri.RIClaimProcess(claimInformationSOABO, "claimRegisterAndReserve"); }