Heim  >  Artikel  >  Backend-Entwicklung  >  php调Java接口传值

php调Java接口传值

WBOY
WBOYOriginal
2016-06-06 20:25:022014Durchsuche

如何利用url形式给Java接口传值;类似于这样
http://localhost:8080/oms/router?appKey=00001&method=user.getSession&v=1.0&format=xml&service=subCreateSaleOrder&encrypt=1&content=4352345dfgsdfas&secret=34532452345/

php改用什么函数让Java那边能接收到

回复内容:

如何利用url形式给Java接口传值;类似于这样
http://localhost:8080/oms/router?appKey=00001&method=user.getSession&v=1.0&format=xml&service=subCreateSaleOrder&encrypt=1&content=4352345dfgsdfas&secret=34532452345/

php改用什么函数让Java那边能接收到

头没要求的就 file_get_contents('http://localhost:8080/oms/router?appKey=00001&method=user.getSession&v=1.0&format=xml&service=subCreateSaleOrder&encrypt=1&content=4352345dfgsdfas&secret=34532452345/');
有要求的就Curl

传值也是这样写吗

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn