โ07-27-2020 07:09 AM
I am using the following envelope in a SOAP execute snap to transfer a file using MTOM and it is failing but the same envelope in SoapUI works (only difference is that in snaplogic I use a variable to pass the filename):
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ucm="http://www.oracle.com/UCM">
<soapenv:Header/>
<soapenv:Body>
<ucm:GenericRequest webKey="cs">
<ucm:Service IdcService="CHECKIN_UNIVERSAL">
<ucm:Document>
<ucm:Field name="dDocTitle">Department Load File</ucm:Field>
<ucm:Field name="dDocType">Document</ucm:Field>
<ucm:Field name="dDocAuthor">[sakthisundarajan.rajaram@drivestream.com</ucm:Field](mailto:sakthisundarajan.rajaram@drivestream.com%3c/ucm:Field)>
<ucm:Field name="dSecurityGroup">FAFusionImportExport</ucm:Field>
<ucm:Field name="dDocAccount">hcm$/dataloader$/import$</ucm:Field>
<ucm:Field name="primaryFile">$filename1</ucm:Field>
<ucm:File name="primaryFile" href="$filename1">
<ucm:Contents>cid:$filename1</ucm:Contents>
</ucm:File>
</ucm:Document>
</ucm:Service>
</ucm:GenericRequest>
</soapenv:Body>
</soapenv:Envelope>
โ07-27-2020 07:23 AM
The error suggests to me that there may be something wrong with the filename or how it is being passed. Here is part of the response, and below that are screen shots of some of my settings:
{โ@IdcServiceโ:โCHECKIN_UNIVERSALโ,โns2:Documentโ:{โns2:Fieldโ:{โ@nameโ:โerrorโ,โ$โ:โError: java.lang.reflect.InvocationTargetExceptionโ}}}}}}
โ08-02-2020 07:48 AM
Hi swright,
Good day, I think you might need to add the xop node as per document (https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1437963/SOAP+Execute)
I donโt see the xop node in your soap envelope
Thanks,
EmEm
โ08-03-2020 04:56 AM
Thanks EmEm! I tried this but it still doesnโt work. Here is the envelope I used to try it with:
<soapenv:Envelope
xmlns:soapenv=โhttp://schemas.xmlsoap.org/soap/envelope/โ
xmlns:ucm=โhttp://www.oracle.com/UCMโ>
xmlns:ns0=โhttp://www.snaplogic.com/snapbox/mtomโ>
soapenv:Header/
soapenv:Body
<ucm:GenericRequest webKey=โcsโ>
<ucm:Service IdcService=โCHECKIN_UNIVERSALโ>
ucm:Document
<ucm:Field name=โdDocTitleโ>Department Load File</ucm:Field>
<ucm:Field name=โdDocTypeโ>Document</ucm:Field>
<ucm:Field name=โdDocAuthorโ>SKIDMORE.INT</ucm:Field>
<ucm:Field name=โdSecurityGroupโ>FAFusionImportExport</ucm:Field>
<ucm:Field name=โdDocAccountโ>hcm$/dataloader$/import$</ucm:Field>
<ucm:Field name=โprimaryFileโ>$filename</ucm:Field>
ns0:File
<xop:Include
xmlns:xop=โhttp://www.w3.org/2004/08/xop/includeโ
href=โcid:ScottSkidID_Snap1โ/>
</ns0:File>
</ucm:Document>
</ucm:Service>
</ucm:GenericRequest>
</soapenv:Body>
</soapenv:Envelope>
BTW - I also changed the Content_ID:
Thanks,
Scott