473,769 Members | 4,999 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("Search ResultsData")]

[XmlInclude(type of(AssetData))]

public class SearchResultsDa ta : DefaultObj

{

private arraylist searchresults = new arraylist();

[xmlarray("items "), xmlarrayitem(ty peof(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 10340
Hi,

Check out the following thread. I found it on groups.google.c om 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***@NotMyEma il.comwrote in message
news:OV******** ******@TK2MSFTN GP02.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("Search ResultsData")]

[XmlInclude(type of(AssetData))]

public class SearchResultsDa ta : DefaultObj

{

private arraylist searchresults = new arraylist();

[xmlarray("items "), xmlarrayitem(ty peof(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******** *****@TK2MSFTNG P04.phx.gbl...
Hi,

Check out the following thread. I found it on groups.google.c om 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***@NotMyEma il.comwrote in message
news:OV******** ******@TK2MSFTN GP02.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("Search ResultsData")]

[XmlInclude(type of(AssetData))]

public class SearchResultsDa ta : DefaultObj

{

private arraylist searchresults = new arraylist();

[xmlarray("items "), xmlarrayitem(ty peof(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(type of(SearchResult sData))]

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




"iKiLL" <iK***@NotMyEma il.comwrote in message
news:um******** ******@TK2MSFTN GP06.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******** *****@TK2MSFTNG P04.phx.gbl...
>Hi,

Check out the following thread. I found it on groups.google.c om 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***@NotMyEma il.comwrote in message
news:OV******* *******@TK2MSFT NGP02.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("Search ResultsData")]

[XmlInclude(type of(AssetData))]

public class SearchResultsDa ta : DefaultObj

{

private arraylist searchresults = new arraylist();

[xmlarray("items "), xmlarrayitem(ty peof(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***@NotMyEma il.comwrote in message
news:eb******** ******@TK2MSFTN GP03.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(type of(SearchResult sData))]

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




"iKiLL" <iK***@NotMyEma il.comwrote in message
news:um******** ******@TK2MSFTN GP06.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******* ******@TK2MSFTN GP04.phx.gbl...
>>Hi,

Check out the following thread. I found it on groups.google.c om 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***@NotMyEma il.comwrote in message
news:OV****** ********@TK2MSF TNGP02.phx.gbl. ..
Hi all,

I am using C# on VS2005.

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

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("Search ResultsData")]

[XmlInclude(type of(AssetData))]

public class SearchResultsDa ta : DefaultObj

{

private arraylist searchresults = new arraylist();

[xmlarray("items "), xmlarrayitem(ty peof(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

0
1367
by: Saix News | last post by:
hi, i have an application that references a web service. the web service a particular user will need though may be local to their network or a totally different one available on the internet depending on who and where they are. is there a way of dynamically referencing a web service at run time or does the reference have to be compiled into the exe? thanks
2
1230
by: Fred Chateau | last post by:
I have a UI application that references business objects in Visual Studio on two identical servers (ws1 & ws2). The business objects are the same so the methods from each Web Service proxy are the same. I instantiate each Web Service proxy in the application and call the methods but the methods are always answered from ws1. Is this a bug in Visual Studio or must each Web Service proxy contain uniquely named methods? The following is...
4
3274
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.
0
2365
by: =?Utf-8?B?QW5keSBZdQ==?= | last post by:
Hi, I'm trying to return exceptions from a WCF Service using FaultExceptions. I got the service compiled and running. But I get an error while adding a service reference to it. The error reads: " Attempting to download metadata from 'http://localhost:4619/WCFService1/Service.svc' using WS-Metadata Exchange or DISCO. Error: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension:
1
1364
by: Robson Siqueira | last post by:
Guys, I've been experiencing a weird problem. I am developing a web service in pretty much the same way I do develop other types of application using C#.net (2.0). The problem is that when I run the application from Visual Studio the code that is presented to me is different than the actual code. It takes some cumbersome actions to get it to work: a) "clean" the solution, rebuild it and then run b) close and open VS again
3
3139
by: =?Utf-8?B?Q3JhaWc=?= | last post by:
Background: I am building a Windows enterprise application that has separate assemblies for UI, business logic/rules, and data access (i.e. typical N-tier architecture). Many of the assemblies reference a "name and address web service," which gives me validation lists for name honorifics (e.g. Dr, Mr, Miss, Mrs), name suffixes (e.g. Sr, Jr, III), and City/State/ZIP combos. The same name and address web service also can save and retrieve...
2
3240
by: Marc S | last post by:
I have a WCF service deployed on IIS. When I browse to the service through IE everything is peachy. When I try to add a reference to the service in Visual Studio 2008 "Add Service Reference" I get prompted to login and the title of the login box reads "Discovery Credential". I enter in my username and pass and it prompts me again. I enter an admin user and pass and it still prompts me. What could be causing this? Our IIS requires us...
2
972
by: CJM | last post by:
I've got a library project containing common code. I've got it included in another solution as a project reference, but when I update any code in the library, it's not immediately reflected in the main application. How are updates to referenced projects handled in these situations? At the moment, I just fiddle until eventually the updates are reflected in the main application - hardly a scientific approach! Thanks in advance.
7
2119
by: dgk | last post by:
I'm trying to use a Sharepoint webservice. I start a new VB Windows project (VS2008 or 2005). I add a web reference to the Copy service (http://192.168.1.25/_vti_bin/copy.asmx). I add no code, all I've done is start a new project and add the reference. I build the project and get this error: Error 1 'Results' is already declared as 'Private results() As Object' in this class. C:\Documents and Settings\user1\Local Settings\Application...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9994
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7409
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6673
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5299
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3959
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 we have to send another system
2
3562
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.