[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

soap wsa:To

Jeremy Wells

9/20/2006 3:13:00 PM

When I'm trying to use a webservice provided by a .NET server from a
ruby client I get the following error when calling the method:
Server was unable to process the request - The message must contain a
wsa:To header.

How can I instruct ruby to add this header? My code currently looks like
this:

factory = SOAP::WSDLDriverFactory.new(url)
soap_client = factory.create_rpc_driver
soap_client.Method({:arg1 => 1, :arg2 => 2})
--


*Jeremy Wells*
Serval Systems Ltd.

www.servalsystems.co.uk <http://www.servalsystems...
Tel: 01342 331940
Fax: 01342 331950

2 Answers

Jeremy Wells

9/25/2006 9:20:00 AM

0

NAKAMURA, Hiroshi wrote:
> Hi,
>
> You need to define a header handler for wsa:To. A sample header handler
> is in http://dev.ctor.org/soap4r/browser/trunk/sample/soap/... .
> Please let me know in case you can create a header handler for wsa:To.
> I want to add it as a sample of soap4r distribution for other users...
>
Hi, thanks for your reply. I tried adding that header, in fact I had to
try to add the whole addressing header bit from the ws specifications on
Microsofts site. It still didn't work. One question I have is how do you
add xmlns:wsa="whatever" to the soap tag to tell it the wsa namespace?

Eventually I gave up, as the product I'm using provides a soap 1.1
webservices bit as well, which provides less features, I used that
instead. I'll wait until ruby fills in this type of header automatically.

Micky Gemsfinder

11/25/2008 12:28:00 PM

0

Jeremy Wells wrote:
> NAKAMURA, Hiroshi wrote:
>> Hi,
>>
>> You need to define a header handler for wsa:To. A sample header handler
>> is in http://dev.ctor.org/soap4r/browser/trunk/sample/soap/... .
>> Please let me know in case you can create a header handler for wsa:To.
>> I want to add it as a sample of soap4r distribution for other users...
>>
> Hi, thanks for your reply. I tried adding that header, in fact I had to
> try to add the whole addressing header bit from the ws specifications on
> Microsofts site. It still didn't work. One question I have is how do you
> add xmlns:wsa="whatever" to the soap tag to tell it the wsa namespace?
>
> Eventually I gave up, as the product I'm using provides a soap 1.1
> webservices bit as well, which provides less features, I used that
> instead. I'll wait until ruby fills in this type of header
> automatically.

Hi ,
I need to define a wsa header tag in my soap request ... i though that
this post could help me but i can not reach the page behind the link :
http://dev.ctor.org/soap4r/browser/trunk/sample/soap/....

can some one give me a valid link to this page.

thanks.
--
Posted via http://www.ruby-....