Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP XML/SOAP/MIME

Former Member
0 Likes
579

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

2 REPLIES 2
Read only

Former Member
0 Likes
495

I have resolved this.

Just had to use a normal transfer (using dataset) to the file hardcoding all MIME related lines.

Read only

0 Likes
495

This message was moderated.