I know php webservice SOAP,json,rest etc, but I am new for java webservice. Now I want to get php client to java webservice. What is the best way to do this?
2 Answers
There is nothing new in it. Just create SoapClient with java web services WSDL URL and call it's method:
<?php
try{
$proxy = new SoapClient("javaWsdlUrl?wsdl");
$result = $proxy->javaWSMethod(array("arg0"=>"1234","arg1"=>"5678"));
print_r($result);
} catch (Exception $e) {
echo $e->getMessage ();
}
?>
Other things will be same like generating stubs, getting method names,...