如何使用API Ideone用WSDL格式 [英] How to use Ideone API in WSDL Format
问题描述
我要建立自己的在线编译器。我想用Ideone阿比这一点。但它的API在WSDL格式。我很努力,但能找到如何从WSDL中提取数据的教程。请告诉某种方式使用Ideone API。
I want to set up my own online compiler. I want to use Ideone Api for this. But its api is available in WSDL format. I tried very hard but could find any tutorial on how to extract data from WSDL. Please tell some way to use Ideone api.
推荐答案
也许一晚的答案,但仍可能对别人有用的。在这里,在PHP一个简单的例子,与它的原生SOAP libray: http://ideone.com/3JBbt
Maybe a late answer but still may be useful for others. Here a simple example in PHP with it's native SOAP libray: http://ideone.com/3JBbt
令人遗憾的是我的服务器不支持PHP的SOAP库,所以我已经在演示中使用的NuSOAP,现在你有两种方式与IDE工作的一个API。
Regretfully my server doesn't support PHP's SOAP library so I have used NuSOAP in the demo, now you have two ways to work with IDE One API.
下面一个简单的演示: http://rendon.x10.mx/files/ide1example/一>
Here a simple demo: http://rendon.x10.mx/files/ide1example/
这里是code: http://rendon.x10.mx /files/ide1example.tar.gz
注意:您需要提供ideone.php自己的用户名和密码
NOTE: You need provide your own user and password in ideone.php.
$params = array(
'user' => $user, // your user
'pass' => $pass, // your pass
'sourceCode' => $code,
'language' => $lang,
'input' => $input,
'run' => $run,
'private' => $private
);
有关功能的详细信息
参考API文档: http://ideone.com/files /ideone-api.pdf
这篇关于如何使用API Ideone用WSDL格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!