# Soap Client Issue passing Param

**URL:** <https://www.ruby-forum.com/t/soap-client-issue-passing-param/87204>\
**Category:** Rails\
**Created:** [February 28, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/soap-client-issue-passing-param/87204 "2007-02-28T21:18:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 28, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/soap-client-issue-passing-param/87204/1 "2007-02-28T21:18:12Z")

</div>

I had a quick question about setting up a soap client

I am attempting to setup a SOAP client with a shipping company to get  
realtime tracking information.

Here is the function I have written for it:

def self.get\_yellow\_shipping\_status(pro\_number)

XSD::Charset.encoding = ‘UTF8’  
tracking\_number = “#{pro\_number}”

wsdl = “[http://www.myyellow.com/dynamic/services/content/ecommerce/](http://www.myyellow.com/dynamic/services/content/ecommerce/)  
etools/webservices/gtsimplfbn.wsdl”

soap\_client = SOAP::WSDLDriverFactory.new(wsdl).create\_rpc\_driver

```
# Log SOAP request and response
@result = soap_client.getGenTrackingStatus("0475135680")
puts @result.inspect

```

end

When I run the function I am able to return information from the  
yellow server, but I am getting an error code of 99. I have been in  
contact with the developers and they are saying that the PRONumber is  
not getting submitted to them. This number is the only parameter that  
this function expects. I manually added the pro # here “0475135680”  
and am at a loss for why it is not submitting the pronumber to the  
yellow soap server. Any hints or tips would be greatly appreciated.
