Skip to content

Instantly share code, notes, and snippets.

@stompweb
Created September 20, 2017 09:18
Show Gist options
  • Save stompweb/f43ab9e6753a83745ca47b14c3cd52dc to your computer and use it in GitHub Desktop.
Save stompweb/f43ab9e6753a83745ca47b14c3cd52dc to your computer and use it in GitHub Desktop.
api-request.php
<?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