.net 调用java web service问题
java写的web服务被封装成了wsdl文件,用vs2010自带命令行工具解析时,不能正常解析,如图

有没有知道这是怎么回事?
另外也使用了web地址,在vs2010中进行web引用,产生了如下文件

没有产生代理类,这是什么问题呢?
没有就没有吧,在后台中使用哪个web引用的命名空间,智能提示能够看到相关代理类的接口。
只是调用的时候,
调用代码:
IAsyncResult ar= client.Beginprocess(a, null, null);
MDM.processResponse rp = client.Endprocess(ar);
出了问题,如下:
Server Error in '/Web' Application.
--------------------------------------------------------------------------------
The string '' is not a valid Boolean value.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: The string '' is not a valid Boolean value.
Source Error:
Line 59: /// <remarks/>
Line 60: public processResponse Endprocess(System.IAsyncResult asyncResult) {
Line 61: object[] results = this.EndInvoke(asyncResult);
Line 62: return ((processResponse)(results[0]));
Line 63: }
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\00a28ea6\dec52ce2\App_WebReferences.pewapjrg.0.cs Line: 61
谁能告诉这是什么问题?版主快来急救啊!

有没有知道这是怎么回事?
另外也使用了web地址,在vs2010中进行web引用,产生了如下文件

没有产生代理类,这是什么问题呢?
没有就没有吧,在后台中使用哪个web引用的命名空间,智能提示能够看到相关代理类的接口。
只是调用的时候,
调用代码:
IAsyncResult ar= client.Beginprocess(a, null, null);
MDM.processResponse rp = client.Endprocess(ar);
出了问题,如下:
Server Error in '/Web' Application.
--------------------------------------------------------------------------------
The string '' is not a valid Boolean value.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: The string '' is not a valid Boolean value.
Source Error:
Line 59: /// <remarks/>
Line 60: public processResponse Endprocess(System.IAsyncResult asyncResult) {
Line 61: object[] results = this.EndInvoke(asyncResult);
Line 62: return ((processResponse)(results[0]));
Line 63: }
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\00a28ea6\dec52ce2\App_WebReferences.pewapjrg.0.cs Line: 61
谁能告诉这是什么问题?版主快来急救啊!
...全文
相关推荐
JAVA调用.NETWeb Service完整代码
试验了网上N个例子,都没有成功,最后自己调试出来的,绝对能运行.
Java与.NET 的Web Services相互调用
本文介绍了Java与.NET开发的Web Services相互调用的技术。本文包括两个部分,第一部分介绍了如何用.NET做客户端调用Java写的Web Services,第二部分介绍了如何用Java做客户端调用.NET开发的Web Services。
java调用.net发布的webservice(asmx)
封装了java调用.net的websevice接口,解决了soapaction报错和server not identified错误,使用soap1.1协议。
.NET调用JAVA web 服务
.NET调用JAVA web 服务
Java调用.net webservices实例
Java调用.net webservices实例,简单原生写法,去除复杂的框架,适合Java基础和webservices原理的学习。


