【问题标题】:Calling java webservice from sharepoint 2010 event receiver从 sharepoint 2010 事件接收器调用 java webservice
【发布时间】:2011-09-21 13:57:52
【问题描述】:

我们正在使用如下所示的共享点事件接收器:

public override void ItemUpdated(SPItemEventProperties properties)
       {
           if (properties.ListItemId > 0 && properties.ListId != Guid.Empty)
           {
               string id, url, operation;
               url = properties.AfterUrl;
               operation = "Update";
               id = properties.ListItemId.ToString();
               //id=properties.ListId.ToString();
               JavaSendAlert.AlertWebServiceService jsa = new   JavaSendAlert.AlertWebServiceService();
               jsa.sendAlert(id,url,operation);
           }

JavaSendAlert 是使用的 WSDL,用 java 制作并发布在 32 位系统上。

我们在这一行得到异常: JavaSendAlert.AlertWebServiceService jsa = new JavaSendAlert.AlertWebServiceService();

例外是:

无法执行程序。正在执行的命令是 "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /完整路径 @"C:\Users\461167\AppData\Local\Temp\OICE_FEF98CDC-FC33-4071-B497-DC6B21E9E725.0\w1tuwwu5.cmdline"

我们可以用这个异常做什么。


感谢回复

你分享的页面上的错误不是我的。

我的错误路径是 C:\Users\myname\AppData\Local\Temp\OICE_FEF98CDC-FC33-4071-B497-DC6B21E9E725.0\w1tuwwu5.cmdline

在你分享的页面上是@"D:\WINNT\TEMP\eyrpuhyg.cmdline,在互联网上很常见。

我仍然无法解决问题,但是人们在安装 SQL 服务器时遇到了同样的问题http://social.technet.microsoft.com/Forums/en/sqlsetupandupgrade/thread/480562d9-d5db-4ce6-848a-a334c40dc3b9

谢谢 莫希特利卡

【问题讨论】:

    标签: java .net web-services sharepoint-2010


    【解决方案1】:

    有了这些信息,我只能猜测......我会说这是一个权限/身份验证问题 - 请查看 this KB。

    【讨论】:

      【解决方案2】:

      终于成功了

      我刚刚将信任级别更改为以前设置为沙盒的农场。

      谢谢 莫希特利卡

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-07-30
        • 2018-03-11
        • 2015-12-12
        相关资源
        最近更新 更多