Rumah  >  Artikel  >  pembangunan bahagian belakang  >  【原】原生态手写wsdl文件_PHP教程

【原】原生态手写wsdl文件_PHP教程

WBOY
WBOYasal
2016-07-13 17:17:27781semak imbas





<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>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/626582.htmlTechArticle...
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn