# How to send whole file and get response from webservice

**URL:** <https://www.ruby-forum.com/t/how-to-send-whole-file-and-get-response-from-webservice/194999>\
**Category:** Ruby\
**Created:** [September 15, 2010, 6:58am UTC](https://www.ruby-forum.com/t/how-to-send-whole-file-and-get-response-from-webservice/194999 "2010-09-15T06:58:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![djoshi26](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@djoshi26](https://www.ruby-forum.com/u/djoshi26)\
**Post date:** [September 15, 2010, 6:58am UTC](https://www.ruby-forum.com/t/how-to-send-whole-file-and-get-response-from-webservice/194999/1 "2010-09-15T06:58:20Z")

</div>

Hi,

I have problem doing the following.

I need to pass an xml file to a webservice URL and get the reponse.

1. I have the URL of the webservice.
2. I have the URL to view WSDL file.
3. I have the file which i want to send.

Can someone please help me for this?

---

<div class="post-metadata">

**Author:** ![djoshi26](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@djoshi26](https://www.ruby-forum.com/u/djoshi26)\
**Post date:** [September 15, 2010, 9:27am UTC](https://www.ruby-forum.com/t/how-to-send-whole-file-and-get-response-from-webservice/194999/2 "2010-09-15T09:27:44Z")

</div>

On Sep 14, 2010, at 21:58 , Dinesh Joshi wrote:

> I have problem doing the following.
> 
> I need to pass an xml file to a webservice URL and get the reponse.
> 
> 1. I have the URL of the webservice.
> 2. I have the URL to view WSDL file.
> 3. I have the file which i want to send.
> 
> Can someone please help me for this?

How much are you getting paid for this gig, and how much of a cut are  
you offering for assistance?

---

<div class="post-metadata">

**Author:** ![djoshi26](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@djoshi26](https://www.ruby-forum.com/u/djoshi26)\
**Post date:** [September 15, 2010, 11:00am UTC](https://www.ruby-forum.com/t/how-to-send-whole-file-and-get-response-from-webservice/194999/3 "2010-09-15T11:00:35Z")

</div>

Ryan D. wrote:

> On Sep 14, 2010, at 21:58 , Dinesh Joshi wrote:
> 
> > I have problem doing the following.
> > 
> > I need to pass an xml file to a webservice URL and get the reponse.
> > 
> > 1. I have the URL of the webservice.
> > 2. I have the URL to view WSDL file.
> > 3. I have the file which i want to send.
> > 
> > Can someone please help me for this?
> 
> How much are you getting paid for this gig, and how much of a cut are  
> you offering for assistance?

Its for my work. So neither i am offering anyting nor i am getting paid.  
Thanks for your reply

---

<div class="post-metadata">

**Author:** ![djoshi26](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@djoshi26](https://www.ruby-forum.com/u/djoshi26)\
**Post date:** [September 15, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/how-to-send-whole-file-and-get-response-from-webservice/194999/4 "2010-09-15T15:17:54Z")

</div>

Dinesh Joshi wrote:

> Its for my work. So neither i am offering anyting nor i am getting paid.

You don’t get paid for your work?!

Seriously: we’re happy to assist when you get stuck on a problem, but  
not do the whole thing for you. Please follow the advice given here:  
[http://www.catb.org/~esr/faqs/smart-questions.html#intro](http://www.catb.org/~esr/faqs/smart-questions.html#intro)

If you really don’t know where to start, then look for Net::HTTP (which  
gives you a low-level interface to HTTP POST operations), or soap4r  
(which gives you a high-level interface to SOAP operations, e.g. it can  
use the WSDL to create an object API)
