Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: problem with SPServices.GetTemplatesForItem soap message slightly different in two environments...

maybe it is some sort of permissions because i can't connect to the WSDL with SOAP UI (although i can with browser get to the web service page).. i'll see if ican see any error message, i'm a farm administrator so i'm not sure how my permissions could be blocked....

update.. i tested it by modifying my code as below, i can't step though the call but the variable response comes back with a value of "undefined", not too useful :(

<script type="text/javascript">var itemURL = "http://trac-sp01/demo/demotown/InformationManagement/Governance/testabc.docx"var workflowGUID;var response;var wfName="ExpireWF"
    $().SPServices({
        operation: "GetTemplatesForItem",
        item: itemURL,
        async: false,
        completefunc: function (xData, Status) {
            $(xData.responseXML).find("WorkflowTemplates > WorkflowTemplate").each(function (i, e) {
                testVar = $(xData.responseXML);
		response = $(xData.responseXML);// hard coded workflow nameif ($(this).attr("Name") == wfName) {var guid = $(this).find("WorkflowTemplateIdSet").attr("TemplateId");if (guid != null) {
                        workflowGUID = "{"+ guid + "}";
                    }
                }
            });
        }
    });
    alert(workflowGUID) <

Viewing all articles
Browse latest Browse all 6517

Trending Articles