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 / ASP.NET / Web Services / December 2006

Tip: Looking for answers? Try searching our database.

Web service References.cs  not updating???????? I am going made. I think?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
iKiLL - 13 Dec 2006 10:32 GMT
Hi all,

I am using C# on VS2005.

I have a solution with 2 projects, a Webservice and a Client application.

Both of these to projects can build compile and run.

I have been asked to extend the functionality of the Solution. This is not
the first time I have had to do this. I did it last week and there were no
problems. I have been using the same machine.

I have added a new Public Class (Below) to the web service.

[XmlRoot("SearchResultsData")]

[XmlInclude(typeof(AssetData))]

public class SearchResultsData : DefaultObj

{

   private arraylist searchresults = new arraylist();

   [xmlarray("items"), xmlarrayitem(typeof(assetdata))]

   public arraylist items

   {

       get { return searchresults; }

       set { searchresults = value; }

   }

}

I then Build the webservice, and then right click on the web reference and
update. There are no errors or out put.

It seems that the References.cs does not update which means that I cannot
access the new public class.

This is not just limited to this class I have tried to create a  blank Test
class and that doesn't become visible either.

Any ideas why the Update would literally stop working over night?

And any idea how to fix this.

Thanks for all the help.

ink
Dave Sexton - 13 Dec 2006 11:03 GMT
Hi,

Check out the following thread.  I found it on groups.google.com by
searching for "web service reference update".  It's from 2004, but it might
help:

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_f
rm/thread/4effdc1311e9fe3e/915d7bb1b21f1973?lnk=st&q=web+service+reference+updat
e&rnum=4#915d7bb1b21f1973


Signature

Dave Sexton

> Hi all,
>
[quoted text clipped - 50 lines]
>
> ink
iKiLL - 13 Dec 2006 11:34 GMT
Thanks for getting back to me.

i have had a look at the Thread you sent me. But it doesn't have the
solution.

Something elss i have noticed. If i change on of the Web Methodes (Remove an
argument) and then up date the Web reference. The update works perfictly.

this problem seems to be limeted to only public classes.

Thanks.
ink

> Hi,
>
[quoted text clipped - 58 lines]
>>
>> ink
iKiLL - 13 Dec 2006 15:14 GMT
I found the answer.

The following line was missing from my Main WebService class to tell the
referenc thing to read the other public class details.

[XmlInclude(typeof(SearchResultsData))]

I hate being new to things. you waist so much time.

> Thanks for getting back to me.
>
[quoted text clipped - 73 lines]
>>>
>>> ink
Dave Sexton - 13 Dec 2006 15:20 GMT
Hi,

Thanks for posting the solution :)

Signature

Dave Sexton

> I found the answer.
>
[quoted text clipped - 82 lines]
>>>>
>>>> ink

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.