Hi,
We use Microsoft Project 2010 to manage project related tasks. I created a web page to access the project list with use of web service(project app url which is working).
Not tried WCF route since I dont have the project server GUID. Have couple of queries on this
1. Can I get Project server GUID from remote machine?
2. Do we need to be in Admin role to access WCF/OData services?
I am also trying other option to call the web service via Ajax/Jquery(Not sure if that work/ feasible). I created request and fired the project server WSDL web service url and what I got response was WSDL xml document. I tried passing user credentials to the $.ajax request but that too failing/returned only WSDL document. sample below.
var soapRequest = '<?xml version="1.0" encoding="utf-8"?> \<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
xmlns:xsd="http://www.w3.org/2001/XMLSchema" \
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> \
<soap:Body> \
<ReadProjectList /> \
</soap:Body> \
</soap:Envelope>';
$.ajax({
type: 'POST',
datatype: 'xml',
processData: false,
url: 'https://<project_server>/<project>/_vti_bin/PSI/Project.asmx?wsdl',
username: username, // Most SAP web services require credentials
password: password,
data: soapRequest,
crossDomain: true,
xhrFields: {
withCredentials: true
},
success: processSuccess,
error: processError
});
Is it possible to use a simple HTML page and use jquery/ajax to call project services? if for any security reasons, it is not achievable, can I create a dummy ASP.Net web page/project (just to run as localhost) and call this HTML from URL? Will that work?
The last question
Can I get the microsoft project GUID(outline level zero) manually from microsoft project desktop application? What we see inside the application are sublevel tasks(1 and above)?
--- Thanks & Regards, Guhan