简体   繁体   中英

How to interact between php and java webservice

I have tried to create Restful Web service using java and netbeans. I have run 'Test RESTful web service' and everything are ok. But i want to access, the webservice that i have made, using php or codeigniter, how to retrieve content or put content. I have problem with this. I have try like this in my controler.

 file_get_contents('http://localhost:8080/akunKu/resources/db.akun.akkelompokakun'); 

yes it show content, but where i should put parameter. Thanks.

Use the cURL extension.. usually available on all professional web hosts.

Or use NuSphere's NuSoap classes (http://www.nusphere.com/php_script/nusoap.htm)

2nd one is even more easier I believe.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM