[Webdev] PHP & SOAP

Donncha O Caoimh donncha.ocaoimh at tradesignals.com
Wed Nov 8 12:54:30 GMT 2000


Justin Mason wrote:
> 
> Donncha O Caoimh said:
> 
> > Has anyone used a SOAP server with PHP? Searching google.com showed
> > quite an interest in producing one but none in production or even being
> > worked on. :(
> 
> SOAP's so simple you could almost use a direct TCP connection to port 80
> and print the XML ;)  That's an option,
> 

hmm.. Managed to get PHP and Java talking. 
There's two examples in the PHP distribution, here's one..
------------jver.php-------------------
<?

  $system = new Java("java.lang.System");
  print "Java version=".$system->getProperty("java.version")." <br>\n";
  print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
  print "OS=".$system->getProperty("os.name")." ".
              $system->getProperty("os.version")." on ".
              $system->getProperty("os.arch")." <br>\n";

  $formatter = new Java("java.text.SimpleDateFormat",
                        "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");

  print $formatter->format(new Java("java.util.Date"))."\n";

?>
---------------------------------------
Doing simple benchmarks, 50 requests a second, showed a fall-off of 7-8
requests a second when I called Java methods.

There are a number of options open to us for parsing incoming xml, and
outputing it is plain simple..

Donncha.




More information about the Webdev mailing list