Link to home
Start Free TrialLog in
Avatar of ChrisClement
ChrisClement

asked on

PDS ProjectCreate Request gets "Invalid Request" error

I'm attempting to submit a XML request to the PDS web service for Project Server 2003.  The request is fairly simple:

            <Request>
               <ProjectCreate>
                    <AutoPublish>1</AutoPublish>
                    <Project>
                         <ProjectName>testing.Published</ProjectName>
                         <StartDate>20040524070000</StartDate>
                          <TemplateID>37</TemplateID>
                          <TemplateName>Operations Support</TemplateName>
                    </Project>
               </ProjectCreate>
            </Request>

But the response I get from PDS is Error Code 2: rsRequestInvalid  "Some part of the request syntax is invalid (general status)"

Not seeing anything wrong with the request itself.   The syntax is directly from the PDS Reference help file.  Any ideas?
Avatar of ChrisClement
ChrisClement

ASKER

Figured out the problem.  The xml that was actually being sent was:
<method>
          <Request>
             <ProjectCreate>
                 <AutoPublish>1</AutoPublish>
                 <Project>
                     <ProjectName>testing.Published</ProjectName>
                     <StartDate>20040524070000</StartDate>
                      <TemplateID>37</TemplateID>
                      <TemplateName>Operations Support</TemplateName>
                 </Project>
             </ProjectCreate>
          </Request>
</method>

Basically, I had to call the child node to send the correct XML format.
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial