SOAP Client

R

Robert Peterson

I'm a complete SOAP neophyte. I have managed to hack myself part of the
way to my goal, so I suppose that's good. Anyhow, I guess I'll break
this all down so you all can completely understand what's going on.

I'm trying to create a SOAP client to interact with a SOAP server
provided by a client. Their website shows the proper way of formatting
the SOAP message to send, which I successfully recreated with curl. I
dove into the Ruby (with no help from documentation...because there is
roughly 0 on it that I have found) and I pieced together something like
this:


require 'soap/rpc/driver'
driver = SOAP::RPC::Driver.new('url', nil, 'soapaction_url')
driver.add_method('GetLicensees', 'UserID', 'UserPass')
driver.GetLicensees('user', 'pass')


This works yet doesn't work. I get an Access Denied return message. I
fiddled around here and there and realized one thing, my method is
missing something of (what I think) grave importance. my <GetLicensees>
method is not getting a xmlns="" attribute--and the clients
documentation says it needs a specific one (which we will call
client_xmlns).

So my question is, how do I get add_method (or use another method?) to
add xmlns='client_xmlns' to my <GetLicensees> method.

NOTE: I've taken the exact dump of what my Ruby is creating and sending
to the server and put it into a shell script that uses curl. It fails.
When I had xmlns='client_xmlns' to the <GetLicensees> method it responds
correctly--thus I came to the conclusion of what my problem is. So that
means it's not another issue, so I think.

Thanks in advanced guy, cheers!
-Kotrin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top