Could you please throw some light on how the versioning needs to be done for
the proxy class?
One more question regarding the custom class:
I'm not sure what's the preferred/best method to retrieve the records from
the webservice. Which one is better when deciding to retrieve data from web
service?
1. Using Datasets (Multiple datatables can be returned. But could this make
the web service slower than when using custom objects)
2. Custom objects
BTW, when deciding to use custom objects. How should the records be stored
inside the object (I mean what's the industry standard or preferred method
of storing multiple records in a custom object?) Should a dataset/datatable
be used inside the custom object to store data or is there another better
method?
Another question/topic:
The architecture that I want to follow is GUI -> Web service -> Business
Objects -> database.
I would like the application to be highly scalable and load balanced.
Therefore I would like to scale it at the business objects level. If I have
multiple servers with the Business Objects installed/running. How could I
let the web service know
1. Which server to use (depending on load balancing.) BTW to load balance
should I incorporate any logic to the application/webservice?
2. How to supply/notify my web service at run-time the servers that have the
Business Objects running?
Thanks in advance for your valuable inputs.
"Manohar Kamath" <mkamath@TAKETHISOUTkamath.com> wrote in message
news:uju$4c0IFHA.1172@TK2MSFTNGP12.phx.gbl...[color=blue]
> Yes, you will lose the changes to the proxy classes if you re-generated[/color]
the[color=blue]
> proxy class. However, this is one of those "to-do" if this ever happened.
> And also, once you have the web service solidified, the proxy class should
> never change -- as a change would mean a change in the version.
>
> --
> Manohar Kamath
> Editor, .netWire
>
www.dotnetwire.com
>
>
> "Glenn" <csharp@blackwinter.net> wrote in message
> news:OWMxgnzIFHA.4092@tk2msftngp13.phx.gbl...[color=green]
> > Noel
> >
> > What about creating serialisable types from schema definitions and then
> > passing the xml as a XmlNode or XmlDocument and then deserialising and
> > reserialising inside the web service. That way if anyone else needs to[/color]
> use[color=green]
> > your web service, you only need publish the schema and wsdl and anyone[/color]
> could[color=green]
> > bind to it.
> >
> > As for the employee.dll, could you expose the functionality as a web
> > service? It may make your application a bit chatty on the wire[/color][/color]
depending[color=blue]
> on[color=green]
> > how you use it, but a least you won't have as many deployment headaches
> > (albeit reduced with .net).
> >
> > Apologies if I've misunderstood Manohar's comment, but manual changes to[/color]
> the[color=green]
> > web service proxy would be lost if you made a change to the web service[/color]
> and[color=green]
> > refreshed the reference at the client end.
> >
> > HTH
> >
> > Glenn
> >
> > "Noel" <nospam@nospam.com> wrote in message
> > news:un8g9RtIFHA.2132@TK2MSFTNGP14.phx.gbl...[color=darkred]
> > > Thanks for the reply Manohar.
> > >
> > > When I try to reference the employee assembly instead of[/color][/color][/color]
proxy-generated[color=blue][color=green][color=darkred]
> > > types, I get an invalid type-cast error. BTW, I'm trying to pass the
> > > employee object to the web-service as a reference. Is there a way to[/color][/color][/color]
get[color=blue][color=green][color=darkred]
> > > around the invalid type cast error?
> > >
> > > Thanks in advance.
> > >
> > > "Manohar Kamath" <mkamath@TAKETHISOUTkamath.com> wrote in message
> > > news:%23DanMFaIFHA.2620@tk2msftngp13.phx.gbl...
> > > > The methods are never serialized in web services, only data (state)[/color][/color]
> is.[color=green][color=darkred]
> > > You
> > > > could serialize and de-serialize into the same type, but it will[/color][/color]
> require[color=green][color=darkred]
> > > > some manual changes to your proxy classes (you need to reference the
> > > > employee assembly, instead of proxy-generated types).
> > > >
> > > > --
> > > > Manohar Kamath
> > > > Editor, .netWire
> > > >
www.dotnetwire.com
> > > >
> > > >
> > > > "Noel" <nospam@nospam.com> wrote in message
> > > > news:OlsUV6ZIFHA.572@tk2msftngp13.phx.gbl...
> > > > > Hello,
> > > > >
> > > > > I'm currently developing a web service that retrieves data from an
> > > > employee
> > > > > table. I would like to send and retrieve a custom employee class[/color]
> > to/from[color=darkred]
> > > > the
> > > > > webservice. I have currently coded the custom employee class and[/color][/color]
> have[color=green][color=darkred]
> > > > built
> > > > > it as a separate library (employee.dll). This employee.dll is[/color][/color][/color]
being[color=blue][color=green][color=darkred]
> > > > > referenced by both the web service and the windows application.
> > > > >
> > > > > I face the following problem when I send this class to the[/color][/color]
> webservice.[color=green][color=darkred]
> > > > >
> > > > > 1. The procedures and functions are not getting serialized. i.e.[/color][/color]
> when[color=green][color=darkred]
> > > the
> > > > > webservice returns this class, I'm unable to access the procedures[/color][/color]
> and[color=green][color=darkred]
> > > > > functions for manipulating the data in the class.
> > > > >
> > > > > Could someone let me know how I could solve this issue? I'm in[/color][/color]
> trouble[color=green][color=darkred]
> > > and
> > > > > am badly in need of help. Please advise.
> > > > >
> > > > > Thanks,
> > > > > Noel
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]