I'm new to InDesign server. I started InDesign server using command indesignserver port 18383. Running HelloWorld.jsx via TestClient is working fine . But now I need write a PHP program to call InDesign SOAP API. I did some searching but I could not figure out what the parameters and path are. My InDesign server is on 192.168.0.150:18383
and I'm using PHP 5's SOAP extension. If there is sample code, that would be great. Any help would be appreciated.
1, Where I can find following information:
What is Method Name? such as SomeFunction
what is Endpoint? such as URL http://x.x.x.x:8080/soap
what is SOAPAction? such as urn:xmethods-delayed-quotes#SomeFunction
what is Method Namespace URI? such as urn:xmethods-delayed-quotes
What is Input Parameters?
What is Output Parameters?
Or
2, use wsdl - but what is the path of some.wsdl? and what is SomeFunction? I know there is function called RunScript
Following are some sample PHP code I need:
$client = new SoapClient("some.wsdl");
$client = new SoapClient("some.wsdl", array('soap_version' => SOAP_1_2));
$client = new SoapClient("some.wsdl", array('login' => "some_name",
'password' => "some_password"));
$client = new SoapClient("some.wsdl", array('proxy_host' => "localhost",
'proxy_port' => 8080));
$client = new SoapClient("some.wsdl", array('proxy_host' => "localhost",
'proxy_port' => 8080,
'proxy_login' => "some_name",
'proxy_password' => "some_password"));
$client = new SoapClient("some.wsdl", array('local_cert' => "cert_key.pem"));
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
'uri' => "http://test-uri/"));
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
'uri' => "http://test-uri/",
'style' => SOAP_DOCUMENT,
'use' => SOAP_LITERAL));
$client = new SoapClient("some.wsdl",
array('compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP));
$server = new SoapClient("some.wsdl", array('encoding'=>'ISO-8859-1'));
Thanks
Robert
and I'm using PHP 5's SOAP extension. If there is sample code, that would be great. Any help would be appreciated.
1, Where I can find following information:
What is Method Name? such as SomeFunction
what is Endpoint? such as URL http://x.x.x.x:8080/soap
what is SOAPAction? such as urn:xmethods-delayed-quotes#SomeFunction
what is Method Namespace URI? such as urn:xmethods-delayed-quotes
What is Input Parameters?
What is Output Parameters?
Or
2, use wsdl - but what is the path of some.wsdl? and what is SomeFunction? I know there is function called RunScript
Following are some sample PHP code I need:
$client = new SoapClient("some.wsdl");
$client = new SoapClient("some.wsdl", array('soap_version' => SOAP_1_2));
$client = new SoapClient("some.wsdl", array('login' => "some_name",
'password' => "some_password"));
$client = new SoapClient("some.wsdl", array('proxy_host' => "localhost",
'proxy_port' => 8080));
$client = new SoapClient("some.wsdl", array('proxy_host' => "localhost",
'proxy_port' => 8080,
'proxy_login' => "some_name",
'proxy_password' => "some_password"));
$client = new SoapClient("some.wsdl", array('local_cert' => "cert_key.pem"));
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
'uri' => "http://test-uri/"));
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
'uri' => "http://test-uri/",
'style' => SOAP_DOCUMENT,
'use' => SOAP_LITERAL));
$client = new SoapClient("some.wsdl",
array('compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP));
$server = new SoapClient("some.wsdl", array('encoding'=>'ISO-8859-1'));
Thanks
Robert