无法从Dotnetnuke 7.4访问Web服务

时间:2015-12-07 18:38:26

标签: json web-services soap dotnetnuke

我有来自第三方提供商的网络服务,当我尝试添加webservice并在我的普通.net应用程序中使用它时,它工作正常,但现在当我尝试在生产环境中执行它时已经安装了dotnetnuke 7.4.1 ,它只是抛出错误。

def fill(params) {
    def division = params.pkDivision.trim(),
        peid = params.pkPeid != null ? params.pkPeid.trim() : null,
        alternateId = params.alternateId != null ? params.alternateId.trim() : null,
        orgkey = params.pkOrgkey != null ? params.pkOrgkey.trim() : null

    Date expenseDate = new SimpleDateFormat('MM/dd/yyyy').parse(params.expenseDate.trim());

    List<RecoverySetup> recoverySetups = RecoverySetup.createCriteria().list{
        createAlias("oneSolOrgkey", "oneSolOrgkey")
        eq("division", division)
        eqProperty("oneSolOrgkey.orgkey", "orgkey")
        eqProperty("oneSolOrgkey.division", "division")
        or {
            eq("peid", peid)
            eq("alternateId", alternateId)
        }
        eq("status", Status.AC)
        le("oneSolOrgkey.startDate", expenseDate)
        ge("oneSolOrgkey.endDate", expenseDate)
        like("oneSolOrgkey.orgkey", orgkey.trim() + '%')
    }

    def recoverySetupInstance = null;

    if(recoverySetups.isEmpty()) {
        throw new NullPointerException("No recovery setup records were found with " + (peid != null ? "peid " + peid : "alternate id " +  alternateId) + " and orgkey " + orgkey);
    } else if(recoverySetups.size() > 1) {
        throw new NullPointerException("More than one recovery setup record was found with " + (peid != null ? "peid " + peid : "alternate id " +  alternateId) + " and orgkey " + orgkey);
    }

    recoverySetupInstance = recoverySetups.get(0);

    def recoveryDetailInstance = new RecoveryDetail(params);

    recoveryDetailInstance.setDivision(recoverySetupInstance.getDivision().trim());
    recoveryDetailInstance.setOrgkey(recoverySetupInstance.getOrgkey().trim());
    recoveryDetailInstance.setPeid(recoverySetupInstance.getPeid().trim());
    recoveryDetailInstance.setRecoverySetup(recoverySetupInstance);
    recoveryDetailInstance.setExpenseDate(expenseDate);
    recoveryDetailInstance.setAdjustmentNumber(currentAdjustmentNumber(recoverySetupInstance, expenseDate));
    calculateExpense(recoveryDetailInstance, params);

    return recoveryDetailInstance;
}

我完全迷失了这个错误,甚至在谷歌上找不到这个。

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

我确实设法通过这些步骤使其工作,但我不确定对其他人有多大帮助。

右键点击服务 - &gt;配置服务参考 - &gt; UnCheck'在引用的程序集中重用类型

这就是摆脱这个烦人的错误信息所花费的一切。