Need help with soap timeout issue

Discussion in 'Ruby' started by Werner Bohl, Jan 25, 2006.

  1. Werner Bohl

    Werner Bohl Guest

    --------------060904060804060307070705
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: 7bit

    Hi

    Have a Rails 1.0 based Web Service. This service exports many method.
    All run fine except for a methos that takes 60-300 secs to complete.
    This long running method errs when invoked from client, but it passes
    functional tests.
    As attached server log shows, service invocation runs to completion, its
    when delivering response that the error arises. Client receives an error
    html page instead of soap response.
    Did set connection, send and receive timeout options in service client
    driver to 10 minutes.

    Server platform: Windows Server 2003,ruby 1.8.2,latest rails running on
    Apache
    Client platform: Centos 4.2, ruby 1.8.4

    Please help me this is driving me nuts.

    Werner Bohl



    --------------060904060804060307070705
    Content-Type: text/plain;
    name="server_err.txt"
    Content-Transfer-Encoding: 7bit
    Content-Disposition: inline;
    filename="server_err.txt"

    Web Service Request: Batch(runid=>30) Entrypoint: api
    <?xml version="1.0" encoding="utf-8" ?>
    <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
    <n1:Batch xmlns:n1="urn:ActionWebService"
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <runid xsi:type="xsd:int">30</runid>
    </n1:Batch>
    </env:Body>
    </env:Envelope>

    Web Service Response (50.266000): => "COMPLETED"
    <?xml version="1.0" encoding="UTF-8" ?>
    <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
    <n1:BatchResponse xmlns:n1="urn:ActionWebService"
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:string">COMPLETED</return>
    </n1:BatchResponse>
    </env:Body>
    </env:Envelope>
    Sending data
    Completed in 50.28100 (0 reqs/sec) | Rendering: 0.00000 (0%) | DB: 0.23500 (0%) | 200 OK [http://192.168.1.250/Zp4Service/api]


    Processing Base#batch (for 192.168.1.25 at 2006-01-24 12:26:14) [POST]
    Parameters: {"<?xml version"=>"\"1.0\" encoding=\"utf-8\" ?>\n<env:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n <env:Body>\n <n1:Batch xmlns:n1=\"urn:ActionWebService\"\n env:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n <runid xsi:type=\"xsd:int\">30</runid>\n </n1:Batch>\n </env:Body>\n</env:Envelope>", "action"=>"batch", "controller"=>"zp4_service", "runid"=>30}


    Errno::E232 (The pipe is being closed.):
    C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/cgi_process.rb:178:in `flush'
    C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/cgi_process.rb:178:in `out'
    C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch'
    C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:in `process_request'
    C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:in `process!'
    C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in `each_cgi'
    C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each'
    C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi'
    C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in `process!'
    C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:22:in `process!'
    C:/zp4ws/public/dispatch.fcgi:24


    Rendering C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)


    --------------060904060804060307070705--
     
    Werner Bohl, Jan 25, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sham Ramakrishnan
    Replies:
    2
    Views:
    8,374
    Sham Ramakrishnan
    Jul 1, 2003
  2. Replies:
    0
    Views:
    443
  3. Replies:
    1
    Views:
    6,292
  4. Mark Probert

    Timeout::timeout and Socket timeout

    Mark Probert, Oct 6, 2004, in forum: Ruby
    Replies:
    1
    Views:
    1,293
    Brian Candler
    Oct 6, 2004
  5. Replies:
    0
    Views:
    165
Loading...

Share This Page