use c# as client to access the java web service

Wdp_TenLong 2002-08-01 11:22:22
Dear Mr.
I want to use c# as client to access the java web service.What's the limits for this kind application.Which data type can return from java web service that I try to access by c# as client.Can I return a JDBC object from java web service in order to be accessed by the c# client ,just say useing JDBC object to take place ADO.NET. If cann't do that, how can I solute the problem?Can you give me a sample.


I try to use c# as client to access the java web service HelloWorld which was privode by JWSDP's tutorial .

The following code is writting in c#:

static void Main(string[] args)
{
//
// TODO: Add code to start application here
//
WebReference1.HelloWorld Jwsdp =new WebReference1.HelloWorld();
string s = Jwsdp.sayHello("This is my java web service");
Console.WriteLine (s);

}

The Error show in Visual Studio.net :

An unhandled exception of type 'System.InvalidOperationException' occurred in system.web.services.dll
Additional information: Client found response content type of 'binary/octet-stream', but expected 'text/xml'.



Please help me!
Thank you very much!


Regards

用C#做CLIENT 来访问JAVA WEB SERVICE 数据类型有何限制,能用JAVA 的WEB SERVICE 返回一个JDBC对象给C#做CLIENT吗? 如不能,如何解决?QQ :172092689 WDP_Victor@sina.com
WangDongPing


...全文
6 点赞 收藏 回复
写回复
回复
切换为时间正序
请发表友善的回复…
发表回复

还没有回复,快来抢沙发~

发动态
发帖子
VC/MFC
创建于2007-09-28

1.5w+

社区成员

VC/MFC相关问题讨论
申请成为版主
社区公告
暂无公告