login  Naam:   Wachtwoord: 
Registreer je!
 Forum

SOAP (Opgelost)

Offline jandelaet - 24/06/2008 00:51 (laatste wijziging 24/06/2008 00:52)
Avatar van jandelaetNieuw lid
  1. $time = time(); //unix timestamp
  2. $pwd = md5("*******".$time);
  3. $client = new SoapClient("http://managerzone.com/xml/mtcp.wsdl", array("trace" => 1, "exceptions" => 0));
  4.  
  5. $data = $client->Get("mz-data", "c718b316a916fb26c3f6f7ab120d499b", "rtc", $pwd, $time , soccer, Player(26020041));


Dit is mijn code

  1. $time = time(); //unix timestamp
  2. $pwd = md5("{your_tool_user_security_code}".$time);
  3. $client = new SoapClient("http://managerzone.com/xml/mtcp.wsdl", array("trace" => 1, "exceptions" => 0));
  4.  
  5. $data = $client->Get("{tool_name}", "{unique_tool_id}", "{your_user_name}", $pwd, $time , soccer|hockey,Player({playerid}));


En dit is de code die mij zegt hoe ik de dingen moet opstellen maar ik krijg deze fout
Fatal error: Call to undefined function Player() in /mounted-storage/home36c/sub006/sc29308-VNZR/mz-data/new/test_parse.php on line 14

Ziet iemand de fout?
Alvast bedankt

3 antwoorden

Gesponsorde links
Offline Stijn - 24/06/2008 01:04
Avatar van Stijn PHP expert
  1. Player({playerid})


De functie Player is niet gedefineerd en {} kan niet.
Offline jandelaet - 24/06/2008 01:09
Avatar van jandelaet Nieuw lid The communication between the developer and ManagerZone is done via http. We communication method that we offer is SOAP.

With SOAP you define a SOAP client that connects to a SOAP server at ManagerZone. The request is sent from the client to the server which returns a string of XML data back to the client.

Feeds usage description: All feeds have a standard parameter, sport. That parameter has to be send in the request for all feeds. The parameter that defines what feed you will get is the request parameter. This parameter shall be formatted as follows in standard case:

feedname({value})

Example:

Player(1234567)

Dit is wat ze erover schrijven dus ik denk dat ik niets mis heb gedaan of ziet er toch nog iemand iets?
Offline Stijn - 24/06/2008 02:05
Avatar van Stijn PHP expert Oplossing: Player is een feed.

  1. $data = $client->Get("{tool_name}", "{unique_tool_id}", "{your_user_name}", $pwd, $time , "soccer|hockey","Player({playerid})");


  1. header('content-type: text/xml');
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.221s