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

【原】原生态手写wsdl文件

WBOY
WBOYOriginal
2016-06-13 10:17:541130Durchsuche





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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:Thinkphp过滤js失效Nächster Artikel:PHP生成二维码库phpqrcode