cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP to SOAP+File Synchronous Communication

former_member302452
Participant
0 Kudos

Hi All

We have SOAP(Syn) to SOAP+FIle scenario created.

Now we sending input data from SOAP UI tool and we want to receive response from SOAP UI tool at the same time we want to receive output data file also.

It means I need to have one File receiver adapter and one SOAP receiver adapter to receive response.

i.e., SOAP->File->SOAP

I tried using the RequestResponseBean in Sender SOAP channel.

I’m receiving file but in SOAP UI tool we are not receiving response back.

SOAP Sender channel we added modules:

I created ICO and please suggest we need to add any extra modules to receive channels

Please help me out if any one had experience on this.

Thanks

Regards

Md.Thouheed

Accepted Solutions (0)

Answers (3)

Answers (3)

weberpat
Contributor

Hi Mohammad,

Do I understand correctly that you are trying to send a file via SOAP and post that file to a directory?

What response are you expecting back in you SOAP client? If you can live with just an HTTP response code, could asynchronous SOAP be an option?

This blog describes the end-to-end process of setting up a sync<->async scenario with SOAP on the sender and an FTP server on the receiver side. However, the receiving application would need to produce a file in response to the one you are sending.

Regards,
Patrick

weberpat
Contributor
0 Kudos

OK, so what you want is this:

For that case, I can think of the following approach:

1) You set up a regular synchronous SOAP to SOAP scenario to cater for the request message and the SOAP response back to your client.

2) You set up an second, asynchronous SOAP to File Scenario that accepts an XML message as an input and writes that message to the desired directory on your file system

3) In the SOAP to SOAP scenario, you configure a mapping for the response that sends the entire message to the SOAP Sender you configured in 2) using the SOAP lookup API.

I haven't personally worked with such setup but believe it should work.

Regards,

Patrick

former_member302452
Participant
0 Kudos

Dear Patrik,


Thank you for the response, we need to send a file via SOAP and get a Response from Webservice, and place the response in a file receiver directory as well as send back the response to SOAP Service from where request was received. Hence we have created Sender SOAP adapter to receive Request, Receiver SOAP Adapter to send request to webservice and get the response back, and to place the response back in receiver file adapter we have used Request Response Bean in SENDER SOAP Adapter. We are able to send response back to Either Sender SOAP Adapter or RECEIVER File Adapter. Please let us know how to send response to both adapters.

Thanks

Regards

Md.Thouheed