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

【原】原生态手写wsdl文件

WBOY
Libérer: 2016-06-13 10:17:54
original
1127 Les gens l'ont consulté





<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>
Copier après la connexion



<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>
Copier après la connexion

<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>
Copier après la connexion

<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>
Copier après la connexion


<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>
Copier après la connexion

<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>
Copier après la connexion

Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Recommandations populaires
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal