Reference Variables with nuSoap Server

Help
2009-07-13
2013-06-06
  • Rainer Budde

    Rainer Budde - 2009-07-13

    Hello,

    I´ve a nuSoap Webservice with this simple function:

    function hello(&$value) {

    $value = $value . " TEST";

    return true
    }

    How do I "register" these method? I tried:

        $soap_server->register("TCPHello",
                               array("value" => "xsd:string"),        // input parameters
                               array("return" => "xsd:boolean"),                                  // output parameters
                               "urn:TC",                                                  // namespace
                               "urn:TC#TCPHello",                             // soapaction
                               "rpc",                                                                // style
                               "encoded",                                                            // use
                               "TEST"                                        // documentation   
        );

    But this doesn´t work correctly. In Delpi 6 the WDSL was imported correctly but If I call my Web-Method I get an error.

    Kind regards

    Rainer
       

     
    • Rainer Budde

      Rainer Budde - 2009-07-14

      Hi,

      ok after 3 days I solved the problem. Here my code:

      $soap_server->register("TCPHello",
      array("value" => "xsd:string"), // input parameters
      array("return" => "xsd:boolean", "value" => "xsd:string"), // output parameters
      "urn:TC", // namespace
      "urn:TC#TCPHello", // soapaction
      "rpc", // style
      "encoded", // use
      "TEST" // documentation 
      );

      function hello($value) {

      $value = $value . " TEST";
      $function_result = true;

      $output_variables = array("return" => $function_bytes, "value " => $value);
             
      return $output_variables;
      }

      This works... hope this helps other peoples...

      Kind regards

      Rainer

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks