整合xfire与struts2 (三)

   

. 关于使用xfire 客户端调用其他service

我用的Myclipse 6.0,集成了方便生成xfire client的功能,方便地生成代理类:具体为:new àothersàWeb Services 下面的Web Service Client然后按提示一步一步生成即可。

然后就是调用代理类的代码:

MAMCatalogServiceClient service = new MAMCatalogServiceClient();

MAMCatalogServiceSoap goIpclinet = service.getMAMCatalogServiceSoap();

org.tempuri.AuthHeader tt = null;

org.tempuri.WsResult ws = goIpclinet.mamGetCatalogInfo("cmVideoProgram", "cmVideoEntity", 77, "",tt);

return ws;

posted @ 2008-06-17 15:19  MichaelChen  阅读(479)  评论(0编辑  收藏  举报