关于网友提出的“aspnet 紧急求助:aspnet调用java写的webservice,已附件的形式发送文件到webservice”问题疑问,本网通过在网上对“aspnet 紧急求助:aspnet调用java写的webservice,已附件的形式发送文件到webservice”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题:aspnet 紧急求助:aspnet调用java写的webservice,已附件的形式发送文件到webservice
描述: webservice的内容
我的调用代码:
using System.Net;
using WebReference;
using System.Web.Services;
using Microsoft.Web.Services;
using Microsoft.Web.Services.Dime;
SPCServiceService spss = new SPCServiceService();
SoapContext myContext = HttpSoapContext.ResponseContext;
DimeAttachment dimAttach = new DimeAttachment("text/plain", TypeFormatEnum.MediaType, filepath);
myContext.Attachments.Add(dimAttach);
string bb = spss.submitAtMutilMessage("port", "service_id", content);
找不到wsdk,我安装了 WSE3.0,但是没找到 Dime;
然后又安装了WSE2.0有了Dime,但是找不到 HttpSoapContext;
最后安装了WSE1.0;
现在代码报错:myC />
说明,
1、webservice是对方的,用java写的,不可修改;
2、必须用soap附件的形式将文件发送过去,不能用base64的参数形式;
3、发送附件并且调用webservice的submitAtMutilMessage方法,传递参数“("port", "service_id", content)”;
以上介绍了“aspnet 紧急求助:aspnet调用java写的webservice,已附件的形式发送文件到webservice”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/2923811.html