Page 1 of 1

wsdl to php code

Posted: Thu Jan 29, 2009 6:57 pm
by yacahuma
Hello,

I just created a little wsdl to php code. I am wating for my provider to include soap in my web server so you can try a live demo. It is the first version but I think it works, at least on my samples. I am attaching a code created with it. Le me know what you think.

If you have a public wsdl for my to try please reply to see if my code works.

I will post the live sample as soon as the machine is ready

Thank you

Re: wsdl to php code

Posted: Thu Jan 29, 2009 6:59 pm
by yacahuma
I forgot , a client code sample.


BTW , I dont see the text file i just uploaded. humm. Can someone tell me what kind of file can I upload. It does not let me txt or php. Thank you

Code: Select all

 
require_once 'Temperature.php';
 
try
{
  $a = new Temperature('http://coeservice.en.kku.ac.th:8080/TemperatureConvertor/TemperatureConvertorService?wsdl');
  $info  = $a->FahrenheitToCelsius(new FahrenheitToCelsius('10'));
  print_r($info);
}
catch(SoapFault $f)
{
  print_r ($f);
}  
 
 

Re: wsdl to php code

Posted: Fri Jan 30, 2009 6:19 am
by yacahuma
Hello Again, My hosting was gracious enough to install the lastest php version with soap extensions.
Now you can see the generator here

http://www.stccorp.net/soapwriter/soapwriter.php

Let me know what you think.

I only tested it with 5 o 6 wsdls so no promises. Also out of pure coincidence I just found a wsdl generator inside paypal library. The only things is that just generates functions not classes. Maybe is there, I will keep poking at it.

Re: wsdl to php code

Posted: Fri Jan 30, 2009 9:58 am
by pickle
You should be able to upload a ZIP file no problem.