Jump to content

webservice with nusoap - function


jogisarge

Recommended Posts

Hello !!

 

i try to create a webservice with nusoap.

$soap = new soap_server();
$soap->configureWSDL('TEST', 'http://www.test.de/');
$soap->wsdl->schemaTargetNamespace = 'http://soapinterop.org/xsd/';
  
$soap->register(
      'strtest',
      array(
        'p1' => 'xsd:string',
        'p2' => 'xsd:string'
      ),
      array(
        'erg' => 'xsd:string'
      ),
      'http://soapinterop.org/'
    );
    $soap->service(isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '');
    function strtest($p1,$p2)
    {
        return "BLA ".$p1." BLA . ".$p2." ";
    }

 

now i try to create a function that returns an array !??

i dont know how to make the register-code ?

I need it, because i use the wsdl-file that nusoap creates for me.

 

bye jogi

Link to comment
https://forums.phpfreaks.com/topic/119375-webservice-with-nusoap-function/
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.