Web Service changes return type

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



0
Iain1263 (24)
7/28/2008 8:03:54 PM
dotnet.xml 7266 articles. 0 followers. Follow

1 Replies
620 Views

Similar Articles

[PageSpeed] 17

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

"Iain" wrote:

> 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
> 
> 
> 
0
Iain1263 (24)
7/30/2008 8:16:18 PM
Reply:

Similar Artilces:

Change Report Title before Emailing
On the cmdUpdate_Click button, the record is appended to the permanent file, a report is generated and emailed, and the form is cleared for the next record. I would like to append the date to the report title. The date currently prints as part of the subject line of the email, but I do not want the recipient to have to change/edit the document name. I posted on the Report page but have not received a reply. -- Teach me to fish! Thanks for the help. Pax, M =?Utf-8?B?bSBzdHJvdXA=?= <mstroup@discussions.microsoft.com> wrote in news:45811C3B-F028-4ACE-8419-8B077EC3E9F5@microso...

Creating Appointments from Web Pages
Hello All, I want to create an appointment in Outlook when the user clicks on a link on the web page. Can anybody please tell me about the ways and the tools that are available to this? Thanks in advance, Satyajit Bhagwat Use Outlook to create an appointment, then save it as an .ics iCalendar = file. Put the file on your web site and add a link to it.=20 --=20 Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for=20 Administrators, Power Users, and Developers ...

Saving a web page with a background sound
I am having a problem publishing my website with Publisher using the ftp server for my Comcast webspace. If I publish my website without a background sound it is fine, but as soon as I add a .wav file as a background sound through web properties in Publisher, I get an error that Pulisher can not save this file to the web. Does anyone have any suggestions. I forgot this info. I am using Publisher2000 and when I preview the web page in Publisher, the preview plays the sound. "Marland" wrote: > I am having a problem publishing my website with Publisher using the ftp > ...

Change the Intercompany posting message
The posting message that pops up when posting an intercompany transaction in payables reads the following - At least one distribution amount for a company does not match the corresponding company. Do you want to continue?" This message is just an alert message since there are distribution amounts for another company. Click on OK and you should be able to continue saving the intercompany transaction. This should be changed as it makes people think there are errors ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the mos...

Web Query Question
I'm updating sports scores in excel 2002, The first set of Columns Are the Team Names and the Final Score of the Game (These 2 columns update after each game). My other 2 columns are used for notes and other information. When ever I refresh the data, the first 2 sets of columns update, however the notes for the game stays in the same place. How do I get my other 2 columns to move down the page with the old scores. Please help, because this is driving me crazy! If I need to explain further Please dont hesitate to ask!! Thank you, Matt Thu, 20 Dec 2007 13:22:00 -0800 from So...

office outlook web access 8.1.375.2
The inbox view automatically truncates the 'From' and 'Subject' fields of each email to 16 or 25 characters. This makes scanning down the list of emails difficult since a good portion is not displayed. How do I as a user or as an admin, change the default settings for this truncation so more characters are displayed? > The inbox view automatically truncates the 'From' and 'Subject' fields > of each email to 16 or 25 characters. This makes scanning down the > list of emails difficult since a good portion is not displayed. How do > I as a user or ...

Web Query #5
Hello, I am using Excel 2003. Are there web pages that do not allow you to use the web query function in Excel? I have found when trying to use the Web Query, in some cases, when I click IMPORT, I do not get any results. It either comes up blank or I get a banner/message that is not on the actual page I trying to import! Thanks ...

Email service for members...
We are an association (ABC.org) that offers an email service to our members that allows them to sign up for an email address that ends in the same domain as that of the staff at our headquarters. For ex, a doctor could sign up for: drJohnson@ABC.org and provide a 3rd party email of drjohnson@yahoo.com so all email sent to the @ABC.org is forwarded to the yahoo account. Currently, our ISP maintains a list of all doctors that participate in this service and filters for email sent to those email addresses and fwd's them to the 3rd party address so they never reach our Exchange server. ...

Investment
Money 3000. Money has incorrectly classified my Stocks as Mutual Funds. How can I change that? In microsoft.public.money, Denis wrote: >Money has incorrectly classified my Stocks as Mutual Funds. >How can I change that? This could have come about when converting from Quicken. When you convert a custom data type from Quicken, it generally comes over as a fund. It is not trivial, but not as hard as it first appears. A few minutes should do it for each stock. In the details, remove the existing symbol, and rename the existing "mutual fund" to something you will never use. L...

finding the results of changing 4 variables
Hi, I'm working on a 10 year financial forecasting model for an investment fund. The end result is to calculate the IRR. There are 4 variable inputs I would like to change, and observe how the IRR changes as those inputs change. In other words, I would like to play with changing two different fees, the fund size, and the expected return, and see how changing those impacts the IRR. Is there a way to do this on one sheet without manually changing all these inputs? I think Scenario or Data Tables might do it, but I'm not sure. Thank you. You might try this template...

Viewing Access Reports on Web page prompts download
My Issue is related to knowledge base article 921025. The solution in the article fixes our problem perfectly but the issue is that every time new windows update patches are installed (once a month) this registry key is changed back to its original state. This is causing havoc because every month we have a mob of angry users who cannot view important production information until we can reapply the work around to all the pc's in the plant! Is there a more permanent solution we can put in place? What we did was switch from snp to pdf and uploading those instead. GEFanucJP wrote: &...

Works fine in PUB and WEB Preview
Hello all - I apologize for my neophyteness in advance. Everything works fine in PUB. When I look at the web preview it looks fine. When I publish it to disk IE'ing from the HTML works fine. When I place it on the web the links for subsequent pages in the guidance bar on the left side (the pre-canned feature in PUB) do not link. They go to a blank page. I have placed all files in exactly the same folders on the web as they are on disk after publishing. You can see it at: geocities.com/ucstrandview THanks in advance for the help. MP Publisher - Uploading Articles on publishing ...

Web Browsing on my Ameritrade
Really like the Money 2007 interface, tightly integrating the browser is a great way to integrate all the other online accounts and services. I've set up all my financial browser links and don't even bother opening the browser when I'm checking potential investments. Direct access to my bank server is so much better than the old download method. Ahead of its time IMHO. Couple of observations/ questions If anyone know someone connected with the software, I'd like to pass along a suggestion to see easier access to web favorites. Right now its a 3 click process to access ...

Writing to one trace file from Web Service
Presumably a trivial question... I want to write trace information from a web service to a log file using the Trace Class. Is this possible without closing and opening the Trace in every single web method? Code: public Webservice() System.IO.FileStream ts = new System.IO.FileStream(traceFile,System.IO.FileMode.Append); Trace.Listeners.Remove (Trace.Listeners[0]); Trace.Listeners.Add(new TextWriterTraceListener(ts)); Trace.WriteLine("Constructor " + System.DateTime.Now.ToString()); Trace.Close(); [WebMethod] public WebMethod () { System.IO.FileStream ts = ...

Report Web Access
Hi, I need make a report to check the users of my network that access the Outlook Web Access from outside. Do you know how i can do this? Thanks Alvaro You can use a web log analyser on the logs generated by IIS on the OWA server. Regards Paul "Alvaro" <anonymous@discussions.microsoft.com> wrote in message news:08fb01c3db68$3b4bc910$a601280a@phx.gbl... > Hi, > > I need make a report to check the users of my network that > access the Outlook Web Access from outside. Do you know > how i can do this? > Thanks > > Alvaro "Alvaro" <ano...

Problems with Outlook Web Access in Exchange 2003
Has anyone noticed any issues with OWA in 2003? I have had a few users where if they go into their regular Outlook, they see tons of mail from various senders in their inbox. However, when they go into their Outlook Web Access, they do not see all of that mail in their inbox. They may only see mail going to certain groups they are members of. I also have users in which if they open a new email in OWA, as soon as they close it, it disappears from their inbox. And it doesn't show up in their Deleted folder. In both cases, I can export their mailbox as a pst, delete and recreate their a...

List of free web site design, web site backgrounds, web site layouts resources
List of free web site design, web site backgrounds, web site layouts resources http://www.geocities.com/freefreemyspace/ ...

urgent: how do i shut down report services?
urgent: how do i shut down report services? I do not want people to open reports as it is killing the systems performance. You can go on the CRM server and open up the services manager and stop the Crystal APS service. (Start > Administrative Tools > Services) This will also stop the other Crystal services. -- Matt Wittemann http://icu-mscrm.blogspot.com "ntcrsk" wrote: > urgent: how do i shut down report services? I do not want people to open > reports as it is killing the systems performance. ...

Opening PPSX files from Web Pages
Anyone else having problems where PPSX files are opening in edit mode with Office 2007? And yes, I've edited IE to make sure it's opening correctly. I've seen others with the same problem, but no fix. Does anyone know of a fix to this? In article <496A37F7-72E6-4774-994F-8816C5E69871@microsoft.com>, Jjsmits9 wrote: > Anyone else having problems where PPSX files are opening in edit mode with > Office 2007? And yes, I've edited IE to make sure it's opening correctly. > > I've seen others with the same problem, but no fix. Does anyone...

service pack 4
has anyone has had this error script '[49]() of form SOP_Entry' no found. after the service pack 4a installation.....in the latin american version thanks! ...

Change color of "selected" (highlighted) text in Word 2008 for Mac 05-16-10
Word now uses a light blue, which I find hard to see against the white background. Can this color be changed? Thanks. As far as I know there is no way. I don't know why the change. In Office 2004 they were black which is much more readable. There's no option in Word -- It's controlled by the OS X System Preferences for Appearance which you can change to whatever you want. HTH |:>) Bob Jones [MVP] Office:Mac On 5/16/10 12:35 PM, in article 3C17CEA6-6435-43B0-A57E-422092A87E0D@microsoft.com, "Eric74" <Eric74@discussions.microsoft.com> wrot...

Change Header on Multiple Sheets without Changing Other Formatting
Hello I have a file with sheets that have the same header. Each tab has specific page setup formatting that I need to keep intact. I tried highlighting all tabs and changing the header via page setup but the other page setup formatting changed to the formatting of the first sheet. Is there a way to add the header I would like to put on all tabs to the header drop down menu on header/footer tab in page setup. Thanks Only through VBA. Sub Text_In_AllFooters() Dim WS As Worksheet For Each WS In ActiveWorkbook.Sheets WS.PageSetup.CenterHeader = "Some te...

Change recurring appontments to single appointments?
Is there a way to change a recurring appointment to single appointments (that aren't linked to each other)? I mean is there a way to do this automatically? "Ms.O" <MsO@discussions.microsoft.com> wrote in message news:21CBE68B-20AD-4AA0-97A5-1D5653B108E6@microsoft.com... > Is there a way to change a recurring appointment to single appointments > (that > aren't linked to each other)? > > I mean is there a way to do this automatically? That are linked to each other? No. You can, however, copy the recurring item to a separate calendar...

run report on web page, import to excel
I need to run a report on a web page and import it to excel in an automatic way. First I need to open this company internal web page: http://webha.kenmex.paccar.com/edc/default.aspx and select the "1EDCMAT" report, here is part of the source code: </select><br> <span id="lblSelectReport">Select a saved report to automatically load it</span><br> <select name="selSavedReports" onchange="__doPostBack('selSavedReports','')" language="javascript" id...

Publishing to the WEB #2
If I own a domain name, say rentalproperties.net, can I publish my website to the WWW by simply following the process prescribed by the help program? Where does the website file need to be stored in order for users to access the site? You need to ask your web host. There are literally a dozen different directories you need to publish to: /homepage, /http_docs, /public_html, /public_doc, etc. If you are using forms (and maybe other features) you will need to make sure your server supports Front Page Server Extensions. Your Web Host normally will send you an e-mail with the specifics in...