Re: [Dev] Fwd: Call Third party web service and Enriching the original message

2017-09-26 Thread Sudharma Subasinghe
Hi Vivek,

You can use Iterate mediator with Aggregate mediator for your scenario as
in [1]. I have tried it with following synapse config in ESB.


 

   
  
  
 

   
  http://localhost:8280/services/testProxy"/>
   



   
   

 
 
  
  
 
 
  
  
   

 
  
  
 

 
 

   


   

 
  


[1] https://docs.wso2.com/display/ESB500/Sample+400%3A+Message+
Splitting+and+Aggregating+the+Responses

Thanks
Sudharma

On Fri, Sep 15, 2017 at 12:09 PM, Malaka Silva  wrote:

> +Dev
> -- Forwarded message --
> From: Vivek Kumar 
> Date: Fri, Sep 15, 2017 at 10:47 AM
> Subject: Call Third party web service and Enriching the original message
> To: "mal...@wso2.com" 
>
>
> Hi Malaka,
>
> I have below requirement.I have generated below scenario:
>
> Original envelope(original.xml):
>
> 
>
> 
>
>   a
>
> 
>
> 
>
>   
>
> c
>
> 
>
> 
>
> 
>
> a
>
> 
>
> 
>
> 
>
> x
>
> 
>
> 
>
> 
>
> When  contains value "a" like a
>
> We need to call another web service and get response
>
>
>
> Response is like below:
>
> 
>
> someLink.com
>
> test
>
> test
>
> test
>
> test
>
> 
>
> Then,
>
> Original envelope should to be enrtich as below using data  tag of
> above response:
>
> 
>
> 
>
>   a
>
> someLink.com
>
> 
>
>   
>
> c
>
> 
>
> 
>
> 
>
> a
>
> someLink.com
>
> 
>
> 
>
> x
>
> 
>
> 
>
> 
>
>
>
> Please help me how to achieve this in WSO2ESB.
>
>
>
>
>
>
>
> *Vivek Kumar*
>
> *Associate System Analyst*
>
> *Office:  *+91-120-4737401 <+91%20120%20473%207401>
>
> *Mobile*: +91 8588897434 <+91%2085888%2097434>
>
> *Email*:vivku...@salmon.com 
>
> *Skype:*   vivekhereatskype
>
>
>
>
>
> Information contained in this e-mail and any attachments is confidential
> and intended for the use of the addressee only. Dissemination,
> distribution, copying or use of this communication without prior permission
> of the addressee is strictly prohibited. If you have received this
> transmission in error, please advise the originator by reply e-mail and
> delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector
> 57, Noida (U.P.) 201301
> .
> Registered in India U72200DL2003PTC120356.
>
>
>
>
> Information contained in this e-mail and any attachments is confidential
> and intended for the use of the addressee only. Dissemination,
> distribution, copying or use of this communication without prior permission
> of the addressee is strictly prohibited. If you have received this
> transmission in error, please advise the originator by reply e-mail and
> delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector
> 57, Noida (U.P.) 201301
> .
> Registered in India U72200DL2003PTC120356.
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Associate Director / Architect
> M: +94 777 219 791 <+94%2077%20721%209791>
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> https://wso2.com/signature
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care
>
> ___
> Dev mailing list
> Dev@wso2.org
> 

[Dev] Fwd: Call Third party web service and Enriching the original message

2017-09-15 Thread Malaka Silva
+Dev
-- Forwarded message --
From: Vivek Kumar 
Date: Fri, Sep 15, 2017 at 10:47 AM
Subject: Call Third party web service and Enriching the original message
To: "mal...@wso2.com" 


Hi Malaka,

I have below requirement.I have generated below scenario:

Original envelope(original.xml):





  a





  

c







a







x







When  contains value "a" like a

We need to call another web service and get response



Response is like below:



someLink.com

test

test

test

test



Then,

Original envelope should to be enrtich as below using data  tag of
above response:





  a

someLink.com



  

c







a

someLink.com





x









Please help me how to achieve this in WSO2ESB.







*Vivek Kumar*

*Associate System Analyst*

*Office:  *+91-120-4737401 <+91%20120%20473%207401>

*Mobile*: +91 8588897434 <+91%2085888%2097434>

*Email*:vivku...@salmon.com 

*Skype:*   vivekhereatskype





Information contained in this e-mail and any attachments is confidential
and intended for the use of the addressee only. Dissemination,
distribution, copying or use of this communication without prior permission
of the addressee is strictly prohibited. If you have received this
transmission in error, please advise the originator by reply e-mail and
delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector
57, Noida (U.P.) 201301
.
Registered in India U72200DL2003PTC120356.




Information contained in this e-mail and any attachments is confidential
and intended for the use of the addressee only. Dissemination,
distribution, copying or use of this communication without prior permission
of the addressee is strictly prohibited. If you have received this
transmission in error, please advise the originator by reply e-mail and
delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector
57, Noida (U.P.) 201301
.
Registered in India U72200DL2003PTC120356.



-- 

Best Regards,

Malaka Silva
Associate Director / Architect
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev