如何以编程方式远程调用Web服务? [英] How do I remotely call a web service Programmatically?

查看:144
本文介绍了如何以编程方式远程调用Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Web服务有点新,我遇到了一个问题。

I'm a bit new to web services and I have encountered a problem.

我需要通过java类访问远程Web服务,但我没有最简单的想法是如何做到这一点。

I need to access a remote web service through a java class, but I haven't got the foggiest idea how to do so.

如果有人能指出我正确的方向,我会非常感激。

If anyone could point me in the right direction I would very much appreciate it.

推荐答案

这样的事情: http://download.oracle.com/javase/tutorial/networking/urls/connecting.html

基本上你构建了一个URL(指向Web服务),并连接到它,阅读其响应等。

Basically you construct a URL (that points to the web service), and you connect to it, read its response, etc.

此页面上的下一步>链接将进一步解释。沿着小道走,你应该在路上。

The "Next >" link on this page will explain further. Follow the trail and you should be on your way.

这篇关于如何以编程方式远程调用Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆