Dear SCN Users,

There might a requirement of pulling XMLs from a webservice.

This blog is about achieving the same using Sender SOAP Adapter with AXIS as Transport protocol and writing the XML as output file

Requirment is to get the exchange rates from this below XML link

http://www.geoplugin.net/xml.gp?base_currency=EUR

ESR OBJECTS:

Data Type: Since no transformation in the XML,Same data type at sender and receiver side.

Untitled.png

Message Type: Message Type with above Data Type.

Untitled.png

Service Interfaces: One outbound and one inbound with the Same Message Types defined above.

No need of Message/Operation Mapping as there is no any message transformation.

ID OBJECTS:

Sender Soap Channel With (AXIS Protocol):

Untitled.png

Then Normal File Channel as below and ICO Configurations as per the requirment.

Untitled1.png

Below is the output file written in the file directory.

Capture.JPG

Things to be Noted:

1. If there is no structure created and with enableREST parameter set to ‘true’, and using dummy interfaces below error was thrown.

Untitled1.png

2. without structure and with enableREST parameter not set to ‘true’ below error was thrown.

Capture1.JPG

So with data Structure and setting enableREST parameter to ‘true’ requirment  completed.

Reference Link :Michal’s PI tips: Exchange Rates from an XML file on a web page – REST, AXIS

Reference Note:0001039369

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Maheswarareddy Konda

    Hi Raghu,

    can we handle this URL dynamically at sender side?

    as per michal blog say that , its not possible and if that situation then should for receiver.

    anyway, is ther any update on this now a days.

    (0) 
    1. Raghuraman S Post author

      Hello Mahesh,

      Am not sure of that option.

      Dyanmic URL is possible with Rest adapter but I doubt whether we can acheive the same using soap channel with axis protocol.

      (0) 
  2. Bhargav Srinadh Gundabolu

    Hey Raghuram I have a requirement to callĀ another web-service using SOAP AXIS(Task) sender. I used your blog and the call is made to the other webservice however the service is failing as it is expecting an XML payload.Ā Do you have any idea how to achieve this?

    (0) 

Leave a Reply