Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Method mapping when working with loaded wsdl

Help
spamec
2012-02-15
2013-06-06
  • spamec
    spamec
    2012-02-15

    Hi,
    I have simple problem, but I cant find an answer for it… I have ready wsdl for my webservice, I successfully loaded it like:

    $wsdlPath = 'service.wsdl';
    $server = new nusoap_server($wsdlPath);
    $server->decode_utf8 = false;
    $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
    $server->service($HTTP_RAW_POST_DATA);

    And now I would like to map functions with methods from my class… there's got to be a simple way for it :)

     
  • spamec
    spamec
    2012-02-15

    $server->register doesnt work, because it throws an error:

    You cannot bind to an external WSDL file, and register methods outside of it! Please choose either WSDL or no WSDL.