Posted Apr 18 by sameer Patil.
Updated Apr 18.

Updating Files related to Entity Using Webervice

Last activity May 07 by sameer Patil.
253 views. 1 comment.

I have created an Entity model in AppWorks with File as building block. I have written a java code to create Entity. I was able to create Entity object without any issues. But I am not able to associate file to an Entity in Java code. I can see File.xsd created .But I was not able to map it to any Create or Update methods. Any help would be appreciated.

I get following error trying to update File
“The property 'File.StorageTicket' was denied update because it is a read-only property.

Here is sample SOAP request


<CreateTest xmlns="http://schemas/MyCompanyMigration/Test/operations">
  <ns0:Test-create xmlns:ns0="http://schemas/MyCompanyMigration/Test">
    <ns0:Name>Hello</ns0:Name>
    <ns0:Untitled_Property>world</ns0:Untitled_Property>

        <ns1:FileName>testdocument_v4.pdf</ns1:FileName>
        <ns1:FileSize>121212</ns1:FileSize>
        <ns1:StorageTicket>{"documentURL":"AppWorks/test/MyCompanyMigration/Test/294913/testdocument_v4.pdf","documentName":"testdocument_v4.pdf","documentId":"86291","linked":false}</ns1:StorageTicket>
        <ns1:MimeType>pdf</ns1:MimeType>
        <ns1:LastModified></ns1:LastModified>
      </ns1:File>
  </ns0:Test-create>
</CreateTest>


1 Comment

0

I am able to use fiddler and trace API used by ProcessExperience. I am using http://ServerName/home/OrganizationName/app/entityRestService/Items


Table of Contents

Your comment

To leave a comment, please sign in.