Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / July 2008

Tip: Looking for answers? Try searching our database.

Web Service changes return type

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Iain - 28 Jul 2008 21:03 GMT
I've a web service which has been running for some time.

The web service retrieves order batches from a database so has quite a deep
class structure.

The class structure is based on an xsd which generates teh c# classes which
get filled by the database which then get pushed down the wire by the web
server.  Standard stuff.

The problem is that the web service client sometimes decides to change the
type that is returned.

So the Order is of type (go on, guess - yes) 'Order' and it sits in an
OrderBatchType.

The Web service is specced to return an Order object.  However, the client
sees this as an OrderBatchTypeOrder.  

This seems to happen after a change to the server side class structure
(adding some properties) and an update.

Thing is this happened 6 months ago and I struggled for some time with it. I
finally got it working again, but I have now no idea how :(

So what can make the client return a type which is different (in name at
least) to that declared and sent by the server?  - and how do I fix it!?

Iain
Iain - 30 Jul 2008 21:16 GMT
Does any one have any ideas on this.  It's blocking me at the moment and I
have no idea what to try...

Thanks

Iain

> I've a web service which has been running for some time.
>
[quoted text clipped - 24 lines]
>
> Iain

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.