Topic
  • 2 replies
  • Latest Post - ‏2013-11-14T13:23:47Z by chauble
chauble
chauble
2 Posts

Pinned topic Need an Example - Pass Attachments from Workflow to Web Service via XML

‏2013-11-06T14:29:19Z |

Here's what we are trying to do:

From a Workflow we are connecting to/calling (using an invoke Step) an external web service (provided by Adobe LiveCycle). The invoke step needs to pass some fields of information and attachments that are selected in the Workflow to the Web Service via outgoing XML. 

We know that the Web Service connection works, we can pass some minor hard coded information via the outgoing XML to the Adobe side of things and verify that it got there.

 

Example provided via the Adobe WSDL of the XML we need to use - the comments below are correct but the problem is that we don't know how to do what they are suggesting

So, seems all the different attribute values within <item> needs to be populated in the right format, say <MTOM> and <binaryData> need to be base 64 encoded and others are string format. 
 
"<invoke xmlns=""http://adobe.com/idp/services"">"+
    "<inDocList>"+
        "<!--item is an array of 0 to unbounded element(s)-->"+
        "<!--Start of an array element-->"+
        "<item>"+
            "<contentType>"+ _string +"</contentType>"+
            "<binaryData>"+ _base64Binary +"</binaryData>"+
            "<attachmentID>"+ _string +"</attachmentID>"+
            "<remoteURL>"+ _string +"</remoteURL>"+
            "<MTOM>"+ _base64Binary +"</MTOM>"+
            "<swaRef>"+ _anyURI +"</swaRef>"+
            "<attributes>"+
                "<!--item is an array of 0 to unbounded element(s)-->"+
                "<!--Start of an array element-->"+
                "<item>"+
                    "<key>"+ _string +"</key>"+
                    "<value>"+ _anyType +"</value>"+
                "</item>"+
                "<!--End of an array element-->"+
            "</attributes>"+
        "</item>"+
        "<!--End of an array element-->"+
    "</inDocList>"+
"</invoke>"

Updated on 2013-11-06T14:30:13Z at 2013-11-06T14:30:13Z by chauble
  • sumany
    sumany
    1 Post

    Re: Need an Example - Pass Attachments from Workflow to Web Service via XML

    ‏2013-11-14T13:02:01Z  

    Hi,

    You can pass the FileNet document (GUID)ids in the xml along with index key information from FileNet workflow and from external system you can write the program to download the document.

     

     

  • chauble
    chauble
    2 Posts

    Re: Need an Example - Pass Attachments from Workflow to Web Service via XML

    ‏2013-11-14T13:23:47Z  
    • sumany
    • ‏2013-11-14T13:02:01Z

    Hi,

    You can pass the FileNet document (GUID)ids in the xml along with index key information from FileNet workflow and from external system you can write the program to download the document.

     

     

    Thanks for the reply, but I don't have any way to modify the external web service it is expecting an attachment