首页 > php教程 > php手册 > 【原】原生态手写wsdl文件

【原】原生态手写wsdl文件

WBOY
发布: 2016-06-13 10:17:54
原创
1127 人浏览过





<span <span  1</span> <span <</span><span wsdl:definitions 
</span><span  2</span>             <span xmlns:soap</span><span ="http://schemas.xmlsoap.org/wsdl/soap/"</span>
<span  3</span> <span             xmlns:tm</span><span ="http://microsoft.com/wsdl/mime/textMatching/"</span>
<span  4</span> <span             xmlns:soapenc</span><span ="http://schemas.xmlsoap.org/soap/encoding/"</span>
<span  5</span> <span             xmlns:mime</span><span ="http://schemas.xmlsoap.org/wsdl/mime/"</span>
<span  6</span> <span             xmlns:tns</span><span ="http://tempuri.org/Test/"</span>
<span  7</span> <span             xmlns:s</span><span ="http://www.w3.org/2001/XMLSchema"</span>
<span  8</span> <span             xmlns:soap12</span><span ="http://schemas.xmlsoap.org/wsdl/soap12/"</span>
<span  9</span> <span             xmlns:http</span><span ="http://schemas.xmlsoap.org/wsdl/http/"</span>
<span 10</span> <span             targetNamespace</span><span ="http://tempuri.org/Test/"</span>
<span 11</span> <span             xmlns:wsdl</span><span ="http://schemas.xmlsoap.org/wsdl/"</span><span ></span>
<span 12</span> <span </</span><span wsdl:definitions</span><span ></span></span>
登录后复制



<span <span  1</span> <span <</span><span wsdl:types</span><span ></span>
<span  2</span>     <span <</span><span s:schema </span><span elementFormDefault</span><span ="qualified"</span> <span targetNamespace</span><span ="http://tempuri.org/Test/"</span><span ></span>
<span  3</span>         <span <</span><span s:complexType </span><span name</span><span ="DepartmentInfo"</span><span ></span>
<span  4</span>             <span <</span><span s:sequence</span><span ></span>
<span  5</span>                   <span <</span><span s:element </span><span minOccurs</span><span ="1"</span><span  maxOccurs</span><span ="1"</span><span  name</span><span ="index"</span><span  type</span><span ="s:int"</span> <span /></span>
<span  6</span>                   <span <</span><span s:element </span><span minOccurs</span><span ="1"</span><span  maxOccurs</span><span ="1"</span><span  name</span><span ="id"</span><span  type</span><span ="s:string"</span> <span /></span>
<span  7</span>                   <span <</span><span s:element </span><span minOccurs</span><span ="1"</span><span  maxOccurs</span><span ="1"</span><span  name</span><span ="name"</span><span  type</span><span ="s:string"</span> <span /></span>
<span  8</span>              <span </</span><span s:sequence</span><span ></span>
<span  9</span>          <span </</span><span s:complexType</span><span ></span>
<span 10</span>     <span </</span><span s:schema</span><span ></span>
<span 11</span> <span </</span><span wsdl:types</span><span ></span></span>
登录后复制

<span <span 1</span> <span <</span><span wsdl:message </span><span name</span><span ="addIn"</span><span ></span>
<span 2</span>     <span <</span><span wsdl:part </span><span name</span><span ="param1"</span><span  type</span><span ="s:int"</span><span /></span>
<span 3</span>     <span <</span><span wsdl:part </span><span name</span><span ="param2"</span><span  type</span><span ="s:int"</span><span /></span>
<span 4</span> <span </</span><span wsdl:message</span><span ></span>
<span 5</span> <span <</span><span wsdl:message </span><span name</span><span ="addOut"</span><span ></span>
<span 6</span>     <span <</span><span wsdl:part </span><span name</span><span ="Body"</span><span  type</span><span ="s:int"</span><span /></span>
<span 7</span> <span </</span><span wsdl:message</span><span ></span></span>
登录后复制

<span <span 1</span> <span <</span><span wsdl:portType </span><span name</span><span ="TestPortType"</span><span ></span>
<span 2</span>     <span <</span><span wsdl:operation </span><span name</span><span ="add"</span><span ></span>
<span 3</span>         <span <</span><span wsdl:input </span><span message</span><span ="tns:addIn"</span> <span /></span>
<span 4</span>         <span <</span><span wsdl:output </span><span message</span><span ="tns:addOut"</span> <span /></span>
<span 5</span>     <span </</span><span wsdl:operation</span><span ></span>
<span 6</span> <span </</span><span wsdl:portType</span><span ></span></span>
登录后复制


<span <span  1</span> <span <</span><span wsdl:binding </span><span name</span><span ="TestBinding"</span><span  type</span><span ="tns:TestPortType"</span><span ></span>
<span  2</span>     <span <</span><span soap:binding </span><span transport</span><span ="http://schemas.xmlsoap.org/soap/http"</span> <span /></span>
<span  3</span>     <span <</span><span wsdl:operation </span><span name</span><span ="add"</span><span ></span>
<span  4</span>         <span <</span><span soap:operation </span><span soapAction</span><span ="http://tempuri.org/Test/add"</span> <span style</span><span ="document"</span> <span /></span>
<span  5</span>              <span <</span><span wsdl:input</span><span ></span>
<span  6</span>                    <span <</span><span soap:body </span><span use</span><span ="literal"</span> <span /></span>
<span  7</span>              <span </</span><span wsdl:input</span><span ></span>
<span  8</span>              <span <</span><span wsdl:output</span><span ></span>
<span  9</span>                    <span <</span><span soap:body </span><span use</span><span ="literal"</span> <span /></span>
<span 10</span>              <span </</span><span wsdl:output</span><span ></span>
<span 11</span>     <span </</span><span wsdl:operation</span><span ></span>
<span 12</span> <span </</span><span wsdl:binding</span><span ></span></span>
登录后复制

<span <span 1</span> <span <</span><span wsdl:service </span><span name</span><span ="TestService"</span><span ></span>
<span 2</span>     <span <</span><span wsdl:port </span><span name</span><span ="TestServicePort"</span><span  binding</span><span ="tns:TestBinding"</span><span ></span>
<span 3</span>         <span <</span><span soap:address </span><span location</span><span ="http://192.168.1.24:80/WebService/TestService/TestService.php"</span> <span /></span>
<span 4</span>     <span </</span><span wsdl:port</span><span ></span>
<span 5</span>     <span <</span><span wsdl:port </span><span name</span><span ="TestServicePort12"</span><span  binding</span><span ="tns:TestBinding12"</span><span ></span>
<span 6</span>         <span <</span><span soap12:address </span><span location</span><span ="http://192.168.1.24:80/WebService/TestService/TestService.php"</span> <span /></span>
<span 7</span>     <span </</span><span wsdl:port</span><span ></span>
<span 8</span> <span </</span><span wsdl:service</span><span ></span></span>
登录后复制

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门推荐
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板