-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: ranga
Message 1 in Discussion
I have a webservice which does the generation of XML. Time to generate the XML is
based on the volume of data that is retrieved from the database. On successful
generation, XML will be sent to the client as a string.
problem:
If we are consuming the webservice in the asp.net application and accessing the
webmethod to display the returned xml string in a textbox, the aspx page that has the
textbox is not waiting till the xml string is returned from the webservice. (it loses
its control). Following is the error:
Source Error:
Line 40:
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.tempuri.org/GetData",
RequestNamespace:="http://www.tempuri.org/",
ResponseNamespace:="http://www.tempuri.org/",
Use:=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Line 41: Public Function GetData(ByVal Name As String) As String
Line 42: Dim results() As Object = Me.Invoke("GetData", New Object()
{Name})
Line 43: Return CType(results(0),String)
Line 44: End Function
Source File: c:\inetpub\wwwroot\consumer\Web References\dcom-070\Reference.vb
Line: 42 Stack Trace:
[WebException: The operation has timed-out.]
System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,
Object[] parameters)
consumer.dcom_070.XMLWebService.GetData(String Name) in
c:\inetpub\wwwroot\consumer\Web References\dcom-070\Reference.vb:42
consumer.WebForm1.Button1_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\consumer\WebForm1.aspx.vb:29
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String
eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277 What should be done to avoid this?
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]