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