4 Replies Latest reply on Jun 4, 2020 6:22 AM by Sunil Sahoo

    Not able to access PIM REST services from AVOS

    Sunil Sahoo New Member

      HI Experts,

       

      Trying to call PIM REST services from AVOS workflow for uploading files to PIM Shared location.

       

      We have a workflow which accepts File as attachment this works fine in ActiveVOS , however when further we are trying to upload this file to PIM Server via its File Upload REST service we are getting below Error :

       

       

      500 - The server sent HTTP status code 404: ProxyServlet: /

      Faulted: {http://www.active-endpoints.com/2004/06/bpel/extensions/}ClientTransportException

       

       

      Rest Request Body :

       

      <rest:RESTRequest xmlns:rest="http://schemas.activebpel.org/REST/2007/12/01/aeREST.xsd">

          <rest:method>POST</rest:method>

          <rest:pathInfo>rest/V1.0/manage/file</rest:pathInfo>

           <rest:params>

               <rest:param name="originalFilename"

                           value="{$uploadedFileName}"/>

            </rest:params>

            <rest:headers>

           <rest:header name="Content-Type" value="application/octet-stream"/>

           <rest:header name="accept" value="application/json"/>

           </rest:headers>

           <rest:payload contentType="application/octet-stream"> </rest:payload>

           <rest:locales>

               <rest:locale country="US" lang="en">en_US</rest:locale>

            </rest:locales>

      </rest:RESTRequest>

       

      PDD :

       

      <wsa:EndpointReference xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

         <wsa:Address>http://pimhost:1521</wsa:Address>

         <wsa:Metadata>

            <wsp:Policy xmlns:abp="http://schemas.active-endpoints.com/ws/2005/12/policy" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">

           <abp:Authentication direction="out">

            <abp:User>uuuuu</abp:User>

            <abp:CleartextPassword>ppppp</abp:CleartextPassword>

           <abp:HTTPPreemptive/>

         </abp:Authentication>

      </wsp:Policy>

         </wsa:Metadata>

      </wsa:EndpointReference>