wani-amol
7 years agoNew Contributor III
SOAP Execute snap attachment error
Hello All,
Trying to send a zip file to a SOAP service using the SOAP Execute snap. I attach it in the snap but do I need to reference it in the envelope? I mention the filename but I am clueless as to how do I reference the file in the soap envelope. The Sample SOAP payload is below:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns0="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationService/types/"
xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationService/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns0:loadAndImportData>
<ns0:document>
<ns1:Content>$document.Content</ns1:Content>
<ns1:FileName>$document.FileName</ns1:FileName>
<ns1:ContentType>$document.ContentType</ns1:ContentType>
<ns1:DocumentTitle>$document.DocumentTitle</ns1:DocumentTitle>
<ns1:DocumentAuthor>$document.DocumentAuthor</ns1:DocumentAuthor>
<ns1:DocumentSecurityGroup>$document.DocumentSecurityGroup</ns1:DocumentSecurityGroup>
<ns1:DocumentAccount>$document.DocumentAccount</ns1:DocumentAccount>
<ns1:DocumentName>$document.DocumentName</ns1:DocumentName>
<ns1:DocumentId>$document.DocumentId</ns1:DocumentId>
</ns0:document>#foreach($jobList in $jobList)
<ns0:jobList>
<ns1:JobName>$jobList.JobName</ns1:JobName>
<ns1:ParameterList>$jobList.ParameterList</ns1:ParameterList>
<ns1:JobRequestId>$jobList.JobRequestId</ns1:JobRequestId>
</ns0:jobList>#end
<ns0:interfaceDetails>$interfaceDetails</ns0:interfaceDetails>
<ns0:notificationCode>$notificationCode</ns0:notificationCode>
<ns0:callbackURL>$callbackURL</ns0:callbackURL>
</ns0:loadAndImportData>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Any help is appreciated.
-Amol