R
Ramana
I am building a Windows Forms application to consume Webservices provided
by the jboss server. I used the 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."). There is no proxy between the
client and server.
We checked that the server is sending response properly but the my
webrequest is unable to recieve the response.
This problem is happening after working for some time not every time.
However, once this problem comes, I am not able to run the same
application on any machine but other users are able to run the same
application on the same machine. With this, we assumed that my roaming
profile got corrupted and restored some old profile then I am able to run
the application again. The same thing happend to many of my team members
also.
I think profile corruption is very dangerous and we need some urgent
solution for this before rolling my application to actual users.
Advace Thanks
Ramana
Here is the code snippet:
//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("code")]
[System.Web.Services.WebServiceBindingAttribute
(Name="CasClientConfigSoapBin
ding",
Namespace="http://mycompany.com:8080/jboss-net/services/CasClientCo
nfig")]
public class ClientConfigLocalService :
System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public ClientConfigLocalService() {
this.Url =
"http://mycompany.com:8080/jboss-net/services/CasClientConfig";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute
("CasClientConfig",
RequestNamespace="http://mycompany.com:8080/jboss-net/services/CasC
lientConfig",
ResponseNamespace="http://mycompany.com:8080/jboss-net/services/Cas
ClientConfig")]
[return: System.Xml.Serialization.SoapElementAttribute
("getURLsReturn")]
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.SoapRpcMethodAttribute
("CasClientConfig",
RequestNamespace="http://mycompany.com:8080/jboss-net/services/CasC
lientConfig",
ResponseNamespace="http://mycompany.com:8080/jboss-net/services/Cas
ClientConfig")]
[return:
System.Xml.Serialization.SoapElementAttribute("getServerVersionReturn")]
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.SoapRpcMethodAttribute
("CasClientConfig",
RequestNamespace="http://mycompany.com:8080/jboss-net/services/CasC
lientConfig",
ResponseNamespace="http://mycompany.com:8080/jboss-net/services/Cas
ClientConfig")]
[return:
System.Xml.Serialization.SoapElementAttribute("getObjectConfigReturn")]
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]));
}
}
by the jboss server. I used the 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."). There is no proxy between the
client and server.
We checked that the server is sending response properly but the my
webrequest is unable to recieve the response.
This problem is happening after working for some time not every time.
However, once this problem comes, I am not able to run the same
application on any machine but other users are able to run the same
application on the same machine. With this, we assumed that my roaming
profile got corrupted and restored some old profile then I am able to run
the application again. The same thing happend to many of my team members
also.
I think profile corruption is very dangerous and we need some urgent
solution for this before rolling my application to actual users.
Advace Thanks
Ramana
Here is the code snippet:
//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("code")]
[System.Web.Services.WebServiceBindingAttribute
(Name="CasClientConfigSoapBin
ding",
Namespace="http://mycompany.com:8080/jboss-net/services/CasClientCo
nfig")]
public class ClientConfigLocalService :
System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public ClientConfigLocalService() {
this.Url =
"http://mycompany.com:8080/jboss-net/services/CasClientConfig";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute
("CasClientConfig",
RequestNamespace="http://mycompany.com:8080/jboss-net/services/CasC
lientConfig",
ResponseNamespace="http://mycompany.com:8080/jboss-net/services/Cas
ClientConfig")]
[return: System.Xml.Serialization.SoapElementAttribute
("getURLsReturn")]
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.SoapRpcMethodAttribute
("CasClientConfig",
RequestNamespace="http://mycompany.com:8080/jboss-net/services/CasC
lientConfig",
ResponseNamespace="http://mycompany.com:8080/jboss-net/services/Cas
ClientConfig")]
[return:
System.Xml.Serialization.SoapElementAttribute("getServerVersionReturn")]
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.SoapRpcMethodAttribute
("CasClientConfig",
RequestNamespace="http://mycompany.com:8080/jboss-net/services/CasC
lientConfig",
ResponseNamespace="http://mycompany.com:8080/jboss-net/services/Cas
ClientConfig")]
[return:
System.Xml.Serialization.SoapElementAttribute("getObjectConfigReturn")]
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]));
}
}