Sending Document via SOAP

Posted on Posted in SAP Business ByDesign

Save this article as PDF?


What is SOAP

SOAP (Simple Object Access Protocol) is a messaging protocol that allows programs that run on disparate operating systems (such as Windows and Linux) to communicate using Hypertext Transfer Protocol (HTTP) and its Extensible Markup Language (XML).SelectedDocType

What is SOAPUI?

SoapUI is an open-source web service testing application for service-oriented architectures (SOA) and representational state transfers (REST). Its functionality covers web service inspection, invoking, development, simulation and mocking, functional testing, load and compliance testing.

Download link: https://www.soapui.org/downloads/soapui.html

SelectedDocType

In this article, we are going to learn about, how to send the document via SOAP web service.

I took a simple example, to explain this scenario.

So, I would like to document it here and let you know the same so that it will stay as a reference to everyone.

Tenant: SAP Business ByDesign.

Example: Creating Identified stock with Attachment folder via SOAP web service.

Scenario: Creating Identified stock in SAP Cloud Solution.


Save this article as PDF?


Pre-knowledge:

  1. Consuming SOAP Web service from SAP Business ByDesign

Pre-Requisites:

  1. Working Identified stock web service (.wsdl file)
  2. SOAPUI Interface

In an upcoming article, I will be dropping more info on SOAP web services.


 Process Flow:

  1. Convert a document into binary format
  2. Test a web service through SOAPUI
1. Convert document into binary format
  1. There are more websites are available to convert in BASE64 format.
    (Example, http://www.motobit.com/util/base64-decoder-encoder.asp)

    1. Convert your file into Base64 format
    2. Copy the converted data to your local computer

For example, your base64 data looks like,

LnhtbFBLAQItABQABgAIAAAAIQCxP7hq2BwB3b3JkL3dlYlNldHRpbmdzLnhtbFBLAQItAB
QABgAIA2NQcm9wcy9hcHAueG1sUEscy9hcHAueG1sUFB0AegcAAHO7BwAAAA==


Save this article as PDF?


2. Test a web service through SOAPUI
  1. Create a SOAP project in SOAPUI with the downloaded .wsdl file.
  2. Enter Login details.
  3. Give all necessary field values.
  4. Copy & Paste your binary data into Document -> FileContent -> BinaryObject as shown in the below file.
  5. Run your project.
  6. Check the response.

SelectedDocType

 

We have learned about how to send attachment document via SOAP Webservice, and in the future article, we will learn more about it. Don’t forget to subscribe my blog and leave your comments to improve this article.

Do you want to download this article?

29 thoughts on “Sending Document via SOAP

  1. Aw, this was a really nice post. Finding the time and actual effort to generate a top notch article… but what can I say… I put things off a lot and never manage to get anything done.

  2. I’ve been exploring for a little for any high quality articles or blog posts on this kind of area . Exploring in Yahoo I ultimately stumbled upon this website. Studying this information So i’m happy to show that I have an incredibly good uncanny feeling I discovered just what I needed. I so much definitely will make certain to do not forget this web site and provides it a look on a relentless basis.

  3. Hey woul yyou mindd statin whih blg plwtform you’re working with?

    I’m planning too stardt mmy own blog in thee near
    future butt I’m havng a hard tiime choosing betwwen BlogEngine/Wordpress/B2evolution and Drupal.

    The reason I askk iss because your design seems different theen mot blkgs and
    I’m ooking ffor somethin complletely unique. P.S My apologies forr gedtting
    off-topic but I hadd tto ask! I vksited multiple webstes
    however tthe udio eature forr auddio ongs ecisting aat thiks site is
    grnuinely marvelous. It is appropriate tkme
    too maake a feww plas ffor thee futre and
    itt iss time to be happy. I’ve rread this puiblish aand iff I mmay ust I want too counsel yyou
    feew attention-grabbing isues or advice. Perhps yyou could writ ext articles referring
    tto thiks article. I wksh tto read mre isshes approximately it!

    http://foxnews.co.uk

  4. Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something.
    I think that you could do with a few pics to drive the message home a bit, but instead of that,
    this is excellent blog. A fantastic read. I will certainly be back.

  5. It’s appropriate time to make some plans for the future and it is time to
    be happy. I’ve read this post and if I could I wish to suggest you some interesting things or tips.
    Perhaps you could write next articles referring to this article.
    I wish to read even more things about it!

Leave a Reply

Your email address will not be published. Required fields are marked *