Skip to content

Instantly share code, notes, and snippets.

@dinamic
Last active June 13, 2016 15:10
Show Gist options
  • Save dinamic/29e7f7d6bd3085d903dfa1634c8cd65c to your computer and use it in GitHub Desktop.
Save dinamic/29e7f7d6bd3085d903dfa1634c8cd65c to your computer and use it in GitHub Desktop.

Revisions

  1. dinamic revised this gist Jun 13, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion php-bug-71996-soapserver.php
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    class MySoapServer
    {
    public function createItem(array $consignments, $calculate)
    public function createItem(array $items, $calculate)
    {
    return 'Output is: '. json_encode(func_get_args());
    }
  2. dinamic renamed this gist Jun 13, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. dinamic created this gist Jun 13, 2016.
    18 changes: 18 additions & 0 deletions php-bug-71996-soapserver
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    <?php

    class MySoapServer
    {
    public function createItem(array $consignments, $calculate)
    {
    return 'Output is: '. json_encode(func_get_args());
    }
    }

    $options = array(
    'uri' => 'http://localhost/test',
    'wsdl_cache' => WSDL_CACHE_NONE,
    );

    $server = new SoapServer(NULL, $options);
    $server->setClass('MySoapServer');
    $server->handle();