[英]How to call an external web-service from Joomla
I am going to create a webservice (I think in java) which role is to treat a picture (IN) and to return a result (OUT).我将创建一个 web 服务(我认为在 java 中),其作用是处理图片 (IN) 并返回结果 (OUT)。 I would like to use that web service from my Joomla website.我想从我的 Joomla 网站使用该网络服务。 The process will be:该过程将是:
1- upload of a picture from the website 1-从网站上传图片
2- we call the web service to treat the picture 2- 我们调用网络服务来处理图片
3- we receive the result and display it in a new page 3- 我们收到结果并将其显示在新页面中
I really don't know how to proceed to do these 3 steps.我真的不知道如何继续执行这 3 个步骤。 My first question is: how do I call a web service with Joomla (2.5)?我的第一个问题是:如何使用 Joomla (2.5) 调用 Web 服务?
Thanks谢谢
You can always use a wrapper which basically means have external websites appear inside where the article/components usually are.您始终可以使用包装器,这基本上意味着外部网站出现在文章/组件通常所在的位置。
Simply create a new menu item, change the type to "wrapper" and select the URL.只需创建一个新菜单项,将类型更改为“wrapper”并选择 URL。
I think this is what you are looking for, if not please explain in more detail.我想这就是你要找的,如果不是请更详细地解释。
Maelkun,梅尔昆
I tried the example below in Joomla.我在 Joomla 中尝试了下面的示例。 using Jumi and it worked.使用 Jumi,它成功了。 If you have php 5.3 you can try with Sourcerer too.如果你有 php 5.3,你也可以尝试使用 Sourcerer。
http://www.vankouteren.eu/blog/2009/03/simple-php-soap-example/ http://www.vankouteren.eu/blog/2009/03/simple-php-soap-example/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.