首页 新闻 会员 周边 捐助

axis2生成Client执行时报错“No operation found”

-1
悬赏园豆:200 [已关闭问题] 关闭于 2014-03-25 10:36

大家好,我最近在做与另一个系统对接,遇到一个棘手问题,请大家帮忙:

我这边用的是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的主页 jiansword | 菜鸟二级 | 园豆:204
提问于:2014-02-28 11:42
< >
分享
所有回答(1)
0

这个问题解决了吗?是怎么解决的

niha | 园豆:202 (菜鸟二级) | 2015-12-20 16:57

没有解决,最后这个项目停了。

支持(0) 反对(0) jiansword | 园豆:204 (菜鸟二级) | 2015-12-22 14:52

@jiansword: 你这个应该是和鼎捷的ERP做的对接吧,我也是

支持(0) 反对(0) niha | 园豆:202 (菜鸟二级) | 2015-12-22 20:49

@niha: 是的。

支持(0) 反对(0) jiansword | 园豆:204 (菜鸟二级) | 2015-12-24 08:18
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册