cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound Web Service with Attachment

former_member565051
Participant
0 Kudos
354

Hello,

I have a requirement where i need to process the attachment (PDF) from the SOAP Web Service in the ECC.

I have created the web service but when i try to attach file, i am not able to handle in ECC Side.

Kindly let me know which steps I need to configure in ECC Side to handle the attachment.

TIA,

Ajay

Sandra_Rossi
Active Contributor

Sorry, your question is missing the details. Creating a Web service with any information inside it (document or whatever) is easy, but there are many many ways to do it.

Sandra_Rossi
Active Contributor
0 Kudos

To decode base64, be careful, there can be some variants of base64. If it contains:

  • Characters A-Za-z0-9+/= (classic) : use cl_http_utility->decode_x_base64 to decode it
  • Characters A-Za-z0-9-_= (rare) : convert - to + and _ to / and use the conversion above
former_member565051
Participant
0 Kudos

Thanks Sandra for your input.

I tried cl_http_utility->Decode_Base64 only but got mixed values.

Some converted and some gibberish. (I am attaching the screenshot).

How can i get fully converted values?

TIA,

Ajay

View Entire Topic
former_member565051
Participant
0 Kudos

Hello sandra.rossi,

What i can tell you now is that, we are receiving the BASE64 encoded string (converted from pdf at CPI end) from a inbound web service, and from that Base64, we need to decode it to get the order related data.

I am using cl_http_utility->decode_x_base64 method to get the xstring and then method 'xstring_to_solix' to get the decoded data. But i am not getting proper data.

What other FMs i need to use to get the correct data?

Thanks,

Ajay

Sandra_Rossi
Active Contributor

Please use the COMMENT button for comments, questions, adding details, replying to a comment or a proposed solution or to the OP question, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.