NuSOAP und Bundesliga-Daten, aber keine Daten im Array

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • NuSOAP und Bundesliga-Daten, aber keine Daten im Array

    hi,
    kann mir einer sagen warum ich nur ein leeres array zurück bekomme?? Verwende nusoap.

    Hier mal der Code:

    PHP-Code:
    <?php 
    error_reporting
    (E_ALL);
    ini_set('display_errors','On');
    require_once(
    'lib/nusoap.php');

    // Create the client instance
    $client = new soapclient('http://msiggi.de/Sportsdata/Webservices/Sportsdata.asmx?WSDL''wsdl');
    // Call the SOAP method
    $result $client->call('GetMatchdataByGroupLeagueSaison', array("leagueShortcut" => "bl1""leagueSaison" => "2007""groupOrderID" => 2));
    // Display the result
    print_r($result);
    // Display the request and response
    echo '<h2>Request</h2>';
    echo 
    '<pre>' htmlspecialchars($client->requestENT_QUOTES) . '</pre>';
    echo 
    '<h2>Response</h2>';
    echo 
    '<pre>' htmlspecialchars($client->responseENT_QUOTES) . '</pre>';
    ?>
    und die Ausgabe sieht ´folgendermaßen aus:
    Array ( [GetMatchdataByGroupLeagueSaisonResult] => )

    Wenn ich aber den webservice über http://www.soapclient.com/ teste, geht alles wunderbar...

    Könnt ihr mir helfen oder klappt das einfach mit nusoap nicht??

  • #2
    print_r($client->response)

    Kommentar


    • #3
      dann bekomm ich nur folgendes....

      HTTP/1.1 200 OK Connection: close Date: Thu, 23 Aug 2007 11:27:57 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Cache-Control: private, max-age=0 Content-Type: text/xml; charset=utf-8 Content-Length: 418

      Kommentar


      • #4
        weiß keiner wie ich dort an die daten per nusoap komme?? schlecht, denn SOAP ist bei mir nicht vorhanden, somit bin ich an nusoap gebunden....

        Kommentar


        • #5
          PHP-Code:
          <?php

          error_reporting
          (E_ALL);
          ini_set('display_errors','On');
          require_once(
          'nusoap.php');

          // Create the client instance
          $client = new soapclient('http://msiggi.de/Sportsdata/Webservices/Sportsdata.asmx?WSDL''wsdl');
          // Call the SOAP method

          $params = array(matchid=>
          "<GetMatchByMatchID xmlns='http://msiggi.de/Sportsdata/Webservices'>
                <MatchID>647</MatchID>
          </GetMatchByMatchID>"
          )
          ;
          $params2 = array(leagueShortcut=>"
              <GetLastMatch xmlns='http://msiggi.de/Sportsdata/Webservices'>
                <leagueShortcut>'bl1'</leagueShortcut>
              </GetLastMatch>"
          )
          ;
          $params3 = array(data=>"
              <GetMatchdataByGroupLeagueSaison xmlns='http://msiggi.de/Sportsdata/Webservices'>
                <groupOrderID>2</groupOrderID>
                <leagueShortcut>bl1</leagueShortcut>
                <leagueSaison>2007</leagueSaison>
              </GetMatchdataByGroupLeagueSaison>"
          )
          ;
          //$result = $client->call('GetMatchByMatchID',$params);
          //$result = $client->call('GetLastMatch',$params2);
          $result $client->call('GetMatchdataByGroupLeagueSaison',$params3);
          // Display the result
          print_r($params3);
          echo 
          "<br>";
          print_r($result);
          //print_r($client->response);
          // Display the request and response
          echo '<h2>Request</h2>';
          echo 
          '<pre>' htmlspecialchars($client->requestENT_QUOTES) . '</pre>';
          echo 
          '<h2>Response</h2>';
          echo 
          '<pre>' htmlspecialchars($client->responseENT_QUOTES) . '</pre>';
          $resultset=$client->response;

          print_r($resultset);
          ?>
          Hi! Probiers mal so. So komme ich zumindest an die Daten. Hab mit params, param2 und params3 mehrere Funktionsaufrufe ausgetestet. Im $result-array befindet sich aber nur ein Spiel (????)
          im resultset ($resultset) sind alle daten, hab nur keine Ahnung wie ich das vernünftig ausgelesen und formatiert bekomme.
          Vielleicht hast Du ja mehr Ahnung...

          Kommentar

          Lädt...
          X