2 Replies Latest reply: Oct 4, 2013 8:50 AM by Berkhan Dipso RSS

    Webservice call to create project in Unifier fails

    User578640

      Hi I have been trying to create a project in Unifier using createproject call in webservices however everytime I am getting the response:

      Create Project failed because :Invalid property name 'companyid'.

       

      Has anybody created a project using Unifier Webservices. My Soap request xml is as below:

       

      <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:createProject soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://general.service.webservices.skire.com"><shortname xsi:type="xsd:string">TCS</shortname><authcode xsi:type="xsd:string">kolkata@1234</authcode><cloneProjectNumber xsi:type="xsd:string">PT-001</cloneProjectNumber><projectXML xsi:type="xsd:string"><?xml version='1.0' encoding='ISO-8859-1'?>

      <List_Wrapper>

      <project_info>

      <projectnumber>JB10301</projectnumber>

      <projectname>An Integration call</projectname>

      <status>2</status>

      <description>Project created through Integration</description>

      <constructiontype>1</constructiontype>

      <typeofproject>Closure</typeofproject>

      <startdate>01-04-2014</startdate>

      <plannedcompletion>01-04-2014</plannedcompletion>

      <revisedcompletion>01-01-2015</revisedcompletion>

      <designcomplete>10.0</designcomplete>

      <constrcomplete>1</constrcomplete>

      <notes>testing integration</notes>

      <schedulestatus>1</schedulestatus>

      <projectphase>Planning</projectphase>

      </project_info>

      </List_Wrapper>

      </projectXML></ns1:createProject></soapenv:Body></soapenv:Envelope>

        • 1. Re: Webservice call to create project in Unifier fails
          SeanKirkwood

          Are you sure the shortname and authentication key is correct?


          Sean

          • 2. Re: Webservice call to create project in Unifier fails
            Berkhan Dipso

            Try;

             

            <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gen="http://general.service.webservices.skire.com">
               <soapenv:Header/>
               <soapenv:Body>
                  <gen:createProject soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
                     <shortname xsi:type="xsd:string">TCS</shortname>
                     <authcode xsi:type="xsd:string">kolkata@1234</authcode>
                     <cloneProjectNumber xsi:type="xsd:string">BARAJ01</cloneProjectNumber>
                     <projectXML xsi:type="xsd:string">
              &lt;List_Wrapper&gt;
              &lt;project_info&gt;
              &lt;projectnumber&gt;Proj-001&lt;/projectnumber&gt;
              &lt;projectname&gt;Project 1&lt;/projectname&gt;
              &lt;status&gt;2&lt;/status&gt;
              &lt;/project_info&gt;
              &lt;/List_Wrapper&gt;
                 </projectXML>
                  </gen:createProject>
               </soapenv:Body>
            </soapenv:Envelope>
            

             

            Hope it helps.