interopB.wsdl.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?php
  2. header("Content-Type: text/xml");
  3. echo '<?xml version="1.0"?>';
  4. echo "\n";
  5. ?>
  6. <definitions name="InteropTest"
  7. targetNamespace="http://soapinterop.org/"
  8. xmlns="http://schemas.xmlsoap.org/wsdl/"
  9. xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  10. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  11. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  12. xmlns:tns="http://soapinterop.org/"
  13. xmlns:s="http://soapinterop.org/xsd"
  14. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  15. <types>
  16. <schema xmlns="http://www.w3.org/2001/XMLSchema"
  17. targetNamespace="http://soapinterop.org/xsd">
  18. <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
  19. <complexType name="ArrayOfstring">
  20. <complexContent>
  21. <restriction base="SOAP-ENC:Array">
  22. <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
  23. </restriction>
  24. </complexContent>
  25. </complexType>
  26. <complexType name="ArrayOfint">
  27. <complexContent>
  28. <restriction base="SOAP-ENC:Array">
  29. <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="int[]"/>
  30. </restriction>
  31. </complexContent>
  32. </complexType>
  33. <complexType name="ArrayOffloat">
  34. <complexContent>
  35. <restriction base="SOAP-ENC:Array">
  36. <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="float[]"/>
  37. </restriction>
  38. </complexContent>
  39. </complexType>
  40. <complexType name="ArrayOfSOAPStruct">
  41. <complexContent>
  42. <restriction base="SOAP-ENC:Array">
  43. <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="s:SOAPStruct[]"/>
  44. </restriction>
  45. </complexContent>
  46. </complexType>
  47. <complexType name="SOAPStruct">
  48. <all>
  49. <element name="varString" type="string" nillable="true"/>
  50. <element name="varInt" type="int" nillable="true"/>
  51. <element name="varFloat" type="float" nillable="true"/>
  52. </all>
  53. </complexType>
  54. <complexType name="SOAPStructStruct">
  55. <all>
  56. <element name="varString" type="string" nillable="true"/>
  57. <element name="varInt" type="int" nillable="true"/>
  58. <element name="varFloat" type="float" nillable="true"/>
  59. <element name="varStruct" type="s:SOAPStruct"/>
  60. </all>
  61. </complexType>
  62. <complexType name="SOAPArrayStruct">
  63. <all>
  64. <element name="varString" type="string" nillable="true"/>
  65. <element name="varInt" type="int" nillable="true"/>
  66. <element name="varFloat" type="float" nillable="true"/>
  67. <element name="varArray" type="s:ArrayOfstring"/>
  68. </all>
  69. </complexType>
  70. <complexType name="ArrayOfString2D">
  71. <complexContent>
  72. <restriction base="SOAP-ENC:Array">
  73. <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[,]"/>
  74. </restriction>
  75. </complexContent>
  76. </complexType>
  77. </schema>
  78. </types>
  79. <message name="echoStructAsSimpleTypesRequest">
  80. <part name="inputStruct" type="s:SOAPStruct"/>
  81. </message>
  82. <message name="echoStructAsSimpleTypesResponse">
  83. <part name="outputString" type="xsd:string"/>
  84. <part name="outputInteger" type="xsd:int"/>
  85. <part name="outputFloat" type="xsd:float"/>
  86. </message>
  87. <message name="echoSimpleTypesAsStructRequest">
  88. <part name="inputString" type="xsd:string"/>
  89. <part name="inputInteger" type="xsd:int"/>
  90. <part name="inputFloat" type="xsd:float"/>
  91. </message>
  92. <message name="echoSimpleTypesAsStructResponse">
  93. <part name="return" type="s:SOAPStruct"/>
  94. </message>
  95. <message name="echo2DStringArrayRequest">
  96. <part name="input2DStringArray" type="s:ArrayOfString2D"/>
  97. </message>
  98. <message name="echo2DStringArrayResponse">
  99. <part name="return" type="s:ArrayOfString2D"/>
  100. </message>
  101. <message name="echoNestedStructRequest">
  102. <part name="inputStruct" type="s:SOAPStructStruct"/>
  103. </message>
  104. <message name="echoNestedStructResponse">
  105. <part name="return" type="s:SOAPStructStruct"/>
  106. </message>
  107. <message name="echoNestedArrayRequest">
  108. <part name="inputStruct" type="s:SOAPArrayStruct"/>
  109. </message>
  110. <message name="echoNestedArrayResponse">
  111. <part name="return" type="s:SOAPArrayStruct"/>
  112. </message>
  113. <portType name="InteropTestPortTypeB">
  114. <operation name="echoStructAsSimpleTypes" parameterOrder="inputStruct outputString outputInteger outputFloat">
  115. <input message="tns:echoStructAsSimpleTypesRequest" name="echoStructAsSimpleTypes"/>
  116. <output message="tns:echoStructAsSimpleTypesResponse" name="echoStructAsSimpleTypesResponse"/>
  117. </operation>
  118. <operation name="echoSimpleTypesAsStruct" parameterOrder="inputString inputInteger inputFloat">
  119. <input message="tns:echoSimpleTypesAsStructRequest" name="echoSimpleTypesAsStruct"/>
  120. <output message="tns:echoSimpleTypesAsStructResponse" name="echoSimpleTypesAsStructResponse"/>
  121. </operation>
  122. <operation name="echo2DStringArray" parameterOrder="input2DStringArray">
  123. <input message="tns:echo2DStringArrayRequest" name="echo2DStringArray"/>
  124. <output message="tns:echo2DStringArrayResponse" name="echo2DStringArrayResponse"/>
  125. </operation>
  126. <operation name="echoNestedStruct" parameterOrder="inputStruct">
  127. <input message="tns:echoNestedStructRequest" name="echoNestedStruct"/>
  128. <output message="tns:echoNestedStructResponse" name="echoNestedStructResponse"/>
  129. </operation>
  130. <operation name="echoNestedArray" parameterOrder="inputStruct">
  131. <input message="tns:echoNestedArrayRequest" name="echoNestedArray"/>
  132. <output message="tns:echoNestedArrayResponse" name="echoNestedArrayResponse"/>
  133. </operation>
  134. </portType>
  135. <binding name="InteropTestSoapBindingB" type="tns:InteropTestPortTypeB">
  136. <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  137. <operation name="echoStructAsSimpleTypes">
  138. <soap:operation soapAction="http://soapinterop.org/"/>
  139. <input>
  140. <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  141. </input>
  142. <output>
  143. <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  144. </output>
  145. </operation>
  146. <operation name="echoSimpleTypesAsStruct">
  147. <soap:operation soapAction="http://soapinterop.org/"/>
  148. <input>
  149. <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  150. </input>
  151. <output>
  152. <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  153. </output>
  154. </operation>
  155. <operation name="echo2DStringArray">
  156. <soap:operation soapAction="http://soapinterop.org/"/>
  157. <input>
  158. <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  159. </input>
  160. <output>
  161. <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  162. </output>
  163. </operation>
  164. <operation name="echoNestedStruct">
  165. <soap:operation soapAction="http://soapinterop.org/"/>
  166. <input>
  167. <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  168. </input>
  169. <output>
  170. <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  171. </output>
  172. </operation>
  173. <operation name="echoNestedArray">
  174. <soap:operation soapAction="http://soapinterop.org/"/>
  175. <input>
  176. <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  177. </input>
  178. <output>
  179. <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  180. </output>
  181. </operation>
  182. </binding>
  183. <service name="interopLabB">
  184. <port name="interopTestPortB" binding="tns:InteropTestSoapBindingB">
  185. <soap:address location="<?php echo ((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']));?>/server_round2_groupB.php"/>
  186. </port>
  187. </service>
  188. </definitions>