Forum Discussion
I almost mentioned that you could allow the Binary to Document to encode_base64 and can probably even skip the Mapper snap before the SOAP Execute, assuming there are no other values you need to push into the envelope.
I’m not sure why the Mapper would have an error that $content is undefined after the Binary to Document snap as that is the point of that snap, unless maybe the input view of the Mapper is not really linked. When you Validate, open up the Mapper and make sure you see fields in the Input Schema. If there are no fields listed in the Input Schema, you probably didn’t link the Mapper to the Binary to Document.
Kory,
I was not seeing the Input Schema but the snaps were all connected and seemed to be linked. Is there something special that I have to do to link them other than just connecting them to each other in the GUI? After reading your last message I was looking around for the problem and suddenly I could see the Input Schema and it validated! Somehow I must have caused them to be link I guess… but I don’t know how.
I’ll probably continue using the mapper because I have more items to map anyway.
I found a post that seems closely related to what I am trying to do:
https://community.snaplogic.com/t/soap-execute-snap-attachment-error/5201
I’ll probably use an envelope based on the one they are using so I will probably be passing most of those variables using the Mapper Snap.
They seem to have solved their problem by using something like the following and NOT using base64 so I’m not sure if I should something like that:
<xop:Include
xmlns:xop=“http://www.w3.org/2004/08/xop/include” href=“cid:ArAutoinvoiceImport.zip”/>
</erp:Content>
It seems like this requires mtom. They didn’t mention exactly how they changed the envelope to do this.
Can I (should I) use mtom somehow?
Thanks,
Scott
Hi swright,
Have you tried sending the request manually? I usually try the Soap service first using Soap-UI then once that I have successfully invoked the soap service and got a response, I will use the Soap-UI request as my template. Hope this helps