473,498 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
Dec 13 '06 #1
4 3251
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/micro...5d7bb1b21f1973

--
Dave Sexton

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:OV**************@TK2MSFTNGP02.phx.gbl...
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


Dec 13 '06 #2
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" <dave@jwa[remove.this]online.comwrote in message
news:Ow*************@TK2MSFTNGP04.phx.gbl...
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/micro...5d7bb1b21f1973

--
Dave Sexton

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:OV**************@TK2MSFTNGP02.phx.gbl...
>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



Dec 13 '06 #3

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" <iK***@NotMyEmail.comwrote in message
news:um**************@TK2MSFTNGP06.phx.gbl...
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" <dave@jwa[remove.this]online.comwrote in message
news:Ow*************@TK2MSFTNGP04.phx.gbl...
>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/micro...5d7bb1b21f1973

--
Dave Sexton

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:OV**************@TK2MSFTNGP02.phx.gbl...
>>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




Dec 13 '06 #4
Hi,

Thanks for posting the solution :)

--
Dave Sexton

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:eb**************@TK2MSFTNGP03.phx.gbl...
>
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" <iK***@NotMyEmail.comwrote in message
news:um**************@TK2MSFTNGP06.phx.gbl...
>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" <dave@jwa[remove.this]online.comwrote in message
news:Ow*************@TK2MSFTNGP04.phx.gbl...
>>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/micro...5d7bb1b21f1973

--
Dave Sexton

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:OV**************@TK2MSFTNGP02.phx.gbl...
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




Dec 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2796
by: hazz | last post by:
given namespace WindowsService1 { public class Service1 : System.ServiceProcess.ServiceBase......... private void timer1_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { ArrayList...
0
1169
by: Dave Rayment | last post by:
Hi, We have a multiple-project solution in VS.NET 2003, including a single web service. A couple of projects in the solution have references to this web service and everything was working OK...
3
1306
by: Wendy Elizabeth | last post by:
I am going to be writing a web service in Visual Basic .NET internally for my company. This web service is going to be setup to send various kinds of messages to the internet since the main...
11
1939
by: codebloatation | last post by:
I know how to use references but i DO not get WHY they exist other than to add to the language. Are they actually needed for anything?
4
10316
by: iKiLL | last post by:
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.
6
3959
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
5
2152
by: Josh | last post by:
I have application1 that connects to webService1. I have a second application that references the same webservice (webService1). I need to pass an instance of a class returned from webService1...
8
2807
by: Doogie | last post by:
You know they say there is no such thing as a dumb question? This might be the exception...I'm not sure. :) In VS.NET 2003, if you create a web service it is namespaced like so: namespace...
3
2087
by: Mike | last post by:
I have a web app that is referencing several web services. When I make a change to a web service (add, modify a method), I have to 'Add Web Reference' for the changes to take affect. If I do 'Update...
2
5543
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
0
6993
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7162
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6881
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4584
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.