Method Community

 

How to access MethodAPI From PHP

Last post 11-04-2008 9:38 AM by naveenskris. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-04-2008 4:40 AM

    How to access MethodAPI From PHP

    Hi,

    I have some questions in MethodAPI,..

    I have downloaded the MethodAPI sample code in ASP.NET  and its working fine..

    i need to access the webservice MethodAPI .asmx file from PHP.. but i did't get any code from MethodAPI they provide only in ASP.NET

    so, Is it possible to access the methodAPI from PHP..

    If any one come across this problem and find solution plz let me know..

     

    Thanks,

    Navaneethan 

     

     

     

     

  • 11-04-2008 7:08 AM In reply to

    Re: How to access MethodAPI From PHP

    Hi Navaneethan,

    We haven't created any PHP or Coldfusion examples yet. But all you need to do is consume the web service the way you would any other .net web service.  There's lots out there on google about using web services with PHP.  One tool that looks promising is:

    http://sourceforge.net/projects/nusoap/

    I'd like to see us create PHP and CF samples, but all our developers are working on other method-related projects at this time, so it might be a while before we can get one up there. 

    Let us know how you get on. 

    Paul

  • 11-04-2008 9:38 AM In reply to

    Re: How to access MethodAPI From PHP

    Hi Paul,

    Thanks for your replay..

    i got the some php source from  http://sourceforge.net/projects/nusoap/ this link..

    nusoap.php is the file while supports all soap funtionalities it seems...

    when i tried with one of the ASP.NET webservice .asmx file , it is connecting to the webservice and its not returning any value..

    then i've used the $client->getError() function to get the error.. then it always shows this error

    Constructor error

    wsdl error: phpType is struct, but value is not an array: see debug output for details
     
    But i don't know exactly where would be the problem..
     
    if u come accross this issue plz let me know...
     
    Thanks,
    Navaneethan 

     

     

     

     

     

Page 1 of 1 (3 items)