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

  • Thread starter Thread starter iKiLL
  • Start date Start date
I

iKiLL

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
 
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








Dave Sexton said:
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/micr...vice+reference+update&rnum=4#915d7bb1b21f1973

--
Dave Sexton

iKiLL said:
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
 
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.














iKiLL said:
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








Dave Sexton said:
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/micr...vice+reference+update&rnum=4#915d7bb1b21f1973

--
Dave Sexton

iKiLL said:
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
 
Hi,

Thanks for posting the solution :)

--
Dave Sexton

iKiLL said:
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.














iKiLL said:
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








Dave Sexton said:
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/micr...vice+reference+update&rnum=4#915d7bb1b21f1973

--
Dave Sexton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top