dflow Posted December 21, 2008 Share Posted December 21, 2008 ok i created a client: <?php function myWebServiceFunction($inputValue) { /* ... */ } require 'includes/lib/nusoap.php'; $soap = new soap_server(); $soap->configureWSDL('NuSOAPService', 'http://remoteite.asmx?WSDL'); $server->wsdl->schemaTargetNamespace = 'http://soapinterop.org/xsd/'; $soap->register('myWebServiceMethod', array('inputValue' => 'xsd:string'), array('outputValue' => 'xsd:string'), 'http://soapinterop.org/'); // echo $soap->request; // shows XML of SOAP request // echo $soap->response; //shows XML of SOAP response $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : ''; $soap->service($HTTP_RAW_POST_DATA); ?> now what i dont get is how to execute the request and response?? lets say i want to GET the products list from the remote server Link to comment https://forums.phpfreaks.com/topic/137930-help-with-introduction-to-soap-and-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.