use c# as client to access the java web service
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");
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!
用C#做CLIENT 来访问JAVA WEB SERVICE 数据类型有何限制,能用JAVA 的WEB SERVICE 返回一个JDBC对象给C#做CLIENT吗? 如不能,如何解决?QQ :172092689 WDP_Victor@sina.com