Forum tags


Top Posters

Last 30 days

  • ravinderjit.singh (29)
  • Antoine (26)
  • danielandross (17)
  • venkaiah.k (16)
  • shao (14)
  • sirswendu.ganapati (13)
  • eva.das (13)
  • metabyte (12)
  • milos.vacek (7)
  • cristiano.quintao (7)

All time

  • Antoine (1492)
  • Shivanand (1194)
  • cshekhar (928)
  • psq (796)
  • jag (391)
  • metabyte (383)
  • arnaud (328)
  • jalateras (325)
  • dfrench (271)
  • venkaiah.k (214)

Show last 4 hrs - 12 hrs - 24 hrs

POLL

We are looking for more information to tailor our training to better meet the needs of our customers. Please indicate all options that apply.

I would like to attend specialized training from Intalio on BPM as it relates to my application area:


I would like to attend specialized training from Intalio on BPM as it relates to my job function:


I would like to attend specialized training from Intalio on BPM as it relates to my industry:

Login

MAIN arrow FORUMS
Time-out error when calling a soap php script (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Time-out error when calling a soap php script
#16188
robert.sommer (User)
Junior Boarder
User Offline Click here to see the profile of this user
Time-out error when calling a soap php script 3 Months, 3 Weeks ago Karma: 0  
Hello everyone,

I try to call per https a simple webservice from a process using a self-made WSDL file.
However the process ends up with a time out error on the servcer console.

Do I do sth. wrong or do I have to set some special configuration?

I use the following configuration:

Address: https://localhost:8080/test/include/soap/
Name: hello
Prefix: tns
Target namespace: urn://test/res

In the following I attached to code for the simple soap server made by php script:

Code: :

  <?php function hello$someone ) {   return "Hello " $someone "!"; }    $server = new SoapServer(null,       array('uri' => "urn://test/res"));    $server->addFunction("hello");    $server->handle(); ?>



here the simple and well-working client php script:

Code: :

   <?php # HelloClient.php # Copyright (c) 2005 by Dr. Herong Yang #    $client = new SoapClient(null, array(       'location' => "https://localhost:8080/test/include/soap/",       'uri'      => "urn://test/res",       'trace'    => ));    $return $client->__soapCall("hello",array("world")); echo "<br>";    echo("_CRLF_Returning value of __soapCall() call: ".$return); echo "<br>";    echo("_CRLF_Dumping request headers:_CRLF_"       .$client->__getLastRequestHeaders());    echo "<br>";    echo("_CRLF_Dumping request:_CRLF_".$client->__getLastRequest()); echo "<br>";    echo("_CRLF_Dumping response headers:_CRLF_"       .$client->__getLastResponseHeaders()); echo "<br>";    echo("_CRLF_Dumping response:_CRLF_".$client->__getLastResponse()); ?>




Thanks and best regards

Robert Sommer
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#16201
Antoine (Admin)
Admin
User Offline Click here to see the profile of this user
Re:Time-out error when calling a soap php script 3 Months, 3 Weeks ago Karma: 28  
A timeout occurs if the time taken to reply is too long. I would recommend that you try calling your service with SOAPUI first, and then try from a process.

Thanks,

Antoine
 
Report to moderator   Logged Logged  
 
Intalio, the Open Source BPMS company
www.intalio.com
  The administrator has disabled public write access.
#16216
robert.sommer (User)
Junior Boarder
User Offline Click here to see the profile of this user
Re:Time-out error when calling a soap php script 3 Months, 3 Weeks ago Karma: 0  
We have tested in SOAPUI and webservice works fine.

We have also tried calling the Version service in Axis2 by using a generated WSDL file from Axis2 however we also get time out error.

Here is the error from the log file. What do we do wrong?

Code: :

  14:42:04,290 ERROR [INVOKEFailure during invokeError sending message (mex={PartnerRoleMex#2031637 [PID {http://example.com/processes/WebService_diagram_05/process}process-84] calling  (...)}): com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpe 14:42:34,031 ERROR [WebServiceInvocationRequestProcessorError processing XML request java.lang.RuntimeExceptionorg.apache.axis2.AxisFaultRead timed out     at com.intalio.bpms.wsi.servlets.ws.WebServiceInvocationRequestProcessor.buildResponse(WebServiceInvocationRequestProcessor.java:219)     at com.intalio.bpms.wsi.servlets.XMLRequestProcessor.processRequest(XMLRequestProcessor.java:54)     at com.intalio.bpms.wsi.servlets.XMLRequestProcessorServlet.doPost(XMLRequestProcessorServlet.java:26)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)     at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)     at org.apache.geronimo.jetty6.InternalJettyServletHolder.handle(InternalJettyServletHolder.java:65)     at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)     at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)     at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)     at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)     at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)     at org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)     at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)     at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)     at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)     at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)     at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)     at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)     at org.mortbay.jetty.Server.handle(Server.java:313)     at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)     at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)     at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)     at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:201)     at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:331)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)     at java.lang.Thread.run(Thread.java:595) Caused byorg.apache.axis2.AxisFaultRead timed out     at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)     at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)     at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)     at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)     at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)     at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)     at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)     at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)     at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)     at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)     at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)     at com.intalio.bpms.wsi.servlets.ws.WebServiceInvocationRequestProcessor.buildResponse(WebServiceInvocationRequestProcessor.java:201)     ... 30 more Caused byjava.net.SocketTimeoutExceptionRead timed out     at java.net.SocketInputStream.socketRead0(Native Method)     at java.net.SocketInputStream.read(SocketInputStream.java:129)     at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)     at java.io.BufferedInputStream.read(BufferedInputStream.java:235)     at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)     at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)     at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)     at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)     at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)     at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)     at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)     at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)     at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)     at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)     at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)     ... 40 more

 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop