Create project issues through PDS or WSS

C

ckc

I am trying to create project issues with PDS or WSS api and have the issues
link properly to the project. I have sucessfully created the new issues with
the following codes in sharepoint but it does not link properly to the
project.
Does anyone know how to link issues in sharepoint to a project? 3
Any help would be appreciated.

thanks

string sSPServerUrl=site;
ipmdev.Lists listService = new ipmdev.Lists();
listService.Url = sSPServerUrl + "/_vti_bin/lists.asmx";
listService.Credentials= System.Net.CredentialCache.DefaultCredentials;

string strBatch ="";

strBatch = "<Method ID=\"1\" Cmd=\"New\">" +
"<Field Name=\"ID\">New</Field>" +
"<Field Name=\"Title\">"+title+"</Field>" +
"<Field Name=\"Owner\">"+Owner+"</Field>" +
"<Field Name=\"Discussion\">"+discussion+"</Field>" +
"</Method>";

XmlDocument xmlDoc = new System.Xml.XmlDocument();

System.Xml.XmlElement elBatch = xmlDoc.CreateElement("Batch");

elBatch.SetAttribute("OnError","Return");

elBatch.InnerXml = strBatch;

XmlNode ndReturn = listService.UpdateListItems("Issues", elBatch);
 
C

ckc

Thanks Ray.
The example from the SDK demo the use of OLP with an asp page running on the
project server.
Do you know if the OLP could be run from a PDS extension. I am trying to
make the call using SOAP.
 
R

Ray McCoppin

The OLP api is not avialable using the PDS. It would not be hard to write a
custom web service using dot net to make the OLP available via SOAP.

My company would be glad to help you to do this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top