Get Totally project by webservice

A

alex

Hi,

It's the following of my post about consume webService.
Now I solve it.
I can consume webService from EPM2007.

I should get a totally choosed project.
I try by this code :

WebSvcProject.ProjectDataSet dsprojetDs = new
WebSvcProject.ProjectDataSet();
Guid projetUid = new
Guid("C502A372-2D25-4D7F-8177-4A229ED91CC1");
dsprojetDs = project.ReadProject(
projetUid,
WebSvcProject.DataStoreEnum.PublishedStore);
if (dsprojetDs != null)
dsprojetDs.WriteXml(@"c:\test.xml");

This code permit to obtain a file xml which contains some values example of
an extract :

<ProjectDataSet
xmlns="http://schemas.microsoft.com/office/project/server/webservices/ProjectDataSet/">
<Project>
<PROJ_UID>c502a372-2d25-4d7f-8177-4a229ed91cc1</PROJ_UID>
<PROJ_NAME>test1</PROJ_NAME>
<PROJ_TYPE>0</PROJ_TYPE>
<PROJ_PROP_AUTHOR>alexandre</PROJ_PROP_AUTHOR>
<CAL_UID>0e2db0ee-7dfe-4f11-abf7-85f516087556</CAL_UID>
<CAL_NAME>Standard</CAL_NAME>
.....
<Task>
<PROJ_UID>c502a372-2d25-4d7f-8177-4a229ed91cc1</PROJ_UID>
<TASK_UID>d278ae8c-1ad1-4d00-b515-0582742afa7d</TASK_UID>
<TASK_PARENT_UID>d278ae8c-1ad1-4d00-b515-0582742afa7d</TASK_PARENT_UID>
<TASK_NAME>Lot 1 - Pilotage</TASK_NAME>
<TASK_ID>0</TASK_ID>
<TASK_IS_MILESTONE>false</TASK_IS_MILESTONE>
.......

So i try to open the xml file by Microsoft Project Professionnal.
I select open -> my xml file.
After that, MSP proposes to choose :
-incorpore in the project,
-as new project
-merge datas

So I choose as new project but nothing appears in my windows.

Maybe I should do another action?
My way, it's to obtain an extract of any project.

How can I do?

Thanks,
Alexandre - new in EPM2007
 
W

www.projectserver.cz

Project pro using another type of XML file, in best case you should be
able create transformation which convert ProjectDataset to XML format
which can be loaded by project pro.

PS maybe XSLT transformation awailable somewhere but I don't know the
URL.
 

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