Does anyone know if it is possible to call a web service to return some data and after the data has been returned the web service carreis one fetching more data. So it starts a new thread that carries on after the call has been completed? I am trying to write a web service to retrieve data from the database that can return the first page only on large data sets and then fetch the rest into cache after the call, so any subsequent pages will be fetch quickly.
BobsAfro
Posts
-
Threading/Paging in web services -
Error using Login Control with UpdatePanelI have an updatepanel with a little animation in it and I want to trigger this when the user clicks the button in the loign control. But everytime I add a trigger of LoginControl - OnLoggingIn it throws this error the first time the site is run (after a service start or a long period)
Sys.WebForms.PageRequestManagerParserErrorException: The message recived from the server could not be parsed. Common causes for this error are the response is modified by calls to Response.Write(), reponse filters, HttpModules, or server trace is enabled.
Details: Error parsing near '_WS/SE/Welcome.aspx|'.
Anyone know why this is? Or how to help?
-
Update Panel Login control problemokay I will post it on there. Feel free to remove this one.
-
passing Custom Class to Web ServiceThere is a large amount of work with the custom class before and after the web service call which would make it very hard to use the type webservicename.type Also I am trying to create a web services approach with my current apparoach as a back up which would make it very hard to use webservicename.type.
-
Update Panel Login control problemI have an updatepanel with a little animation in it and I want to trigger this when the user clicks the button in the loign control. But everytime I add a trigger of LoginControl - OnLoggingIn it throws this error the first time the site is run (after a service start or a long period)
Sys.WebForms.PageRequestManagerParserErrorException: The message recived from the server could not be parsed. Common causes for this error are the response is modified by calls to Response.Write(), reponse filters, HttpModules, or server trace is enabled. Details: Error parsing near '_WS/SE/Welcome.aspx| '.
Anyone know why this is? Or how to help? -
passing Custom Class to Web ServiceI posted on here recently about this but I am still none the wiser so again I come seekign advice. I have a web service and a website consuming this service. I would like to pass a custom class from the website to the webservice and vice versa. The trouble is every time it gives me a error message saying "type is not the same as loclahost.Type" How can I get them to agree that it the same type? I have built a VERY basic example of what I am trying to which can be found here: WS passing cutom class.zip If anyone can help at all then I would be very appreciative.
-
Passing custom object to web serviceThe webreference appears as a folder with 3 files inside none of which have an option to view in object browser on right click.
-
Passing custom object to web serviceFor some reason view in browser is no longer gereyed out (no idea what I've done). but there is no option to view in object browser.
-
Passing custom object to web service"+add a webrefence to your asmx page." You mean add a webreference to my web service? In which case a reference to what? If you meant add a web reference to my consuming project I have and tried clicking view in browser but it was greyed out.
-
Passing custom object to web serviceThanks very much for your help. But i'm afraid you've got a bit beyond me there.
-
Passing custom object to web serviceHow do you go after the webservice dynamically as you put it?
-
Passing custom object to web serviceThats a very kind offer but It is as very large project and I can't strip it easily. Don't think my boss would appreciate me sending you the whole of our site. Thanks anyway. Have you managed to pass a custom class to a web service before successfully?
-
Passing custom object to web serviceWell I have managed to achieve what I want to but in a pretty crude way. I have written a function to serialize a class and one to deserialize it. Like this -
Public Function Object2XML(ByVal obj As Object) As String Dim SW As New StringWriter Dim Ser As New XmlSerializer(obj.GetType()) Try Ser.Serialize(SW, obj) Return SW.ToString Catch ex As Exception Throw ex End Try End Function Public Function XML2OBject(ByVal xml As String, ByVal Type As Type) As Object Dim Obj As New Object Dim SR As New StringReader(xml) Dim Serializer As New System.Xml.Serialization.XmlSerializer(Type) Try Return Serializer.Deserialize(SR) Catch ex As Exception Throw ex End Try End Function
But surely there is a better way to do it than this? -
Passing custom object to web serviceI am adding a web reference to it. I have removed it, recompiled the service and added it again and still has the same problem.
-
Passing custom object to web serviceRemoved the reference and added it again and still no luck.
-
Passing custom object to web serviceI have removed the old class.
-
Passing custom object to web serviceOkay I have imported it into both projects so they are both using the dll. But it still says "namespace.classname can not be converted to web_service_name.classname" Same problem as before.
-
Passing custom object to web serviceThanks for you help so far. I have compiled the class into a dll and placed it into the bin directory. Now what do I do with it?
-
Passing custom object to web serviceExactly!!! How can I get these to be the same? Surely it shouldn't be too difficult to just send an object with only a couple of string in it!
-
Passing custom object to web serviceThanks but that has nothing to do with my problem. They are both the same definition. What I am trying to do is to get it to recognise that.