Created
September 20, 2017 09:18
-
-
Save stompweb/f43ab9e6753a83745ca47b14c3cd52dc to your computer and use it in GitHub Desktop.
api-request.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$string = '<?xml version="1.0"?> | |
<XMLRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<Description>RESOURCELISTBYVIEWBYDATELOAD</Description> <Item xsi:type="XMLResourceByViewRangeRequest"> | |
<ResStartDate>15/09/2017</ResStartDate><ResEndDate>15/10/2017</ResEndDate> <ResCode /> | |
<ResView>Events</ResView> <EventCode /><ShowProductMap>false</ShowProductMap> | |
</Item></XMLRequest>'; | |
$client = new SoapClient( 'http://10.1.0.16/GDXMLWebServiceTEST/GDXMLWebService.asmx?wsdl' ); | |
$client->__setLocation( 'http://10.1.0.16/GDXMLWebServiceTEST/GDXMLWebService.asmx' ); | |
$params = array( | |
'value' => $string | |
); | |
$response = $client->ReceiveData( $params ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment