2009 Oct 26 2:04 PM
I would like to get suggestion for the following scenario:
I am trying to create a XML file from SAP.
This XML need to be wrapped inside SOAP.
SOAP comprises of ENVELOPE, HEADER and BODY.
I am able to achieve all the above with no issues.
Finally the generated SOAP message need to be then wrapped in MIME Format.
The text for MIME should be similar to this:
Message-ID:<some text>
MIME-Version: 1.0
Content-Type: multipart/etc; boundary="123"
--=123 (MIME boundary)
content-Type:
contect-transfer-encoding:
content-ID:
Note: The above bolded MIME lines should be part of the XML file.
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP envelope>
<SOAP Header>-----
</SOAP Header>
<SOAP Body>
All XML tags inside this body
</SOAP BODY>
</SOAP envelope>
*=123 (End of MIME Boundary)
Using create_simple_element, all the SOAP and XML tags are created successfully.
What would I need to use to insert the MIME texts in bold from above to make it part of the XML file?
If any of you have done something similar to this, could you please share this with me? If you can point me to an example it will be great too.
Thanks,
Raj
Edited by: Rajesh Chathapuram on Oct 26, 2009 7:16 PM
I would like to get suggestion for the following scenario:
I am trying to create a XML file from SAP.
This XML need to be wrapped inside SOAP.
SOAP comprises of ENVELOPE, HEADER and BODY.
I am able to achieve all the above with no issues.
Finally the generated SOAP message need to be then wrapped in MIME Format.
The text for MIME should be similar to this:
Message-ID:<some text>
MIME-Version: 1.0
Content-Type: multipart/etc; boundary="123"
--=123 (MIME boundary)
content-Type:
contect-transfer-encoding:
content-ID:
Note: The above bolded MIME lines should be part of the XML file.
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP envelope>
<SOAP Header>-----
</SOAP Header>
<SOAP Body>
All XML tags inside this body
</SOAP BODY>
</SOAP envelope>
*=123 (End of MIME Boundary)
Using create_simple_element, all the SOAP and XML tags are created successfully.
What would I need to use to insert the MIME texts in bold from above to make it part of the XML file?
If any of you have done something similar to this, could you please share this with me? If you can point me to an example it will be great too.
Thanks,
Raj
Edited by: Rajesh Chathapuram on Oct 26, 2009 7:16 PM
2009 Oct 27 7:21 PM
I have resolved this.
Just had to use a normal transfer (using dataset) to the file hardcoding all MIME related lines.
2016 Feb 09 2:41 PM