Google Groups Home
Help | Sign in
desperate: custom authentication header
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
jon  
View profile
 More options Apr 28, 2:47 pm
From: jon <JonKin...@gmail.com>
Date: Mon, 28 Apr 2008 11:47:24 -0700 (PDT)
Local: Mon, Apr 28 2008 2:47 pm
Subject: desperate: custom authentication header
So I've been banging my head against the wall for 3 days trying to
figure out how to access a pre-defied web service for a project that
I'm working on. It doesn't use simple http auth, I need to embed my
credentials in the header using some methods defined in the WSDL and
I'm stuck.

I installed soap4r (I think it's installed right, can you check the
version or something at the command line?) but I don't know how to
make sure the new version that I installed is used. I've seen some
things that say you have to put a call in the boot.rb file? That seems
weird. Maybe you don't need that anymore? Info seems scattered and
old.

Anyway, I have generated the driver.rb, defaultDriver.rb,
defaultMappingRegistry.rb and the generic implementation file, mine is
called WsFindCustAcctsServiceClient.rb. I used wsdl2ruby from the live
WSDL but I don't know how to extend the code. I don't know where to
start...

What do I have access to in the WsFindCustAcctsServiceClient.rb file?
Can I access methods in the default.rb file? Does that help me? How do
I use some methods to inject my credentials in the header XML?

I haven't worked with web services before so be gentile... I'm not a
rails noob, but I also haven't gone much further than what is included
in the box.

Any help would be GREATLY appreciated! I'm very nervous about my lack
of progress with this.

Thanks much!
-Jon


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felipe Contreras  
View profile
 More options Apr 28, 3:45 pm
From: "Felipe Contreras" <felipe.contre...@gmail.com>
Date: Mon, 28 Apr 2008 22:45:21 +0300
Local: Mon, Apr 28 2008 3:45 pm
Subject: Re: [soap4r:2435] desperate: custom authentication header

On Mon, Apr 28, 2008 at 9:47 PM, jon <JonKin...@gmail.com> wrote:

>  So I've been banging my head against the wall for 3 days trying to
>  figure out how to access a pre-defied web service for a project that
>  I'm working on. It doesn't use simple http auth, I need to embed my
>  credentials in the header using some methods defined in the WSDL and
>  I'm stuck.

>  I installed soap4r (I think it's installed right, can you check the
>  version or something at the command line?) but I don't know how to
>  make sure the new version that I installed is used. I've seen some
>  things that say you have to put a call in the boot.rb file? That seems
>  weird. Maybe you don't need that anymore? Info seems scattered and
>  old.

ruby -e "require 'soap/soap'; puts SOAP::VERSION"

You can try to check my own driver wrapper:

http://people.freedesktop.org/~felipec/msn/ruby/myDriver.rb

Best regards.
--
Felipe Contreras


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Kinney  
View profile
 More options Apr 28, 9:43 pm
From: "Jonathan Kinney" <jonkin...@gmail.com>
Date: Mon, 28 Apr 2008 20:43:38 -0500
Local: Mon, Apr 28 2008 9:43 pm
Subject: Re: [soap4r:2436] Re: desperate: custom authentication header

Thank you for the reply.

I was able to figure it out. I needed to require some files correctly, and
instantiate the methods that I needed to consume properly. I actually had a
local resource help me get it going.

it looks like this:
http://pastie.textmate.org/private/t825mkt3wdh3xmbcdxqnig

-Jon

On Mon, Apr 28, 2008 at 2:45 PM, Felipe Contreras <


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google