大家好,我最近在做与另一个系统对接,遇到一个棘手问题,请大家帮忙:
我这边用的是JAVA+AXIS2,对方用的是比较少见的一种开发语言。已经拿到对方生成的WSDL文件,利用AXIS2 自动生成Client JAVA代码也都OK。
但是在做连接时却发生问题
Exception in thread "main" org.apache.axis2.AxisFault: No operation found
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at tw.com.dsc.www.tiptop.tiptopservicegateway.TIPTOPServiceGateWayStub.getOrganizationList(TIPTOPServiceGateWayStub.java:20326)
at biz.digiwin.AwsTTSrv2Client.main(AwsTTSrv2Client.java:26)
1 package biz.digiwin; 2 3 import java.rmi.RemoteException; 4 5 import org.apache.axis2.AxisFault; 6 7 import tw.com.dsc.www.tiptop.tiptopservicegateway.*; 8 public class AwsTTSrv2Client { 9 10 /** 11 * @param args 12 * @throws RemoteException 13 */ 14 public static void main(String[] args) throws RemoteException { 15 // TODO Auto-generated method stub 16 String target = "http://172.16.100.24/web/ws/r/aws_ttsrv2"; 17 TIPTOPServiceGateWayStub stub = new TIPTOPServiceGateWayStub(target); 18 19 GetOrganizationListRequest_GetOrganizationListRequest getOrgRequest = new 20 GetOrganizationListRequest_GetOrganizationListRequest(); 21 String xml = "<Request> <Access> <Authentication user=\"tiptop\" password=\"\" /> <Connection application=\"PLM\" source=\"192.168.8.149\" /> <Organization name=\"DS1\" /> <Locale language=\"zh_cn\" /> </Access> <RequestContent> <Parameter> <Record> <Field name=\"zxy01\" value=\"tiptop\" /> </Record> </Parameter> </RequestContent> </Request>"; 22 getOrgRequest.setRequest(xml); 23 GetOrganizationListRequest getOrganizationList = new GetOrganizationListRequest(); 24 getOrganizationList.setGetOrganizationListRequest(getOrgRequest); 25 26 GetOrganizationListResponse result = stub.getOrganizationList(getOrganizationList); 27 System.out.println(result.getGetOrganizationListResponse().getResponse()); 28 29 30 } 31 32 }
这个问题解决了吗?是怎么解决的
没有解决,最后这个项目停了。
@jiansword: 你这个应该是和鼎捷的ERP做的对接吧,我也是
@niha: 是的。