From: David Maria Date: 2010-05-08T03:38:44+09:00 Subject: Re: NANWSI: Not Another .NET Web Service Issue I did exactly what noisefree did but getting below error Fast Debugger (ruby-debug-ide 0.4.6) listens on localhost:3509 JRuby limited openssl loaded. gem install jruby-openssl for full support. http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL Wire dump: opening connection to 192.168.24.76... opened <- "POST /BSSWebService/Test.asmx HTTP/1.1\r\nContent-Type: text/xml; charset=utf-8\r\nSoapaction: \"http://tempuri.org/MyName\"\r\nUser-Agent: SOAP4R/1.5.5\r\nAccept: */*\r\nHost: 192.168.24.76\r\nContent-Length: 368\r\n\r\n" <- "\n\n \n \n testString\n \n \n" -> "HTTP/1.1 500 Internal Server Error\r\n" -> "Date: Fri, 07 May 2010 18:28:15 GMT\r\n" -> "Server: Microsoft-IIS/6.0\r\n" -> "X-Powered-By: ASP.NET\r\n" -> "X-AspNet-Version: 2.0.50727\r\n" -> "Cache-Control: private\r\n" -> "Content-Type: text/xml; charset=utf-8\r\n" -> "Content-Length: 934\r\n" -> "\r\n" reading 934 bytes... -> "soap:ClientSystem.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org/MyName.\r\n at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()\r\n at System.Web.Services.Protocols.SoapServerProtocol.Initialize()\r\n at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)\r\n at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)" read 934 bytes Conn keep-alive soap:ClientSystem.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org/MyName. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) : System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org/MyName. (SOAP::FaultError) at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) What could be the problem My code module RechnerServiceModule InterfaceNS = 'http://tempuri.org/MyName' Methods=[['MyName','inpstr']] def RechnerServiceModule.add_method(drv) Methods.each do |method, *param| drv.add_method_with_soapaction(method, InterfaceNS, *param) end end end require 'rubygems' require "soap/rpc/driver" #require "RechnerServiceModule" include RechnerServiceModule server = 'http://192.168.24.76/BSSWebService/Test.asmx' wiredump_dev=STDERR service = SOAP::RPC::Driver.new(server, RechnerServiceModule::InterfaceNS) #service.use_default_namespace = true service.default_encodingstyle = SOAP::EncodingStyle::ASPDotNetHandler::Namespace service.wiredump_dev=wiredump_dev RechnerServiceModule::add_method(service) result = service.MyName("testString") print("Result: ", result) -- Posted via http://www.ruby-forum.com/.