首頁 > php教程 > php手册 > 主體

【原】原生态手写wsdl文件

WBOY
發布: 2016-06-13 10:17:54
原創
1101 人瀏覽過





<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
熱門推薦
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板