Skip to Content

Regarding Webservices

Hi,

I am using Webservices as a sender (SOAP)adapter.when Webservices are failed at mapping then I have route to two receivers one for file( error) and one for proxy(Success).

If there are any errors i.e mandatory fields or data format errors then message needs to be routed to multiple receivers based on webservice triggered by third party system.looking for archive option for webservices . how to archive dat once it fails in message mapping? when SOAP as a sender adapter.

Praveen

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 19, 2015 at 02:01 PM

    Hi Praveen,

    You can do a file written at mapping level, however if you don't want to send that message to the receiver, you can use the condition editor on the receiver determination/ICO  to send the XML to the webservice or to the file adapter.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 19, 2015 at 02:10 PM

    Hello Praveen,

    Requirement is to write the file if mapping fails??as Inaki told you can do i using UDF in the mapping.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Praveen,

      I misunderstood you then. In my opinion you can do a SOAP to Proxy scenario. In the mapping you can have a first mapping to check the mandatory fields, you have some interesting @Raghu Vamseedhar Reddy KadipiReddy  blog about to work with java and DOM to work with XML. In this first mapping you can check the mandatory fields, create the file if it is necessary and to produce a second XML. This XML would be the original XML or a second XML with information about the error. Later you can send this message to the proxy, even the error one; it's a good idea to have a Z table on the receiver side to store the fail communications, in this way you can control easily the issue without the necessity to go to the file or the PI monitoring, what do you think?

      Regards.