Jump to content

help with introduction to SOAP and php


dflow

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.