Skip to Content

Empty field data processing in SOAP scenario

Hi guys

I have a scenario. It's from a websevice to CRM system.

The user clicks on a button on webservice, the webservice should call the CRM through PI and then pass all the details. They need the customer name and Customer number. If there are hundreds of customers they need all the details.

I was thinking of creating a sender data type like

DT_XYZ

     Flag

Create wsdl and give it to the webpage team.

Use proxy at target side and ask the ABAP developers to ignore the field Flag and send all customers in the target.

There is no data in the sender side.

I cannot tell them to send some dummy data in the wsdl. Will this work without any data being send in the source?

1) Is this the right approach? Or can I use REST for this?

2) Is it better to configure this a two asynchronous senarios or a synchrnous scenario?

Regards

Harish Babu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jun 09, 2015 at 12:43 PM

    >>>The user clicks on a button on webservice, the webservice should call the CRM through PI and then pass all the details. They need the customer name and Customer number. If there are hundreds of customers they need all the details.

    How do the CRM system knows that it should return one customer/multiple customer's? There should be some identifier right?

    >>>1) Is this the right approach? Or can I use REST for this?

    Approach would be same. protocol(Rest/Soap) depends on your application.

    >>>2) Is it better to configure this a two asynchronous senarios or a synchrnous scenario?

    Obviously it has to be a synchronous scenario. Once the user clicks a button he wait for the response. It's not like submit & track.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Inaki,

      I have synchronous sender and receiver. In PO, I am able to see only the request message after mapping, and I have assigned a value 1 in mapping to the Flag field.

      I added the paramters for logging synchronous messages but I guess I need them to trigger again to see the exact request message.

      I think they are simply sending the payload without any value for Flag field. Like you said, I have maintained it as a non mandatory field

      Regards

      Harish

  • Jun 09, 2015 at 12:38 PM

    Hi Harish,

    IMO:

    1) Is this the right approach? Or can I use REST for this?

    If you use Rest you can avoid the XML tags that involve some extra data that increase the final size. However, you should do a test first in order to know how payload will be taken.

    2) Is it better to configure this a two asynchronous senarios or a synchrnous scenario?

    Definitely, if the message can be bigger than 3 or 5Mb you should use two asynchronous scenarios.

    I cannot tell them to send some dummy data in the wsdl. Will this work without any data being send in the source?

    For your  commodity i think with a dummy field you won't need to hesitate with the request, but you can do a dummy mapping with a constant to the proxy flag and to forget the request payload.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Inaki,

      Thanks for the help !

      I was thinking of creating a sender data type like

      DT_XYZ

           Flag.

      Then I create wsdl and give them to the webpage. They wil just click on a button and they will not send any data. Will this work? I mean will the message reach PI?

      Harish