3
我尝试使用简单的java客户端来使用托管在iis上的wcf服务。使用Java客户端来使用wcf服务
我的服务是一个basicHttpService。
现在我的问题。我在java中需要什么来访问服务方法?
我建立一个小例子:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
namespace android.Web
{
[ServiceContract]
public interface ITestService
{
[OperationContract]
void DoWork();
[WebGet(UriTemplate = "Login/")]
String Login();
}
}
登录方法只返回想在我的Java客户端来测试一个简单的字符串。 我试图在互联网上找到一些教程,但没有wokrs;)
THX了很多。
请显示你已经尝试了什么,没有工作 –