| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483 |
- <?php
- // https://biuro.biall-net.pl/dev-pl/se-master/wfs-data.php/wsdl
- // https://biuro.biall-net.pl/dev-pl/se-master/wfs-data.php/wsdl/wfs-http-bindings.wsdl
- /*
- Types - a container for data type definitions using some type system (such as XSD).
- Message - an abstract, typed definition of the data being communicated.
- Operation - an abstract description of an action supported by the service.
- Port Type -an abstract set of operations supported by one or more endpoints.
- Binding - a concrete protocol and data format specification for a particular port type.
- Port - a single endpoint defined as a combination of a binding and a network address.
- Service - a collection of related endpoints.
- */
- class Api_WsdlServer extends Api_WfsServerBase {
- public function run($request) {
- $DBG = false;
- IF($DBG){echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;text-align:left;">$request (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($request);echo'</pre>';}
- // /wfs-data.php/wsdl : $request->segments = ['wsdl']
- // /wfs-data.php/wsdl/wfs-http-bindings.wsdl : $request->segments = ['wsdl', 'wfs-http-bindings.wsdl']
- if (empty($request->segments)) throw new Exception("Bad request", 400);
- $countSegments = count($request->segments);
- if ('wsdl' != $request->segments[0]) throw new Exception("Bad request", 400);
- if (1 == $countSegments) {
- if (empty($request->query)) return $this->wsdlAction();
- else throw new Exception("TODO: wsdl query: [".json_encode($request->query)."]");
- }
- if (2 == $countSegments && 'wfs-http-bindings.wsdl' == $request->segments[1]) return $this->wsdlHttpBindingsWsdl();
- // if (2 == $countSegments && 'wfs-responses.wsdl' == $request->segments[1]) return $this->sendFile('wfs-responses.wsdl');
- // if (2 == $countSegments && 'wfs-util.xsd' == $request->segments[1]) return $this->sendFile('wfs-util.xsd');
- // if (2 == $countSegments && 'wfs-xml-interfaces.wsdl' == $request->segments[1]) return $this->sendFile('wfs-xml-interfaces.wsdl');
- // if (2 == $countSegments && 'wfs.xsd' == $request->segments[1]) return $this->sendFile('wfs.xsd');
- throw new Exception("TODO: \$segments({$countSegments}): [".implode(", ", $request->segments)."]");
- }
- public function sendFile($file) {
- header('Content-type: application/xml; charset="utf-8"');
- echo file_get_contents(APP_PATH_SCHEMA . '/wsdl/' . $file);
- }
- public function wsdlXmlInterfacesAction() {
- $wsdlUri = Request::getHostUri() . "/wfs-data.php?wsdl";
- $wsdlServiceName = "WFS-" . Request::getHostUri();// WFS-www.myservice.com
- $serviceUrlBase = Request::getPathUri() . "wfs-data.php/wsdl";
- $staticWsdlUrlBase = Request::getPathUri() . "schema/wsdl";
- $soapBinding = false;
- $httpBinding = true;
- $kvpBinding = false;
- header('Content-type: application/xml; charset="utf-8"');
- echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
- ?>
- <wsdl:definitions
- targetNamespace="http://www.opengis.net/wfs/requests/2.0"
- xmlns:wfs="http://www.opengis.net/wfs/2.0"
- xmlns:ows="http://www.opengis.net/ows/1.1"
- xmlns:wfs-req="http://www.opengis.net/wfs/requests/2.0"
- xmlns:wfs-resp="http://www.opengis.net/wfs/responses/2.0"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:documentation xmlns:dc="http://purl.org/dc/elements/1.1/">
- <dc:identifier>urn:opengis:spec:wfs:wsdl-1.1:interfaces:2.0.2</dc:identifier>
- <?php if(0) : ?><dc:date>2008-08-31</dc:date><?php endif; ?>
- <dc:description>
- This is the the normative abstract service interface definition
- for the OpenGIS Web Feature Service, v2.0.2. The WSDL 1.1 syntax is
- used to describe the interface signatures and message structures.
- </dc:description>
- </wsdl:documentation>
- <wsdl:import namespace="http://www.opengis.net/wfs/responses/2.0" location="<?= $staticWsdlUrlBase; ?>/wfs-responses.wsdl"/>
- <wsdl:types>
- <wsdl:documentation>
- Convenience schema that defines all common WFS message elements.
- </wsdl:documentation>
- <xsd:schema targetNamespace="http://www.opengis.net/wfs/2.0"
- xmlns:wfs="http://www.opengis.net/wfs/2.0"
- xmlns:gml="http://www.opengis.net/gml/3.2"
- xmlns:ogc="http://www.opengis.net/ogc/1.1"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- elementFormDefault="qualified" version="1.1.0">
- <xsd:include schemaLocation="<?= $staticWsdlUrlBase; ?>/wfs.xsd"/>
- </xsd:schema>
- </wsdl:types>
- <wsdl:message name="GetCapabilitiesRequest">
- <wsdl:part name="Body" element="wfs:GetCapabilities"/>
- </wsdl:message>
- <wsdl:message name="DescribeFeatureTypeRequest">
- <wsdl:part name="Body" element="wfs:DescribeFeatureType"/>
- </wsdl:message>
- <wsdl:message name="GetPropertyValueRequest">
- <wsdl:part name="Body" element="wfs:GetPropertyValue"/>
- </wsdl:message>
- <wsdl:message name="GetFeatureRequest">
- <wsdl:part name="Body" element="wfs:GetFeature"/>
- </wsdl:message>
- <wsdl:message name="GetFeatureWithLockRequest">
- <wsdl:part name="Body" element="wfs:GetFeatureWithLock"/>
- </wsdl:message>
- <wsdl:message name="LockFeatureRequest">
- <wsdl:part name="Body" element="wfs:LockFeature"/>
- </wsdl:message>
- <wsdl:message name="TransactionRequest">
- <wsdl:part name="Body" element="wfs:Transaction"/>
- </wsdl:message>
- <wsdl:message name="ListStoredQueriesRequest">
- <wsdl:part name="Body" element="wfs:ListStoredQueries"/>
- </wsdl:message>
- <wsdl:message name="DescribeStoredQueriesRequest">
- <wsdl:part name="Body" element="wfs:DescribeStoredQueries"/>
- </wsdl:message>
- <wsdl:message name="CreateStoredQueryRequest">
- <wsdl:part name="Body" element="wfs:CreateStoredQuery"/>
- </wsdl:message>
- <wsdl:message name="DropStoredQueryRequest">
- <wsdl:part name="Body" element="wfs:DropStoredQuery"/>
- </wsdl:message>
- <wsdl:portType name="wfs">
- <wsdl:operation name="wfs.getCapabilities">
- <wsdl:input message="wfs-req:GetCapabilitiesRequest"/>
- <wsdl:output message="wfs-resp:GetCapabilitiesResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- <wsdl:operation name="wfs.describeFeatureType">
- <wsdl:input message="wfs-req:DescribeFeatureTypeRequest"/>
- <wsdl:output message="wfs-resp:DescribeFeatureTypeResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- <wsdl:operation name="wfs.getPropertyValue">
- <wsdl:input message="wfs-req:GetPropertyValueRequest"/>
- <wsdl:output message="wfs-resp:GetPropertyValueResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- <wsdl:operation name="wfs.getFeature">
- <wsdl:input message="wfs-req:GetFeatureRequest"/>
- <wsdl:output message="wfs-resp:GetFeatureResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- <wsdl:operation name="wfs.getFeatureWithLock">
- <wsdl:input message="wfs-req:GetFeatureWithLockRequest"/>
- <wsdl:output message="wfs-resp:GetFeatureWithLockResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- <wsdl:operation name="wfs.lockFeature">
- <wsdl:input message="wfs-req:LockFeatureRequest"/>
- <wsdl:output message="wfs-resp:LockFeatureResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- <wsdl:operation name="wfs.transaction">
- <wsdl:input message="wfs-req:TransactionRequest"/>
- <wsdl:output message="wfs-resp:TransactionResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- <wsdl:operation name="wfs.listStoredQueries">
- <wsdl:input message="wfs-req:ListStoredQueriesRequest"/>
- <wsdl:output message="wfs-resp:ListStoredQueriesResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- <wsdl:operation name="wfs.describeStoredQueries">
- <wsdl:input message="wfs-req:DescribeStoredQueriesRequest"/>
- <wsdl:output message="wfs-resp:DescribeStoredQueriesResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- <wsdl:operation name="wfs.createStoredQuery">
- <wsdl:input message="wfs-req:CreateStoredQueryRequest"/>
- <wsdl:output message="wfs-resp:CreateStoredQueryResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- <wsdl:operation name="wfs.dropStoredQuery">
- <wsdl:input message="wfs-req:DropStoredQueryRequest"/>
- <wsdl:output message="wfs-resp:DropStoredQueryResponse"/>
- <wsdl:fault name="ServiceExceptionReport" message="wfs-resp:ServiceExceptionReport"/>
- </wsdl:operation>
- </wsdl:portType>
- </wsdl:definitions>
- <?php
- }
- public function wsdlHttpBindingsWsdl() {
- $wsdlUri = Request::getHostUri() . "/wfs-data.php?wsdl";
- $wsdlServiceName = "WFS-" . Request::getHostUri();// WFS-www.myservice.com
- $serviceUrlBase = Request::getPathUri() . "wfs-data.php/wsdl";
- $staticWsdlUrlBase = Request::getPathUri() . "schema/wsdl";
- $wfsServerUriBase = Request::getPathUri() . "wfs-data.php?version=1.0.0&service=WFS";
- echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
- ?>
- <wsdl:definitions
- targetNamespace="http://www.opengis.net/wfs/http/2.0"
- xmlns:wfs-req="http://www.opengis.net/wfs/requests/2.0"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/">
- <wsdl:documentation xmlns:dc="http://purl.org/dc/elements/1.1/">
- <dc:description>
- HTTP/1.1 protocol bindings for WFS interfaces.
- </dc:description>
- <?php if(0) : ?><dc:date>2008-08-31</dc:date><?php endif; ?>
- </wsdl:documentation>
- <wsdl:import namespace="http://www.opengis.net/wfs/requests/2.0" location="<?= $staticWsdlUrlBase; ?>/wfs-xml-interfaces.wsdl"/>
- <wsdl:binding name="wfs-POST" type="wfs-req:wfs">
- <wsdl:documentation>
- wfs interface bound to the HTTP/1.1 POST method.
- </wsdl:documentation>
- <http:binding verb="POST"/>
- <wsdl:operation name="wfs.getCapabilities">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=getCapabilities"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="wfs.describeFeatureType">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=DescribeFeatureType"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="wfs.getPropertyValue">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=getPropertyValue"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="wfs.getFeature">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=getFeature"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="wfs.getFeatureWithLock">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=getFeatureWithLock"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="wfs.lockFeature">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=lockFeature"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="wfs.transaction">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=transaction"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="wfs.listStoredQueries">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=listStoredQueries"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="wfs.describeStoredQueries">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=describeStoredQueries"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="wfs.createStoredQuery">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=createStoredQuery"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="wfs.dropStoredQuery">
- <http:operation location="<?= $wfsServerUriBase; ?>&REQUEST=dropStoredQuery"/>
- <wsdl:input>
- <mime:mimeXml/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml/>
- </wsdl:output>
- <wsdl:fault name="ServiceExceptionReport">
- <soap:fault use="literal" name="ServiceExceptionReport"/>
- </wsdl:fault>
- </wsdl:operation>
- </wsdl:binding>
- </wsdl:definitions>
- <?php
- }
- public function wsdlAction() {// wsdl endpoints(ports)
- $wsdlUri = Request::getHostUri() . "/wfs-data.php?wsdl";
- $wsdlServiceName = "WFS-" . Request::getHost();// WFS-www.myservice.com
- $serviceUrlBase = Request::getPathUri() . "wfs-data.php/wsdl";
- $staticWsdlUrlBase = Request::getPathUri() . "schema/wsdl";
- $soapBinding = false;
- $httpBinding = true;
- $kvpBinding = false;
- echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
- ?>
- <wsdl:definitions
- targetNamespace="http://www.myservice.com/wfs/2.0"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
- xmlns:wfs-http="http://www.opengis.net/wfs/http/2.0"
- xmlns:wfs-http-kvp="http://www.opengis.net/wfs/http/kvp/2.0"
- xmlns:wfs-soap="http://www.opengis.net/wfs/soap/2.0"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
- <?php if (false) : ?>
- <wsdl:documentation xmlns:dc="http://purl.org/dc/elements/1.1/">
- <dc:date>2008-08-31</dc:date>
- <dc:description>
- This WSDL document defines the service-specific properties
- of a MyService WFS implementation; it specifies available
- endpoints and alternative bindings.
- </dc:description>
- </wsdl:documentation>
- <?php endif; ?>
- <?php if ($soapBinding) : ?>
- <wsdl:import namespace="http://www.opengis.net/wfs/soap/2.0" location="<?= $serviceUrlBase; ?>/wfs-soap-bindings.wsdl"/>
- <?php endif; ?>
- <?php if ($httpBinding) : ?>
- <wsdl:import namespace="http://www.opengis.net/wfs/http/2.0" location="<?= $serviceUrlBase; ?>/wfs-http-bindings.wsdl"/>
- <?php endif; ?>
- <?php if ($kvpBinding) : ?>
- <wsdl:import namespace="http://www.opengis.net/wfs/http/kvp/2.0" location="<?= $serviceUrlBase; ?>/wfs-kvp-bindings.wsdl"/>
- <?php endif; ?>
- <wsdl:service name="<?= $wsdlServiceName; ?>">
- <?php if (false) : ?>
- <wsdl:documentation>
- A WFS-2.0 implementation. Includes alternative SOAP bindings
- for the WFS interfaces.
- </wsdl:documentation>
- <?php endif; ?>
- <?php if ($soapBinding) : ?>
- <wsdl:port name="wfs-SOAP-Port" binding="wfs-soap:wfs-SOAP">
- <soap:address location="<?= $serviceUrlBase; ?>/wfs-soap/services/WFSSOAP"/>
- </wsdl:port>
- <?php endif; ?>
- <?php if ($httpBinding) : ?>
- <wsdl:port name="wfs-POST-Port" binding="wfs-http:wfs-POST">
- <http:address location="<?= $serviceUrlBase; ?>"/>
- </wsdl:port>
- <?php endif; ?>
- <?php if ($kvpBinding) : ?>
- <wsdl:port name="wfs-GET-Port" binding="wfs-http-kvp:wfs-GET">
- <http:address location="<?= $serviceUrlBase; ?>"/>
- </wsdl:port>
- <?php endif; ?>
- </wsdl:service>
- </wsdl:definitions>
- <?php
- exit;
- // example from oxygen site
- ?>
- <description xmlns="http://www.w3.org/ns/wsdl"
- xmlns:tns="http://www.tmsws.com/wsdl20sample"
- xmlns:whttp="http://schemas.xmlsoap.org/wsdl/http/"
- xmlns:wsoap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:gml="http://www.opengis.net/gml"
- targetNamespace="<?= $wsdlUri; ?>">
- <documentation>
- Test WSDL 2.0
- </documentation>
- <types>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns="http://www.tmsws.com/wsdl20sample"
- targetNamespace="<?= $wsdlUri; ?>">
- <xs:element name="request">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="ID" type="xs:integer"/>
- <xs:element name="NAME" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="response">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="ID" type="xs:integer"/>
- <xs:element name="DATA" type="gml:featureMember"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:schema>
- </types>
- <!-- Abstract interfaces -->
- <interface name="Interface1">
- <fault name="Error1" element="tns:response"/>
- <operation name="Get" pattern="http://www.w3.org/ns/wsdl/in-out">
- <input messageLabel="In" element="tns:request"/>
- <output messageLabel="Out" element="tns:response"/>
- </operation>
- </interface>
- <!-- Concrete Binding Over HTTP -->
- <binding name="HttpBinding" interface="tns:Interface1"
- type="http://www.w3.org/ns/wsdl/http">
- <operation ref="tns:Get" whttp:method="GET"/>
- </binding>
- <!-- Concrete Binding with SOAP-->
- <binding name="SoapBinding" interface="tns:Interface1"
- type="http://www.w3.org/ns/wsdl/soap"
- wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/"
- wsoap:mepDefault="http://www.w3.org/2003/05/soap/mep/request-response">
- <operation ref="tns:Get" />
- </binding>
- <!-- Web Service offering endpoints for both bindings-->
- <service name="Service1" interface="tns:Interface1">
- <endpoint name="HttpEndpoint"
- binding="tns:HttpBinding"
- address="http://www.example.com/rest/"/>
- <endpoint name="SoapEndpoint"
- binding="tns:SoapBinding"
- address="http://www.example.com/soap/"/>
- </service>
- </description>
- <?php
- exit;
- }
- }
|