array.esd
来自「ESOAP是一款专注于嵌入式web service开发的工具 压缩包里提供了基」· ESD 代码 · 共 101 行
ESD
101 行
<?xml version="1.0" encoding="UTF-8"?>
<!--
A simple example to show how to use the high level code generator for eSoap.
This particular example shows how to use Arrays with eSoap.
The first set of namespaces are the "same" for all projects.
The attributes that you *must* modify for your service are:
+ name: name for your service.
+ targetNamspace namespace for this service.
+ tupeNamspace namespace for the user defined types for this service.
When the service defines no types, make this value empty.
-->
<Service xmlns = "http://esd.esoapcg.com/esd/"
xmlns:typens = "http://schemas.esoap.com/types/"
xmlns:cfg = "http://schemas.esoap.com/config/"
xmlns:esd = "http://esd.esoapcg.com/esd/"
xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/"
name = "echo"
targetNamespace = "http://tempuri.com/"
typeNamespace = "" >
<!--
An "AType" element defines each array defined by this service.
+ name: name of the Array.
+ builtin: whether this type is an eSoap builtin type.
+ type: Qname represeting the type + []
+ stype: for "short" type ( remove [] ).
NOTE: The "AType" elements are not used by the code generator,
and they are needed only if a WSDL for the service needs
to be created.
-->
<esd:AType name="ArrayOfint" builtin="true" type="xsd:int[]" stype="xsd:int"/>
<!--
The "Interface" element defines the interface of your service.
The attributes that you *must* modify for this interface
+ name: name of the interface.
+ soapAction SOAPAction for all methods of this interface.
+ namspace namespace for the interface. It is recommend to make this
the same as "targetNamespace" attribute of the "Service"
element.
+ location end point of your service. Optional.
-->
<esd:Interface name = "Echo"
soapAction = "http://tempuri.com/"
namespace = "http://tempuri.com/"
location = "http://localhost:8080/rpcrouter">
<!--
The "Method" element defines a method for this interface.
The attributes that you *must* modify for this interface
+ name: name of the method.
-->
<esd:Method name="echo">
<!--
The "InParam" element defines the list of input parameters.
The attributes that you *must* modify for this interface
+ name: name of the parameter list. Not used directly
by the code generator. It is used when exporting
the WSDL for this interface.
-->
<esd:InParam name="RequestEcho">
<esd:item name="i" type="xsd:int" builtin="true" array="true" inout="false"/>
</esd:InParam>
<!--
The "OutParam" element defines the list of output parameters.
The attributes that you *must* modify for this interface
+ name: name of the parameter list. Not used directly
by the code generator. It is used when exporting
the WSDL for this interface.
-->
<esd:OutParam name="ResponseEcho">
<esd:item name="return" type="xsd:int" builtin="true" array="true" inout="false"/>
</esd:OutParam>
</esd:Method>
</esd:Interface>
</Service>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?