You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by ti...@hsbc.ca on 2002/08/22 20:39:52 UTC

Multiple SOAP requests

                                                                                                                                               
                                                                                                                                               
 I wrote a very simple SOAP service, it takes a String and returns the reversed value.                                                         
                                                                                                                                               
                                                                                                                                               
 I then wrote a client that can send and receive the SOAP message. This works fine.                                                            
                                                                                                                                               
                                                                                                                                               
 To test performance I made my client implement Runnable, created 20 Threads each with a new Client and set them all going.                    
                                                                                                                                               
                                                                                                                                               
 Some responses produce the following exception on the server:                                                                                 
                                                                                                                                               
                                                                                                                                               
 [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: Connection refused: no further information;                              
 targetException=java.lang.IllegalArgumentException: Error opening socket: Connection refused: no further information]                         
          at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:333)                                               
          at org.apache.soap.rpc.Call.invoke(Call.java:217)                                                                                    
          at proxy.soap.tws.soapthread.BPMProxy.reverse(BPMProxy.java:61)                                                                      
          at tws.soapthread.Client.run(Client.java:65)                                                                                         
          at java.lang.Thread.run(Thread.java:498)                                                                                             
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
 From what I can tell this happens when the server (Apache SOAP version 2.2 or 2.3.1) tries to create a Socket to return it's response.        
                                                                                                                                               
                                                                                                                                               
 I get varied results, sometimes only 1 or 2 threads have a problem, sometimes it's a lot more. I can run 15 threads without any problems. As  
 the number increases the more likely the chance of some failing.                                                                              
                                                                                                                                               
                                                                                                                                               
 Has anybody come across this?                                                                                                                 
 Can anybody help explain what is happening?                                                                                                   
                                                                                                                                               
                                                                                                                                               
 Thanks,                                                                                                                                       
                                                                                                                                               
                                                                                                                                               
 Tim.