Asmx Web Service Random Timeout on SSL Handshake

We have an asmx web service that is deployed on a server farm with two servers (both Virtual Machines with Windows 2008). The asmx web service, when invoked from a .net client application randomly returns this error: 
"The underlying connection was closed: An unexpected error occurred on a receive."
On a retry, the operation works fine. But the problem recurs after a few tries.
When I tried to trap this message in Fiddler, this was the error:
HTTP/1.1 200 Connection Established
FiddlerGateway: Direct
StartTime: 17:23:35.494
Connection: close
fiddler.network.https> HTTPS handshake to <removed the site name> failed. System.IO.IOException Unable to read data from the transport connection: An existing connection
was forcibly closed by the remote host. < An existing connection was forcibly closed by the remote host.
One thing that is noticeable is that all "random" errors occur only if when the client "tunnels" to site as per Fiddler. Sometimes the "tunnel" succeeds and sometimes it fails.
This server farm is behind an F5 load balancer.
I also have a replacement for this asmx web service which is a WCF service. That service is also deployed on the same server farm. This WCF service also gets the same random error though it does not seem to be that frequent. I have tried to trace the error
message on the client and the server and nothing seems to work so far.
I am working with a Microsoft support person and a network expert on this issue. 
I am posting this question to the community to see if anybody else ran into a similar issue and if yes, what were their findings?
Thanks in advance for your help.

This issue turned out to the related to the virtual network interface card on one of the two servers that were part of the load balanced pool. Once we created a new NIC and reassigned the website IP addressed to it, the problem went away.
I'd like to document what I learnt from the troubleshooting exercise. This is probably already documented on various forums but just thought I'll share this information.
1. Troubleshooting Steps on the server:
a. Make sure the URL of the WCF service shows up fine on a web browser on the client and the server. In many cases, the issue with the WCF service shows up in the browser window itself. 
b. Take a look at SSL certificates and make sure those are installed correctly. Drop a test html file with hello world message in the web root folder of the server and see if your client browser can access it with SSL without any warnings or errors. Refresh
the page multiple types to see if you get a random error.
c. Enable WCF tracing on both the client and the server.
https://msdn.microsoft.com/en-us/library/ms733025(v=vs.110).aspx
d. If the traces do not provide any useful info, install Netmon on the client and the server and look at  Netmon traces.
http://www.microsoft.com/en-us/download/details.aspx?id=4865
Apparently, there is a newer tool called 'Microsoft Message Analyzer' (http://www.microsoft.com/en-us/download/details.aspx?id=44226) but I did not use this tool.
e. Install Fiddler or Wireshark on the client and the server and monitor network traffic.
2. We learnt from the Netmon traces that the load balancer was dropping packets randomly when connecting to one of the two servers. So we removed the server that was working fine from the load balanced pool and tested just with the 'erroring' server. We
placed a test.html file on the web root of the server and continued our testing. We noticed that the random errors were evident also in non-SSL communication. So this eliminated the theory that the WCF service or the SSL certificates that anything to do with
the random error. We noticed that the server would respond for a few minutes and then started dropping TCP packets. Once we added the virtual NIC, the problem went away.
3. Our third option would be to remove the load balancer from the picture but that was not needed once we figured out the issue in step 2.
Hope this information helps someone else who is facing or will face a similar problem.

Similar Messages

  • How to access .asmx Web Service using JAVA? Newbie

    Hello Experts,
    Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
    Java Project + C#.Net Web Service = Integration
    1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
    2. The .NET Web Service is available online. (It is made by other people).
    3. Based on the equation, what is the equivalent technology for the + sign?
    4. Can you site a concrete example for accessing a web service?
    5. I'm new here. Totally I have no idea where to start.
    6. Thank you experts.
    Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
    Edited by: Benedict.Aluan on 05 30, 08 1:39 PM

    Hello
    Thanks a lot for your help ...
    I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
    String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
         String namespace = "http://tempuri.org/";
         name = request.getParameter("txtName");
         try
              System.out.println("In Internet Service");
              ServiceFactory factory = ServiceFactory.newInstance();
              Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
              System.out.println("Got Service......");
              Call obj = (Call)serv.createCall();
              System.out.println("Got Call......");
              obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
              obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
              obj.setTargetEndpointAddress(url);
              obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
              obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
              obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
              obj.setReturnType(XMLType.XSD_STRING);
              System.out.println("Parameters Set.....");
              Object[] params = new Object[]{name};
              k = (String)obj.invoke(params);
              System.out.println("Result: "+k);
         catch(Exception e)
            System.out.println("Exception is : "+e);
        }But this code is throwing exception that
    Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
    Plz can u tell me how to access .asmx web service ?
    Waiting 4 reply.

  • Calling .asmx Web Service from Java Client

    hi
    I have created one java client in WSAD 5.1 to invoke .asmx web service. I have used the following code for it.
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.NamespaceConstants;
    import javax.xml.rpc.ParameterMode;
    import java.net.URL;
    public class JavaWS3
         public static void main(String [] args)
              try
                   // Responds the same with or without the ?WSDL
                   String     strEndPoint          = "http://www.meizlik.com/Service.asmx";
                   String     strSoapAction     = "http://www.meizlik.com/BigAdd";
                   String     strSchemaURL     = "http://www.w3.org/2001/XMLSchema";
                   String     strParamName1     = "addend_1";
                   String     strParamName2     = "addend_2";
                   String     strParameterVal1= "10";
                   String     strParameterVal2= "7";
                   String     strFunctionName     = "BigAdd";
                   //Call     call   = (Call) new Service().createCall();//Works
                   //Call     call   = new Call(strSoapAction);//Works same
                   //Call     call   = new Call(strEndPoint);//Works same
                   Service  service = new Service();
                    Call call= (Call) service.createCall();
                   call.setEncodingStyle(NamespaceConstants.NSURI_SOAP_ENCODING);
                   call.setTargetEndpointAddress(new URL(strEndPoint));
                   // first parameter in QName seemingly takes ANYTHING
                   call.setOperationName(new QName("http://www.meizlik.com", strFunctionName));
                   // Set the name of the parameter and the return type
                   call.setReturnType(XMLType.XSD_STRING);
                   call.addParameter(new QName("http://www.meizlik.com",strParamName1), XMLType.XSD_STRING, ParameterMode.IN);
                   call.addParameter(new QName("http://www.meizlik.com",strParamName2), XMLType.XSD_STRING, ParameterMode.IN);
                   // Catch the result and print it
                   // Parameter count is now ONE (1).
                   // call.setUseSOAPAction(true);//Not Necessary
                   call.setSOAPActionURI(strSoapAction);//Yes Necessary
                   String     strResult = (String) call.invoke(
                        new Object[] {
                             new String(strParameterVal1),
                             new String(strParameterVal2)
                   System.out.println("Result='" + strResult + "'");
              catch (Exception e)
                   e.printStackTrace();
                   System.out.println(e.toString());
    }this code is giving me the exception as :
    java.net.ConnectException: Operation timed out: connect due to invalid addressI visited web service URL http://www.meizlik.com/Service.asmx and its working fine.
    I also tried Java Proxy method in WSAD 5.1 but it is showing me the same error.
    Where am I wrong? Can anyone plz give me solution 4 this.
    Thanks..

    Hi,
    I have even generated folowing code with SoaMoa, it is perfect. Please try SoaMoa it is a useful tool.
    The generated code of SoaMoa :
    /* Generated Testcase by SoaMoa, :ridvan at Thu Jun 04 21:53:14 CEST 2009 */
    import java.util.Map;
    import javax.xml.namespace.QName;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPConstants;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.ws.Dispatch;
    import javax.xml.ws.Service;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.soap.SOAPBinding;
    import java.util.Iterator;
    import junit.framework.TestCase;
    public class BigAddTest extends TestCase {
    public void testBigAdd() throws Exception {
    String endpointURL = "http://www.meizlik.com/Service.asmx";
    QName serviceName = new QName("http://www.meizlik.com", "Bob_Services");
    QName portName = new QName("http://www.meizlik.com", "Bob_ServicesHttpPost");
    Service service = Service.create(serviceName);
    service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, endpointURL);
    Dispatch<SOAPMessage> dispatch = service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE);
    BindingProvider bindingProvider = (BindingProvider) dispatch;
    // Optionally Configure RequestContext to send SOAPAction HTTP
    Map<String, Object> rc = bindingProvider.getRequestContext();
    rc.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
    rc.put(BindingProvider.SOAPACTION_URI_PROPERTY, "http://www.meizlik.com/BigAdd");
    MessageFactory messagefactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
    SOAPMessage request = messagefactory.createMessage();
    SOAPPart part = request.getSOAPPart();
    SOAPEnvelope env = part.getEnvelope();
    SOAPBody body = env.getBody();
    body.addNamespaceDeclaration("www", "http://www.meizlik.com");
    SOAPElement BigAdd = body.addChildElement("BigAdd", "www");
    SOAPElement addend_1 = BigAdd.addChildElement("addend_1", "www");
    addend_1.addTextNode("11");
    SOAPElement addend_2 = BigAdd.addChildElement("addend_2", "www");
    addend_2.addTextNode("11");
    request.saveChanges();
    SOAPMessage response = dispatch.invoke(request);
    SOAPBody replyBody = response.getSOAPBody();
    SOAPElement BigAddResponse = (SOAPElement) replyBody.getChildElements(new QName("http://www.meizlik.com", "BigAddResponse")).next();
    assertNotNull( "BigAddResponse is null", BigAddResponse);
    SOAPElement BigAddResult = (SOAPElement) BigAddResponse.getChildElements(new QName("http://www.meizlik.com", "BigAddResult")).next();
    assertNotNull( "BigAddResult is null", BigAddResult);
    assertEquals("BigAddResult", "0000000000000000000000000022", BigAddResult.getTextContent());
    }

  • Getting Error in Asmx Web Service Unit Testing & not able to debug unit-test Project.

    I am getting below error message while running unit test for ASMX web service
    Failed MyFunction The ASP.NET Web application at 'D:\MyProjectFolder' is already configured for testing by another test run. Only one test run at a time can run
    tests in ASP.NET. If there are no other test runs using this Web application, ensure that the Web.config file does not contain an httpModule named HostAdapter.
    I checked in web.config. Below line already added in web.config. i removed below line to run test again but getting same error message.
    <httpModules>
    <add name="HostAdapter" type="Microsoft.VisualStudio.TestTools.HostAdapter.Web.HttpModule, Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </httpModules>
    i am not able to debug unit test project.
    Please "Mark as Answer" if this post answered your question. :)
    Kalpesh Chhatrala | Software Developer | Rajkot | India
    Kalpesh 's Blog
    VFP Form to C#, Vb.Net Conversion Utility

    Hi Kalpesh,
    >>Failed MyFunction The ASP.NET Web application at 'D:\MyProjectFolder' is already configured for testing by another test run. Only one test run at a
    time can run tests in ASP.NET. If there are no other test runs using this Web application, ensure that the Web.config file does not contain an httpModule named HostAdapter.
    In your web application root, can you find a file named 'web.config.backup'?
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/e2ad0c20-df90-48dc-818c-8c5ec24d9365/visual-studio-test-is-not-hitting-breakpoints-in-debug?forum=vststest
    Fang also shared more information about debugging the unit test for web project here:
    https://social.msdn.microsoft.com/Forums/en-US/daa16086-b1b8-4917-ad8d-65e23b49e1bc/not-able-to-read-webconfig-through-unit-test-feature-by-visual-studiovsts?forum=vststest
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Web Service connection timeout

    How to configure the web service connection timeout properties (eg. weblogic.wsee.transport.connection.timeout) in configuration files rather setting them at client's stub code?
    Help is appreciated.

    This might be due to following reasons.
    Please check whether firewall exist between Pi and external system. If so check with  network team weather port or connectivity is established between PI server and external system. This should be the main reason.  Also check the target URL and see whether you can able to consume the webservice directly from Soapui without PI.  If your workstation is within PI's landscape and you see the same timed out error, then the network connectivity is the issue.  Ask them to enable the port.

  • ASMX web service and The remote server returned an error: (500) Internal Server Error issue

    i have developed a very small web service and which is hosted along with our web site. our webservice url is
    http://www.bba-reman.com/Search/SearchDataIndex.asmx
    web service code
    namespace WebSearchIndex
    #region SearchDataIndex
    /// <summary>
    /// SearchDataIndex is web service which will call function exist in another library for part data indexing
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
    // [System.Web.Script.Services.ScriptService]
    public class SearchDataIndex : System.Web.Services.WebService
    //public AuthHeader ServiceAuth=null;
    public class AuthHeader : SoapHeader
    public string Username;
    public string Password;
    #region StartIndex
    /// <summary>
    /// this function will invoke CreateIndex function of SiteSearch module to reindex the data
    /// </summary>
    [WebMethod]
    public string StartIndex(AuthHeader auth)
    string strRetVal = "";
    if (auth.Username == "Admin" && auth.Password == "Admin")
    strRetVal = SiteSearch.CreateIndex(false);
    else
    SoapException se = new SoapException("Failed : Invalid credentials",
    SoapException.ClientFaultCode,Context.Request.Url.AbsoluteUri,new Exception("Invalid credentials"));
    throw se;
    return strRetVal;
    #endregion
    #endregion
    when i was calling that web service from my win apps using
    HttpWebRequest
    class then getting error The remote server returned an error: (500) Internal Server Error
    here is code of my win apps from where i am calling web service
    string strXml = "";
    strXml = "<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><StartIndex xmlns='http://tempuri.org/' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'><auth><Username>joy</Username><Password>joy</Password></auth></StartIndex></s:Body></s:Envelope>";
    string url = "http://www.bba-reman.com/Search/SearchDataIndex.asmx";
    HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
    req.Method = "POST";
    req.ContentType = "text/xml";
    req.KeepAlive = false;
    req.ContentLength = strXml.Length;
    StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII);
    streamOut.Write(strXml);
    streamOut.Close();
    StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
    string strResponse = streamIn.ReadToEnd();
    streamIn.Close();
    i am just not being able to understand when this line execute
    StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
    then getting the error The remote server returned an error: (500) Internal Server Error
    not being able to understand where i made the mistake. mistake is in the code of web service end or in calling code?
    help me to fix this issue. thanks

    Hi Mou,
    I just tried your win app code about calling web service, but failed. I got the 500 error after I called your service:
    The error message I quoted from Fiddler:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Failed : Invalid credentials ---&gt; System.Exception: Invalid credentials
    --- End of inner exception stack trace ---
    at BBAReman.WebSearchIndex.SearchDataIndex.StartIndex(AuthHeader auth)</faultstring><faultactor>http://www.bba-reman.com/Search/SearchDataIndex.asmx</faultactor><detail /></soap:Fault></soap:Body></soap:Envelope>
    I am not totally sure that error occurred by the authentication. But I suggest you can try to add this service into your project using this method below:
    1.right click the Reference and select Add Service Reference
    2.input your service link and click "Go"
    And you can use this service as the following:
    private async void callService()
    ServiceReference1.SearchDataIndexSoapClient client =new ServiceReference1.SearchDataIndexSoapClient();
    var Str= await client.StartIndexAsync(new ServiceReference1.AuthHeader { Username = "Admin", Password = "Admin" });
    Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SharePoint lists.asmx web service error in InfoPath and SOAPUI

    We have a SharePoint 2013 farm with web applications using Claims Authentication. I'm trying to create an InfoPath 2013 form where I want to add lists.asmx (https://servername/_vti_bin/lists.asmx) web service to receive/submit data, but I'm getting below
    error, even if I use the farm account when it prompts for credentials. SharePoint logs look clean, IIS logs have some 401 errors. 
    "The file is not a valid XML file. Not enough storage is available to process this command"
    When I add the web service in SOAPUI using the farm account, it works fine. It only throws below error when I use my user account, which is a farm admin and also added to web application's User Policy. IIS logs have 401 error.
    "Error loading [https://servername/_vti_bin/lists.asmx?wsdl]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null"
    Does anyone know how to troubleshoot this issue?
    Thank you,

    Hi rdoe,
    Do you have any update for this issue?
    Whether you checked as Dats said.
    In addition, if you have found a solution for this issue, please share it, it will be beneficial to others in this forum who meet the same issue in the future.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Asmx web service not calling using schedular

    I have created a asmx web service and using visual studio i deployed the web service on azure cloud service.When i open the service by url like http://xyz.cloudapp.net/service1.asmx?op=CreateSite it opened.But when i provide the same url to Azure scheduler
    the scheduler get executed but the service is not working.
    I am new in azure so can you please tell me in brief how can i configure Azure scheduler to execute my hosted web service.
    Thanks

    hi,
    Because your request method is 'get', so your history shown that the page (http://xyz.cloudapp.net/service1.asmx?op=CreateSite  ) content as your open the link on browser. you could add
    the script on your webservice code, like this:
    [WebMethod]
    [ScriptMethod(UseHttpGet = true)]
    public string Test()
    You could call the Uri as
    http://xyz.cloudapp.net/service1.asmx/CreateSite. Please see how to use get method on web service (http://stackoverflow.com/questions/618900/enable-asp-net-asmx-web-service-for-http-post-get-requests
    Hope this helps.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ASMX web service in HIS 2013

    Hello
    I have another set of TI objects that I have converted to run in HIS 2013 as we have upgraded from HIS 2006 to HIS 2013. I have written a stand-alone test client application that consumes these TI objects successfully
    and everything works fine. 
    The issue is that our ASMX web service that consumes these TI objects no longer works. We have re-compiled the ASMX web service in .NET framework 4.5 and made the relevant changes using the new ClientContext() class as required and the web service compiled
    successfully, however when we run a test client against this service we see the following error in the event logs "Internal message routing error:
    process id 2604, mhtype 1, msgtype 19  EXPLANATION This is an internal error in Host Integration Server.".
    We turned on HIS tracing and can see the last entry is "HISTSNA0013 The SNATransport is calling CMALLC." and then it stops.
    Any ideas why this is occuring and should our ASMX web service be able to consume the HIS 2013 TI objects?
    Thanks
    Sean

    Hi Sean,
    Have you correctly configured the SNA Connection ? Can you please open the SNA Manager and running the Diagnostics to see if the SNA Sessions are correctly established.
    In addition have you added the new config settings for HIS 2013 (web.config) in order to use the correct settings (like Remote Environment) ? 
    Best Regards,
    Steve Melan - BCEE My Blog : http://stevemelan.wordpress.com

  • What to specfify in CA Reporting services integration (Report server web service URL) when using SSL for both SharePoint and SSRS?

    Hello,
    We are using Sharepoint 2010 and SQL Server reporting services 2008 R2.    We have the sharepoint site bound to port 443 using a certificate.   We also have the same certificate bound in the reporting services configuration manager's
    web service URL tab.    In CA should we put the SSL URL or the non SSL URL?    Right now in CA it has the then non SSL URL,
    http://fakehostname/ReportServer_REPORTSERVICE.     We have some sporadic issues and I am wondering if setting this to our SSL URL will help.    Please let me know
    if you have any questions.
    Thanks,
    Sean

    Hi,
    Regarding this issue, it should be no issue for setting (https) according :
    https://msdn.microsoft.com/en-us/library/bb630447.aspx
    https://msdn.microsoft.com/en-us/library/bb677369.aspx
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0ada85b1-e2d2-44a8-8443-74eca74f5745/ssrs-cannot-connect-to-https-sharepoint-2010-401-unauthorized
    I notice you mentioned that you have some sporadic issues, what are these issue? If there are errors, please post the detailed information about the errors.
    What is the mode type of SQL Server Reporting Service, native mode or SharePoint mode?
    The screenshot of the web service URL:
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Abap Proxy = Web Service - Connection timeout

    Hi Experts,
    I request your help on some issue we encounter actually on our Web services interfaces.
    We have sceanario in which from SAP, we are sending a message to PI via Abap proxy.
    PI then, send the message to the external system via a Web Service (we have configured the URL and authentification values).
    When we want to test the scenario we have an issue.
    - We see in SXMB_MONI message has status sent succesfully
    - When we check the external system, we see that no message is received (no trace of message from PI).
    - Then we check on PI runtime workbench, we see in the receiver communication channel error saying "Connextion Timeout"
    (in detail: SOAP: call failed: java.net.ConnectException: Connection timed out")
    We would like to investigate the issue.
    Have you already encountered this kind of issues ? And how we could investigate the root cause here ?
    And thanks for ur help,
    S.N

    This might be due to following reasons.
    Please check whether firewall exist between Pi and external system. If so check with  network team weather port or connectivity is established between PI server and external system. This should be the main reason.  Also check the target URL and see whether you can able to consume the webservice directly from Soapui without PI.  If your workstation is within PI's landscape and you see the same timed out error, then the network connectivity is the issue.  Ask them to enable the port.

  • Web service client timeout

    Hi,
    I'm trying to set a timeout on my web service client. But its not working. Your tutorials do not seem to address this.
    I am using weblogic 10.3.2, with Java 1.6.
    ============
    Properties propSys = System.getProperties();
    propSys.put( "weblogic.webservice.UseWebLogicURLStreamHandler", "true" );
    Stub stub = (Stub)portObject;
    BindingInfo bindingInfo = (weblogic.webservice.binding.BindingInfo)stub._getProperty("weblogic.webservice.bindinginfo");
    bindingInfo.setTimeout(1);
    Iterator itr = stub._getPropertyNames();
    while (itr.hasNext()){
    Object element = itr.next();
    log("\n properties that can be set: "+element);
    stub._setProperty("weblogic.webservice.rpc.timeoutsecs","1");
    ===========
    I've also tried setting the transaction-timeout and the remove-client-timeout in the weblogic-ear-jar.xml.
    ===========
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>ExternalEntryEJB</ejb-name>
    <transaction-descriptor>
    <trans-timeout-seconds>1</trans-timeout-seconds>
    </transaction-descriptor>
    <enable-call-by-reference>True</enable-call-by-reference>
    <jndi-name>ExternalEntry</jndi-name>
    <remote-client-timeout>1</remote-client-timeout>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>InternalEJB</ejb-name>
    <local-jndi-name>Internal</local-jndi-name>
    <enable-call-by-reference>True</enable-call-by-reference>
    <remote-client-timeout>1</remote-client-timeout>
    <transaction-descriptor>
    <trans-timeout-seconds>1</trans-timeout-seconds>
    </transaction-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    ===========
    in case it matters, I am using weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask as the clientgen task in my build.xml
    ============
    <clientgen autotype="False" ear="${dist}/${app.earname}" warName="${servlet.warname}" packageName="MyPackage.webservices.client"
    keepgenerated="False" useServerTypes="True" clientJar="${dist}/MyAppClient.jar">
    <classpath refid="build.classpath.builddir"/>
    </clientgen>
    ============
    I am testing by putting a Thread.sleep(75000) in the method which is called in the internal EJB. But the method runs to completion and returns the reply object after 90 seconds or so (it normally takes about 12 seconds), but does not timeout.
    I've been told that because it is a web services client, the remote-client-timeout will be ineffective. I've also been told that because the EJBs run in the same JVM, the transaction-timeout will be ineffective. Is this so?
    Thanks,
    Walter

    Can you change the clientgen task to weblogic.wsee.tools.anttasks.ClientGenTask this is for jax-rpc 1.1.
    <taskdef name="clientgen"
    classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
    ((Stub)port)._setProperty(weblogic.wsee.transport.connection.timeout,2);
    ((Stub)port)._setProperty(weblogic.wsee.transport.read.timeoutt,2);
    Hope that helps.

  • Web service problem (Timeout)

    hello
    i hope this is the right category to post my problem
    i want to use the service "customerCRMChangeRequestConfirmation_In"
    but i get this error message: "Error getting response; java.net SocketTimeoutException: Read timed out.
    on my search to fix this problem i found the SAP Note 826419.
    with following advice:
    ===========================================================================================
    Version NW 7.10
    Using NetWeaver Administrator
              o For standard Web service deployable proxy:
                1.  Open SAP NetWeaver Administrator in a browser: http:// "Web Services Administration".
                3.  Choose "Proxy Definitions by Name" and click "GO".
                4.  Select the proxy you want to configure.
                5.  Choose the "Configuration" tab.
                6.  Choose the "Logical Ports" tab.
                7.  Select the logical port you want to configure and choose "Edit".
                8. Choose the "Transport Settings" tab.
                9. Edit the "Max wait-time for HTTP response (in milliseconds)" field.
                10. Click "Save" to save the settings.
    ============================================================================================
    but in my Transport Settings are no "May wait-Time for HTTP response-field"
    what is the problem? i have an SAP CRM IDES System with Netweaver 7.1
    do I need to install an sp?
    I also found this solution for my read time out problem:
    http://wiki.sdn.sap.com/wiki/display/TechTSG/%28WSR%29Problems-P01
    but this solution with "Visual Administrator" is for java stack, right?
    thank you for your help!
    kind regards
    sven möller

    Hi Sven,
    There could be several reasons for this timeout but seeing as this is an IDES System things should generally work fine (it's not always the case though).
    I would suggest increasing the socket timeout on SoapUI & then test the webservice again. If you are unsure of how to do this just Google 'SoapUI Test Case Socket Timeout' or something similar. You first need to create a test suite/case & then you can control the socket timeout on SoapUI.
    Just in case, I would also check that the webservice service is configured correctly by launching transaction code SOAMANAGER from the IDES CRM & searching for this service (look for the change customer service under service providers). Just verify that all endpoint configuration is correct.
    I would also verify if you have the necessary authorizations (for your IDES login user) to change a customer.
    Lastly, I would setup a trace/recording using the ICF Recorder for your IDES login user (Google 'SAP ICF Recorder' for correct usage). Turn on the recorder to trace your incoming request in IDES & trace the outgoing response from IDES.
    You could also try viewing Transaction Codes ST11 & ST22 that trace incoming requests into the IDES Application Server. This may highlight any authorization related issues.
    Best Regards, Trevor

  • How to implement web service client timeout

    I'm trying to implement a web service client using JAX-RPC specification and the client is generated by clientgen utility. We are using weblogic8.1(sp5).
    How do I control the connection timeout and data transmission timeout? I have tried:
    BindingInfo.setTimeout() method and stub._setProperty("weblogic.webservice.rpc.timeoutsecs", "1" /* secs */);
    and they don't seem to be working...
    I have searched the web service documentation and didn't found any mentioning on this. Can someone shred some light on this?
    Thanks.
    Ren
    null

    Hi,
    I had a problem too for setting the timeout of a webservice client. but i didn't find any thing on this.
    But there is a work around for this see if it suits you but for this you have to use Apache AXIS webservice api to generate the client in that Api you have the Stub.timeOut() function to over come this problem
    Cheers !!
    Vivek:-)

  • Set Web Service Call Timeout

    Hi,
    in earlier JDeveloper while creating a web service client we used to easily set the call timeout, but now we're using JDev 10.1.3, generating a proxy create a lot of new classes, moreover, the methods calls is not handled the same way it was, but we still need to set the call timeout.
    The automaticaly generated code is something like this:
    public MyServiceClient() throws Exception {
    ServiceFactory factory = ServiceFactory.newInstance();
    port = ((servicesource.proxy.MyServiceService)factory.loadService(servicesource.proxy.MyService_Service.class)).getMyService();
    this.setEndpoint("http://server/MyService");
    nothing extends neither implements the OracleSOAPHTTPConnection (which has the setTimeout method we used to use)
    Any ideas?
    Thanks.

    ahhh,
    is there any available explanation why it is not available anymore? specs?
    Calls are hanging now, what would be the defaul timeout value?
    it can't be changed programmatically? can't we modify it by some global variable/property/xmlFile ?
    thank you.

Maybe you are looking for

  • Open/edit documents on SAP Content Server from BW?

    Hi guys I have been asked to investigate whether this scenario is possible. Today we have a SAP Content Server where we save attachments to different kinds of objects. An example could be that we open appropriation request 'S-00123' from IMA11 and at

  • Trying to diagnose a problem long-distance re: browser window

    My elderly mother lives 900 miles away, and is having trouble opening her browser (Firefox). She is using a Powerbook G3, running 10.2.8 with 256 RAM, and uses Firefox for Internet access using a broadband connection through a cable modem. Over the l

  • Have problem with nsLoinManager.js:222 its say script is stop running ,reinstall won't fix it need help.

    problem arise as soon as i start firefox only firefox is freezing while i can do other things with my pc, ie run with out any problem, but i'm prefer firefox want to get it to work again,only clue ihad is that erroe msg ,please help me.

  • Account det for service

    Dear Friends Can anyone pls explain me about account determination for service, how does the posting happen for service PO how are GL accounts determined automatically and the procedure we are implementing in the same server which is having 3 more co

  • South Park Issues

    I am frustrated with the wonderful service I've gotten from Apple (yes, sarcasm is a beautiful way to start with a post). I purchased South Park Season 10 when it was first released as a season pass. I got the first seven episodes of the season. Ever