前言
EBMIDE
——服务脚本
IOS
前篇文章介绍了服务脚本的定义,下面介绍如何进行服务的调用。
服务已经定义了所需要的输入参数
in
和输出参数
out
,服务调用则需要向服务传输正确的输入数据,服务调用完成后以相同的数据格式返回输出。
服务调用数据包的定义
<!--
服务调用数据包
-->
<
invoke
service
=
"
ServiceName
"
>
<!--
服务调用输入
-->
<
in
>
<!--
字符串:
type
缺省时默认值是
string
-->
<
set
name
=
""
type
=
"
string
"
>
XXXX
</
set
>
<!--
布尔值
-->
<
set
name
=
""
type
=
"
bool
"
>
true
</
set
>
<!--
整数
-->
<
set
name
=
""
type
=
"
int
"
>
0
</
set
>
<!--
双精度数字
-->
<
set
name
=
""
type
=
"
double
"
>
0.0
</
set
>
<!--
日期
-->
<
set
name
=
""
type
=
"
datetime
"
>
yyyy-MM-dd HH:mm:ss
</
set
>
<!--
XML
-->
<
set
name
=
""
type
=
"
xml
"
>
<!--
自定义
xml
节点
-->
<
xml
></
xml
>
</
set
>
<!--
Fixcel
填报清单
-->
<
set
name
=
""
type
=
"
manifest
"
>
<
manifest
>
<!--
n
:名称,
v
:值,
i
:索引
-->
<
item
n
=
""
v
=
""
i
=
""
/>
<
item
n
=
""
v
=
""
i
=
""
/>
<
item
n
=
""
v
=
""
i
=
""
/>
</
manifest
>
</
set
>
<!--
数据实体
-->
<
set
name
=
""
type
=
"
entity
"
>
<
entity
type
=
""
>
<
set
name
=
""
type
=
"
string
"
>
XXXX
</
set
>
<
set
name
=
""
type
=
"
int
"
>
XXXX
</
set
>
</
entity
>
</
set
>
<!--
数组:内部可以嵌套多种类型
-->
<
set
name
=
""
type
=
"
array
"
>
<
set
type
=
"
string
"
>
XXXX
</
set
>
<
set
type
=
"
string
"
>
XXXX
</
set
>
<
set
type
=
"
string
"
>
XXXX
</
set
>
</
set
>
</
in
>
<!--
服务调用输出
-->
<
out
></
out
>
</
invoke
>
相关文章
EBM专栏
EBMIDE——服务调用