Professional Web Applications Themes

The operation has timed-out. - ASP.NET Web Services

I am building a Windows Forms application to consume Webservices provided by the jboss server. I used hte Windows WSDL.exe tool to generate the proxy code. The proxy code file has been added to my windows forms aplication. When the exposed webservice methods are called, application gives the timed out error("The operation has timed-out."). Please help me out. This becomes a big problem for me. There is no proxy between the client and server. //Web Service method called like below ClientConfigLocalService ccls = new ClientConfigLocalService(); string xmlConfig = ccls.getURLs("4545454"); //ClientConfigLocalService.CS (WSDL tool generated file) //-------------------------------------------------------------------------- ---- // <autogenerated> // This ...

  1. #1

    Default The operation has timed-out.

    I am building a Windows Forms application to consume Webservices provided by
    the jboss server. I used hte Windows WSDL.exe tool to generate the proxy
    code. The proxy code file has been added to my windows forms aplication.
    When the exposed webservice methods are called, application gives the timed
    out error("The operation has timed-out."). Please help me out. This becomes
    a big problem for me. There is no proxy between the client and server.

    //Web Service method called like below
    ClientConfigLocalService ccls = new ClientConfigLocalService();

    string xmlConfig = ccls.getURLs("4545454");


    //ClientConfigLocalService.CS (WSDL tool generated file)

    //--------------------------------------------------------------------------
    ----
    // <autogenerated>
    // This code was generated by a tool.
    // Runtime Version: 1.0.3705.0
    //
    // Changes to this file may cause incorrect behavior and will be lost if
    // the code is regenerated.
    // </autogenerated>
    //--------------------------------------------------------------------------
    ----

    //
    // This source code was auto-generated by wsdl, Version=1.0.3705.0.
    //
    using System.Diagnostics;
    using System.Xml.Serialization;
    using System;
    using System.Web.Services.Protocols;
    using System.ComponentModel;
    using System.Web.Services;


    /// <remarks/>
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("c ode")]
    [System.Web.Services.WebServiceBindingAttribute(Nam e="CasClientConfigSoapBin
    ding",
    Namespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/CasClientCo
    nfig")]
    public class ClientConfigLocalService :
    System.Web.Services.Protocols.SoapHttpClientProtoc ol {

    /// <remarks/>
    public ClientConfigLocalService() {
    this.Url =
    "http://infra2a.hyd.deshaw.com:8080/jboss-net/services/CasClientConfig";
    }

    /// <remarks/>
    [System.Web.Services.Protocols.SoapRpcMethodAttribu te("CasClientConfig",
    RequestNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/CasC
    lientConfig",
    ResponseNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/Cas
    ClientConfig")]
    [return: System.Xml.Serialization.SoapElementAttribute("get URLsReturn")]
    public string getURLs(string in0) {
    object[] results = this.Invoke("getURLs", new object[] {
    in0});
    return ((string)(results[0]));
    }

    /// <remarks/>
    public System.IAsyncResult BegingetURLs(string in0, System.AsyncCallback
    callback, object asyncState) {
    return this.BeginInvoke("getURLs", new object[] {
    in0}, callback, asyncState);
    }

    /// <remarks/>
    public string EndgetURLs(System.IAsyncResult asyncResult) {
    object[] results = this.EndInvoke(asyncResult);
    return ((string)(results[0]));
    }

    /// <remarks/>
    [System.Web.Services.Protocols.SoapRpcMethodAttribu te("CasClientConfig",
    RequestNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/CasC
    lientConfig",
    ResponseNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/Cas
    ClientConfig")]
    [return:
    System.Xml.Serialization.SoapElementAttribute("get ServerVersionReturn")]
    public string getServerVersion() {
    object[] results = this.Invoke("getServerVersion", new object[0]);
    return ((string)(results[0]));
    }

    /// <remarks/>
    public System.IAsyncResult BegingetServerVersion(System.AsyncCallback
    callback, object asyncState) {
    return this.BeginInvoke("getServerVersion", new object[0], callback,
    asyncState);
    }

    /// <remarks/>
    public string EndgetServerVersion(System.IAsyncResult asyncResult) {
    object[] results = this.EndInvoke(asyncResult);
    return ((string)(results[0]));
    }

    /// <remarks/>
    [System.Web.Services.Protocols.SoapRpcMethodAttribu te("CasClientConfig",
    RequestNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/CasC
    lientConfig",
    ResponseNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/Cas
    ClientConfig")]
    [return:
    System.Xml.Serialization.SoapElementAttribute("get ObjectConfigReturn")]
    public string getObjectConfig(string in0) {
    object[] results = this.Invoke("getObjectConfig", new object[] {
    in0});
    return ((string)(results[0]));
    }

    /// <remarks/>
    public System.IAsyncResult BegingetObjectConfig(string in0,
    System.AsyncCallback callback, object asyncState) {
    return this.BeginInvoke("getObjectConfig", new object[] {
    in0}, callback, asyncState);
    }

    /// <remarks/>
    public string EndgetObjectConfig(System.IAsyncResult asyncResult) {
    object[] results = this.EndInvoke(asyncResult);
    return ((string)(results[0]));
    }
    }




    garikaps Guest

  2. #2

    Default Re: The operation has timed-out.

    You can set the timeout value by ccls.TimeOut = 120000 ( for example)
    Set the value that suits your need..


    "garikaps" <garikapsdeshaw.com> wrote in message
    news:eakksvNfDHA.576tk2msftngp13.phx.gbl...
    > I am building a Windows Forms application to consume Webservices provided
    by
    > the jboss server. I used hte Windows WSDL.exe tool to generate the proxy
    > code. The proxy code file has been added to my windows forms aplication.
    > When the exposed webservice methods are called, application gives the
    timed
    > out error("The operation has timed-out."). Please help me out. This
    becomes
    > a big problem for me. There is no proxy between the client and server.
    >
    > //Web Service method called like below
    > ClientConfigLocalService ccls = new ClientConfigLocalService();
    >
    > string xmlConfig = ccls.getURLs("4545454");
    >
    >
    > //ClientConfigLocalService.CS (WSDL tool generated file)
    >
    >
    //--------------------------------------------------------------------------
    > ----
    > // <autogenerated>
    > // This code was generated by a tool.
    > // Runtime Version: 1.0.3705.0
    > //
    > // Changes to this file may cause incorrect behavior and will be lost
    if
    > // the code is regenerated.
    > // </autogenerated>
    >
    //--------------------------------------------------------------------------
    > ----
    >
    > //
    > // This source code was auto-generated by wsdl, Version=1.0.3705.0.
    > //
    > using System.Diagnostics;
    > using System.Xml.Serialization;
    > using System;
    > using System.Web.Services.Protocols;
    > using System.ComponentModel;
    > using System.Web.Services;
    >
    >
    > /// <remarks/>
    > [System.Diagnostics.DebuggerStepThroughAttribute()]
    > [System.ComponentModel.DesignerCategoryAttribute("c ode")]
    >
    [System.Web.Services.WebServiceBindingAttribute(Nam e="CasClientConfigSoapBin
    > ding",
    >
    Namespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/CasClientCo
    > nfig")]
    > public class ClientConfigLocalService :
    > System.Web.Services.Protocols.SoapHttpClientProtoc ol {
    >
    > /// <remarks/>
    > public ClientConfigLocalService() {
    > this.Url =
    > "http://infra2a.hyd.deshaw.com:8080/jboss-net/services/CasClientConfig";
    > }
    >
    > /// <remarks/>
    >
    [System.Web.Services.Protocols.SoapRpcMethodAttribu te("CasClientConfig",
    >
    RequestNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/CasC
    > lientConfig",
    >
    ResponseNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/Cas
    > ClientConfig")]
    > [return:
    System.Xml.Serialization.SoapElementAttribute("get URLsReturn")]
    > public string getURLs(string in0) {
    > object[] results = this.Invoke("getURLs", new object[] {
    > in0});
    > return ((string)(results[0]));
    > }
    >
    > /// <remarks/>
    > public System.IAsyncResult BegingetURLs(string in0,
    System.AsyncCallback
    > callback, object asyncState) {
    > return this.BeginInvoke("getURLs", new object[] {
    > in0}, callback, asyncState);
    > }
    >
    > /// <remarks/>
    > public string EndgetURLs(System.IAsyncResult asyncResult) {
    > object[] results = this.EndInvoke(asyncResult);
    > return ((string)(results[0]));
    > }
    >
    > /// <remarks/>
    >
    [System.Web.Services.Protocols.SoapRpcMethodAttribu te("CasClientConfig",
    >
    RequestNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/CasC
    > lientConfig",
    >
    ResponseNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/Cas
    > ClientConfig")]
    > [return:
    > System.Xml.Serialization.SoapElementAttribute("get ServerVersionReturn")]
    > public string getServerVersion() {
    > object[] results = this.Invoke("getServerVersion", new object[0]);
    > return ((string)(results[0]));
    > }
    >
    > /// <remarks/>
    > public System.IAsyncResult BegingetServerVersion(System.AsyncCallback
    > callback, object asyncState) {
    > return this.BeginInvoke("getServerVersion", new object[0],
    callback,
    > asyncState);
    > }
    >
    > /// <remarks/>
    > public string EndgetServerVersion(System.IAsyncResult asyncResult) {
    > object[] results = this.EndInvoke(asyncResult);
    > return ((string)(results[0]));
    > }
    >
    > /// <remarks/>
    >
    [System.Web.Services.Protocols.SoapRpcMethodAttribu te("CasClientConfig",
    >
    RequestNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/CasC
    > lientConfig",
    >
    ResponseNamespace="http://infra2a.hyd.deshaw.com:8080/jboss-net/services/Cas
    > ClientConfig")]
    > [return:
    > System.Xml.Serialization.SoapElementAttribute("get ObjectConfigReturn")]
    > public string getObjectConfig(string in0) {
    > object[] results = this.Invoke("getObjectConfig", new object[] {
    > in0});
    > return ((string)(results[0]));
    > }
    >
    > /// <remarks/>
    > public System.IAsyncResult BegingetObjectConfig(string in0,
    > System.AsyncCallback callback, object asyncState) {
    > return this.BeginInvoke("getObjectConfig", new object[] {
    > in0}, callback, asyncState);
    > }
    >
    > /// <remarks/>
    > public string EndgetObjectConfig(System.IAsyncResult asyncResult) {
    > object[] results = this.EndInvoke(asyncResult);
    > return ((string)(results[0]));
    > }
    > }
    >
    >
    >
    >

    Jaya Misra Guest

  3. #3

    Default The operation has timed-out.

    The Operation has timed-out

    Description: An unhandled exception occurred during the execution of the current web request. Exception Details: System.Net.WebException: The operation has timed-out.


    The webservice works great when invoked through the browser and returns the data as requested. I cant connect to these same services from a Windows application (EXE). (.NET-based Windows applications.)

    The same code works on another system, just not on mine. I have using XP Professional, with all updates from windowsupdate.microsoft.com

    Please Help!
    Romano.

    Romano Live Guest

  4. #4

    Default Re: The operation has timed-out.

    I had the same problem. I was able to call the webservice from a windows
    applications, but not inside a WebForm. It also run if the uri of the
    webservice was localhost or 127.0.0.1 but not other uri or even the
    local IP.

    To solve it I installed a proxy server (CCProxy in
    [url]http://www.youngzsoft.com[/url]) and include the line YourWebService.Proxy =
    new WebProxy( "127.0.0.1", 808). And it works. I know that it is not the
    best solution, but after 3 days working on this issue is the best one,
    and the only one!


    Alvaro Corcuera




    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    alvaro corcuera Guest

Similar Threads

  1. random "The operation has timed-out." exception in vb.net
    By Alex Litvak in forum ASP.NET Web Services
    Replies: 1
    Last Post: February 2nd, 11:35 AM
  2. Operation Timed Out
    By Robert May in forum ASP.NET Web Services
    Replies: 0
    Last Post: July 6th, 03:02 PM
  3. The Operation has timed-out
    By Romano Live in forum ASP.NET
    Replies: 0
    Last Post: October 27th, 01:14 PM
  4. "The operation has timed-out." exception on WinXP
    By Joel Zhou in forum ASP.NET Web Services
    Replies: 20
    Last Post: October 1st, 07:54 AM
  5. Webrequest - The operation has timed-out.
    By Ramana in forum ASP.NET Web Services
    Replies: 0
    Last Post: September 19th, 04:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139