Foxtable(狐表)用户栏目专家坐堂 → [求助]关于TB如何调用webservice接口


  共有3807人关注过本帖树形打印复制链接

主题:[求助]关于TB如何调用webservice接口

帅哥哟,离线,有人找我吗?
xietan417
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:三尾狐 帖子:721 积分:6391 威望:0 精华:0 注册:2011/6/26 11:45:00
[求助]关于TB如何调用webservice接口  发帖心情 Post By:2015/2/14 14:55:00 [只看该作者]

<!--[if !supportLists]-->1.   <!--[endif]-->接口设计

<!--[if !supportLists]-->1.1   <!--[endif]-->企业OAIMS的接口

<!--[if !supportLists]-->1.1.1 <!--[endif]-->接口描述

IMS提供soap服务,企业应用按照接口定义发送soap请求,根据返回值确定认证是否成功(0-成功;非零-失败)。

<!--[if !supportLists]-->1.1.2 <!--[endif]-->接口定义

接口使用soap通信协议进行通信。

以下wsdl文件可通过访问:http://emos.263em.com:8080/emos/services/PushService?wsdl获得。

 

1.WSDL描述文件

<?xml version="1.0" encoding="UTF-8" ?>

- <wsdl:definitions targetNamespace="http://211.150.66.50:8080/emos/services/PushService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://211.150.66.50:8080/emos/services/PushService" xmlns:intf="http://211.150.66.50:8080/emos/services/PushService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="ns:reqinfo" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <!--

WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)

  -->

- <wsdl:types>

- <schema targetNamespace="ns:reqinfo" xmlns="http://www.w3.org/2001/XMLSchema">

  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />

- <complexType name="reqinfo">

- <sequence>

  <element name="data" nillable="true" type="xsd:string" />

  <element name="domain" nillable="true" type="xsd:string" />

  <element name="md5" nillable="true" type="xsd:string" />

  <element name="msgType" type="xsd:int" />

  <element name="oaname" nillable="true" type="xsd:string" />

  <element name="oaurl" nillable="true" type="xsd:string" />

  <element name="offline" type="xsd:boolean" />

  <element name="sender" nillable="true" type="xsd:string" />

  <element name="title" nillable="true" type="xsd:string" />

  <element name="userlist" nillable="true" type="xsd:string" />

  <element name="username" nillable="true" type="xsd:string" />

  </sequence>

  </complexType>

  </schema>

  </wsdl:types>

- <wsdl:message name="pushResponse">

  <wsdl:part name="pushReturn" type="xsd:int" />

  </wsdl:message>

- <wsdl:message name="pushRequest">

  <wsdl:part name="ri" type="tns1:reqinfo" />

  </wsdl:message>

- <wsdl:portType name="PushService">

- <wsdl:operation name="push" parameterOrder="ri">

  <wsdl:input message="impl:pushRequest" name="pushRequest" />

  <wsdl:output message="impl:pushResponse" name="pushResponse" />

  </wsdl:operation>

  </wsdl:portType>

- <wsdl:binding name="PushServiceSoapBinding" type="impl:PushService">

  <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />

- <wsdl:operation name="push">

  <wsdlsoap:operation soapAction="" />

- <wsdl:input name="pushRequest">

  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.emms.net263.com" use="encoded" />

  </wsdl:input>

- <wsdl:output name="pushResponse">

  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://211.150.66.50:8080/emos/services/PushService" use="encoded" />

  </wsdl:output>

  </wsdl:operation>

  </wsdl:binding>

- <wsdl:service name="PushServiceService">

- <wsdl:port binding="impl:PushServiceSoapBinding" name="PushService">

  <wsdlsoap:address location="http://emos.263em.com:8080/emos/services/PushService" />

  </wsdl:port>

  </wsdl:service>

  </wsdl:definitions>

 

 

请使用以上wsdl参数生成客户端,然后将发送的数据填写完成后以UTF-8编码后递交给webservice服务器即可

附录A.参数及其说明

字段名称

属性

说明

md5

md5

认证信息

md5=在管理平台中输入或获取密码然后使用MD5方式加密后的字符串

域名

domain

推送消息的域名

消息内容

data

消息内容

主题

title

显示消息的主题

发送人邮箱

sender

消息发送人的邮箱

发送人姓名

username

发送人姓名

企业OA系统名称

oaname

企业oa的名称

离线支持

offline

知否支持保存离线,默认不保存离线

true:如果接收人不在线,消息存离线;

false:如果接收人不在线,消息不存离线。

OA系统的链接地址

oaurl

点击消息后跳转对应的OA系统的链接地址

收信人列表

userlist

消息收件人列表,每个邮箱以“,”分隔

注:本系统只支持给本域用户推送消息,所以收件人所在的域必须和“域名”字段相同。

消息类型

msgType

0:不可跳转消息,1:可跳转消息,默认为不可跳转消息

    


 回到顶部
帅哥哟,离线,有人找我吗?
xietan417
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:三尾狐 帖子:721 积分:6391 威望:0 精华:0 注册:2011/6/26 11:45:00
  发帖心情 Post By:2015/2/14 14:56:00 [只看该作者]

看了xdongx 的贴还是不太明白,有人研究过呢?

 回到顶部
帅哥哟,离线,有人找我吗?
Bin
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:35433 积分:178524 威望:0 精华:3 注册:2013/3/30 16:36:00
  发帖心情 Post By:2015/2/14 14:57:00 [只看该作者]


 回到顶部
帅哥哟,离线,有人找我吗?
Bin
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:35433 积分:178524 威望:0 精华:3 注册:2013/3/30 16:36:00
  发帖心情 Post By:2015/2/14 14:58:00 [只看该作者]


 回到顶部
帅哥哟,离线,有人找我吗?
xietan417
  5楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:三尾狐 帖子:721 积分:6391 威望:0 精华:0 注册:2011/6/26 11:45:00
  发帖心情 Post By:2015/2/14 15:12:00 [只看该作者]

这两个贴都有看!就是不太明白上面的wsdl参数怎么用!

 回到顶部
帅哥哟,离线,有人找我吗?
Bin
  6楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:35433 积分:178524 威望:0 精华:3 注册:2013/3/30 16:36:00
  发帖心情 Post By:2015/2/14 15:15:00 [只看该作者]

照着做,自己动手试试,实践出真知

 回到顶部