From: "NAKAMURA, Hiroshi" Date: 2006-09-24T23:24:13+09:00 Subject: Re: soap wsa:To -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Jeremy Wells wrote: > 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}) 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/authheader . 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... Regards, // NaHi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) iQEVAwUBRRaUyx9L2jg5EEGlAQJBWwf/dW9efnhfaQ5tP1xGqA1kyVKJdYBHZuaG /NtMjC0wnGikIINe+k/cutMFWOtS7c1oCYaPd4hQEQGxkzMvRI7KpQsUJsC6Dana qoLGeKGdTK43P41Hc6IUkQp97927pTfh5dnbPwm2hXUY5JUM4+jf707+8skN843r Q3T8FCdJ8IHNHKVETjcxNgJELi/leqG3wq5mYSUT+Utx9cDqNT1563hlHcLHGzlH 3er/ISHlb7ACiLpV0nm4hinQBRcMh25e/v8i1JqdT187VN2sTe/LEuBmAGuwNIIs xrenbLg53MmhIjiC6tRwFhIFv7XsKPx6R6+WsqNL8EHJ3XHM68iQ1A== =3Ttf -----END PGP SIGNATURE-----