Home >Backend Development >PHP Tutorial >PHP 如何调用 JAVA写的webservice?

PHP 如何调用 JAVA写的webservice?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:46:341022browse

如题,合作方写了个java的webservice
简单的给了点文档,应该如何去调用这个webservice啊!!!

回复内容:

如题,合作方写了个java的webservice
简单的给了点文档,应该如何去调用这个webservice啊!!!

  1. xmlrpc
  2. SOAP
  3. REST
  4. thrift
  5. you name it

php有一个soap库可以调用webservice。

详情:http://cn2.php.net/manual/zh/book.soap.php

不怕麻烦可以模拟http报文~~,

如果是java的webservice的话,直接用php的curl调用webservice的web API最简单吧。
例如:http://webservice.com?paramter1=XXXX¶mter2=XXXX...

SOAP 或 simple xml

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn