UnknownCodester's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
34 (0.05 per day)
Joined:
05-March 13
Profile Views:
1,002
Last Active:
User is offline Dec 12 2014 07:54 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   UnknownCodester has not set their status

Posts I've Made

  1. In Topic: Sessions without cookies

    Posted 12 Dec 2014

    View PostDormilich, on 12 December 2014 - 07:25 AM, said:

    you can manually set the session id with session_id(). make sure you also read the introductory article about session security.


    Ahah, So do you mean this sort of thing/would this work?..

    $id = $_SERVER['HTTP_ID'];
    session_id($id);
    session_start(); 
    


    Quote

    the use of the $_SERVER variable is highly depending on the used webserver and thus never a good idea for custom headers. PHP has some functions for getting your hands on the headers directly.


    Could you recommend any?
  2. In Topic: WSDL tools for PHP Webservice

    Posted 23 Oct 2014

    Just in case anybody else is wondering about this in the future...

    I have found that SoapUI is a good tool for testings WSDL's and Eclipse WSDL Editor has a great GUI interface that allows you to make WSDLs whilst providing a layer of abstraction and automating the process.
  3. In Topic: Web Service Problems

    Posted 20 Oct 2014

    Now I have no errors, but;

    var_dump($client->getMiles(2.0));
    


    Produces;

    object(stdClass)#2 (0) { }

    When I'd expect 2.0 to be sent to my getMiles method and return a value around 1.2
  4. In Topic: Web Service Problems

    Posted 20 Oct 2014

    Haha wow I can't believe I couldn't see that... Should be...

    require('converter.php');
    
    $server = new SoapServer('wsdl.wsdl');
    $server->setClass('Converter');
    $server->handle();
    
    
  5. In Topic: Web Service Problems

    Posted 20 Oct 2014

    View PostArtificialSoldier, on 20 October 2014 - 10:23 AM, said:

    Is that error message coming from client.php?


    Yeah especially if I add code like this
    $client->getMiles(15.0);
    


    Heres the whole error;

    object(SoapFault)#2 (10) { ["message":protected]=> string(33) "looks like we got no XML document" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(44) "C:\xampp server\htdocs\webservice\client.php" ["line":protected]=> int(6) ["trace":"Exception":private]=> array(2) { [0]=> array(6) { ["file"]=> string(44) "C:\xampp server\htdocs\webservice\client.php" ["line"]=> int(6) ["function"]=> string(6) "__call" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(8) "getMiles" [1]=> array(1) { [0]=> float(15) } } } [1]=> array(6) { ["file"]=> string(44) "C:\xampp server\htdocs\webservice\client.php" ["line"]=> int(6) ["function"]=> string(8) "getMiles" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> float(15) } } } ["previous":"Exception":private]=> NULL ["faultstring"]=> string(33) "looks like we got no XML document" ["faultcode"]=> string(6) "Client" ["faultcodens"]=> string(41) "http://schemas.xmlsoap.org/soap/envelope/" }

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

UnknownCodester hasn't added any friends yet.

Comments

UnknownCodester has no profile comments yet. Why not say hello?