user1598696
user1598696

Reputation: 580

pass parameters to SOAP request in mule esb

I have situation like on picture:

enter image description here

I configured request connector like i did in soap-ui, but I don't know how to build valid SOAP HTTP_Request with uri or query parameters from HTTP listener.

How can I pass those parameters to SOAP HTTP_Request?

Edit: I know that i can put parameters into payload, how can i transform that payload into xml soap request? Is this a right way to do it or there is another way?

Edit2:

I switched to Web service consumer, but i have same problem, i don't know how to get data from http listener payload and map it to Web Service Consumer Request metadata.

enter image description here

Thanks in advance

Upvotes: 3

Views: 1489

Answers (3)

user1760178
user1760178

Reputation: 6697

Read through the following blog post. This provides with detailed information on consuming consuming a SOAP service via a Rest proxy.

http://blogs.mulesoft.com/dev/howto/rest-api-proxy-to-soap-webservice/

or

https://www.mulesoft.com/exchange#!/create-rest-api-proxy-to-soap-web-service

This should help.

Upvotes: -1

Janthem
Janthem

Reputation: 31

if you need to call an operation of a Web Service based on a WSDL, you need to use a WS Consumer block to call it, providing WSDL link in WS block as suggested by Ranveer. To map your input into WS Consumer you can use a Datamapper (Mule 3.6 or below) or a Dataweave (Mule 3.7+). I hope this helps.

Upvotes: 1

Ranveer
Ranveer

Reputation: 35

If your SAOP message is single part then use web services connector and provide WSDL file link to it. It will configure automatic.

In http requester you can see add parameter button so add as much parameter as you doing in SOAPUI..

Upvotes: 0

Related Questions