把对方的文件打包成一个jar包,引用到本地,通过第一个连接案例就可
以调用发布的接口了。
workflowService为接口
getToDoWorkflowRequestCount 为被调用的接口方法
jar包
xfire-aegis-1.2.6.jar
xfire-annotations-1.2.6.jar
xfire-core-1.2.6.jar
xfire-java5-1.2.6.jar
xfire-jsr181-api-1.0-M1.jar
xfire-spring-1.2.6.jar
xfire-xmlbeans-1.2.6.jar
Service service = new ObjectServiceFactory().create(weaver.mobile.webservices.workflow.WorkflowService.class);
XFireProxyFactory factory = new XFireProxyFactory(XFireFactory
.newInstance().getXFire());
String url = "http://192.168.0.200:8034//services/WorkflowService";
weaver.mobile.webservices.workflow.WorkflowService workflowvice = (weaver.mobile.webservices.workflow.WorkflowService) factory.create(service, url);
System.out.println(workflowvice.getToDoWorkflowRequestCount(296,null));