RI 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"); }
import javax.xml.namespace.QName;
import org.apache.cxf.frontend.ClientProxyFactoryBean;
import org.apache.cxf.service.factory.DefaultServiceConfiguration;
import org.apache.cxf.service.factory.ReflectionServiceFactoryBean;
import com.ebao.framework.MockTestCaseSupport;
import com.ebao.gs.prdtmgmt.feature.util.FeatureControler;
import com.ebao.gs.prdtmgmt.product.intergration.GCSProductService;
import com.ebao.gs.prdtmgmt.product.soa.ds.impl.ProductServiceImpl;
import com.ebao.gs.prdtmgmt.product.soa.vo.ProductSOABO;
import com.ebao.pub.soa.esb.ServiceFactory;
import com.ebao.pub.util.BeanUtils;
import com.ebao.pub.util.Log;
/**
* Jan 5, 2009
*
* @author eric.wang
*
*/
public class ProductServiceTest extends MockTestCaseSupport {
public void testGetProductInfo() throws Exception {
ProductService service = new ProductServiceImpl();
ProductSOABO productSOABO = service
.getProductInfo(new Long(1100000422));
System.out.println(productSOABO.getBizProductCode());
- 粉丝: 0
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助