VS 2008 WCF For Web Services?

Oct 18, 2010

I am .net windows programmer and new to web services.I want to start with web services using .net.Should I directly jump to WCF. What was there for developing web services in .net before WCF. Is there more to web services than WCF ?Basically I need some guidance to start such that I get to know the concepts as well as start developing web services using latest .net classes.

View 3 Replies


ADVERTISEMENT

VS 2008 Application Runs Like As NT Services

Jul 5, 2010

I am new in programming. Have a some knowledge in scripting. me in sample coding using VB 2008. - Create an application that will run on system start up and still run even if user's Log off. - The application will read a list file that contains other application names (e.g notepad.exe) then the application will continue running.. if notepad runs then it will log to a text file the time started the execution and after it was quit it also log the application ended time of execution. - Like its running as services.

View 6 Replies

VS 2008 Checking Server Services

Jun 6, 2009

I have started to Build my Server Monitoring/Alarm system and I have built all the components that check network connectivity and internet connectivity etc and alarm if anythingis bad.However I am now struggling to find a way that I can check the following local services are running ok:
[code]

View 1 Replies

VS 2008 Do Services Run At Windows Welcome Screen?

Jun 12, 2009

I'm wondering, do services run at the welcome screen??

View 1 Replies

VS 2008 Do Timers Not Work In Services

Mar 12, 2010

Do timers not work in services? I have a service that is running fine, has been for a while. I'm trying to add some work that needs to kick off regularly, so I create a timer that fires every 5-seconds and kick it off when needed. The Tick event never fires. Never, not once. I'm not sure why it doesn't work. Here's the relevant code I'm using. I have 4 backgroundworker threads named, simply enough, bgw1 - bgw4. I wil show you the code for one of the threads so you can see what I'm doing.

[Code]...

View 2 Replies

VS 2008 .Net Class Library DLL And Component Services?

Nov 23, 2009

I have a DLL file i have made in VS2008...builds with no errors...but when i go to add it to my servers component services i get an error...i have attached a screen shot of where i am getting the error and what the error is...i even tried to make a simple single class dll with the following:

[Code]...

View 6 Replies

VS 2008 Do Timers Work In Windows Services

Oct 28, 2010

Do Timers work in Windows Services?

View 13 Replies

VS 2008 MS Reporting Services Question - Designer?

Nov 11, 2009

I am trying to build a report using MS reporting services (rdlc file) and having trouble figuring out syntax to take calculated data from a textbox in table1 to table2. In other words, I have totals calculated in table1 and I need to display those totals in another table (table2) and/or a text box outside of table1.

I have tried versions of =ReportItems!TextBox37.Text and =ReportItems!TextBox37.Value and =ReportItems("TextBox37").value etc. but with no luck. The last thing =ReportItems("TextBox37").value does compile but it prints #error on the report.

View 3 Replies

OnPause And OnContinue Events Windows Services In VS 2008

Jan 8, 2010

I'm trying to write a windows service using vs 2008. I've worked some on services written with VS 2005, but I'm not sure if I've written one from scratch before. When I create my Windows Service, it creates a new class called Service1.vb. If I go to the methods available for Service1, I see OnStart, OnStop, New, and Finalize. The Windows Service that I have that was written in VS 2005 also has an OnPause and OnContinue events. I need these in my service as well.

View 1 Replies

VS 2008 - Web Services Application Takes FOR EVER To Build / Run Using Windows 7

Jul 6, 2010

I'm a relatively seasoned VB (COM) vet but this is my first VB.Net application and as is my luck a web services application feeding off a site that I can't publicly mention nor can I post any code that may expose the site.

So, here's the problem. I have written a simple form and have 2 buttons. 1 button simply asks the webservice for it's version. This works no problem. I was able to load the web reference using their supplied WSDL file for this "version" class. Now that I have that working I think "GREAT, that was straight forward. I have my credentials, urls, etc working, the rest of this should be just as straight forward." (See where I jinxed myself here?)

Anyway, I move onto the next WSDL and set of classes and get that reference added no problem. (Man that took a LONG time, like 20 minutes.) I then build my "Get my order data" code syntaxes on the prescribed exposed classes and run my project just to see what errors I get. The "run" process takes almost 45 minutes to an hour..... It's as if the app is getting the WSDL set all over again but doing it over and over..... I have no clue what's going on.

I've tried to disable all the Windows 7 "potential" issues, UAC, firewall, etc, but these changes don't help. Anti virus, spyware, etc all these are off and no difference. I'm running VS2008 as an Admin, right click "run as admin", and have complete control over this machine. Any ideas, suggestions, etc are VERY welcome and I am happy to expose as much of this application as I can providing I can stay with in the rules of the confidentiality contract.

View 1 Replies

What Is Ado.net Synchronization Services And How To Use These Services

Mar 14, 2009

What is ado.net synchronization services and how to use these services

View 1 Replies

.net - Custom Code In Reporting Services 2008 Makes Cell Show #Error?

Dec 6, 2011

I have the following code in "Custom Code" in SSRS 2008. It works fine in VS2008 but it won't run on the server:

Public Shared Function Ns(ByVal num as Object, ByVal def as Object) as Object
if IsNothing(num) OrElse Not IsNumeric(num) OrElse System.Double.IsNaN(num) then
return def

[code].....

View 1 Replies

.net - Generic .Net Web Services?

Jul 15, 2009

At the moment we're are considering writing a number of .Net web services to export/import data between sites. There are various different types of data involved, relating to multiple database tables. I could write various web services to receive the data being sent, for example

ImportSomeRecord(field1, field2, field3)
ImportSomeRecord2(field1, field2)
ImportSomeRecord3(field1, field2, field3, field4, field5)
and so on...

There could be about 40 of these services, and it's also possible that the fields may change i.e. new fields may be added. The client would be a VB6 application that would call the remote web service, and let that web service update the remote database. The web services will be written in VB.Net 2008.

Would it be advisable to replace all these web services with a single generic service e.g. ImportRecords(recordtype, blobofdata). I think this can be done in theory by just passing an XML string as the blob of data and letting the web service unravel this depending on the record type, but is there actually any advantage to this, and is it good practice to do so? I've read somewhere that passing XML chunks in this way, as a single parameter, isn't recommended, and I can see this also seems to be somewhat contrary to standard web service usage in that in effect I'm bypassing the web service definition.

View 2 Replies

.Net Exchange Web Services?

Aug 31, 2011

I created an application using the Exchange Web Services, everything works fine, but after running 3 or 4 times, I suddenly get the error:

There was an error downloading "whatever/ews/services.wsdl"The remove name could not be resolved:There was an error downloading "whatever/ews/services.wsdl/$metadata"That gets me is its working find for a while, then it just stops working. I do an update and get the error. wait a little longer, try to browse it through browser and it prompts me for a user name and password, even though I checked the box "Remember".

View 1 Replies

Accessing Services Using WMI

Nov 12, 2009

I am trying to access a remote 2003 server using WMI. I can connect but when I try things like listing the services for that server I get the following: Access is denied. (Exception from HRESULT: 0x80070005(E_ACESSDENIED). Using the same code, I can connect and get a list of services a remote 2008 server. Here is the code to connect to the server (which gets me connected):

[Code]...

View 1 Replies

Consuming Web Services In .NET?

Feb 19, 2010

I am testing web services in .NET for the first time. I am almost there, but I can't seem to consume the web service. I know this post is similar to about 5-6 other posts on this site, but I have reviewed them, and still can't get the syntax correct.So far, I have:Create a simple web service that creates a directoryWorked in development environment, but took some trouble shooting to get to work on live server I can pull up the "automagically" generated .NET we service page.Added web service reference - can now see the reference in my solution explorer and in intellisense.

[Code]...

View 4 Replies

Ews (Exchange Web Services)?

Jun 12, 2009

I'm looking at using ews to move new emails to a sub folder and download attachments to a network drive. I was wondering if anyone had any experience with this particually using VB.net but all and any advice?

View 1 Replies

Using Ews (Exchange Web Services?

Mar 11, 2009

I'm looking at using ews to move new emails to a sub folder and download attachments to a network drive. I was wondering if anyone had any experience with this particually using VB.net but

View 2 Replies

VS 2010 Web Services / WCF?

Jul 13, 2010

many posts about the security risks of app.config file...ncrypted or not... for storing the connection strings of a remote database.OK! I agree with this... but... how can i make a VB.NET Application to connect to my database thru WebService or WCF as long my server is Centos with MySQL ? How can i make the connection strings of MySQL Connector to work with WebServices or WCF ? I did not find any solution for this problem.

View 1 Replies

Web Services For Dummies

Mar 9, 2009

I'm mainly a VB6 developer, but am currently trying to write a web service using VB.Net to allow for communication between our product and a third-party. The third-party software will invoke our web service to update various data.I've read up various things on how to do this, and have successfully generated a prototype web service. What I'm now concerned about is how to do this properly. Our clients want us to provide the WSDL and XSD for our web service, so they can implement it on their end, so I want to make sure I get it right. Therefore, I have the following assumptions/questions:The web service will receive various fields that should be updated. To keep this flexible, I thought that this could be a single XML parameter. I'm guessing this is why our clients want the XSD. Is this assumption correct? Is it good practice to pass an XML input parameter?I created a simple class with a sample of the fields that should be updated (Title, Address1, Address2 and so on) then generated an XSD from that using XSD.Exe. This made me think - should my input parameter be an instance of this class, rather than an XML document based on the XSD?

For example, the fields to be updated relate to client data. There are many possible fields that can be updated, but only a few will probably be updated at a time. Clearly, I don't want a method with 40 parameters for each possible field, and I was also asked to only provide a single method. My idea was therefore to have a parameter naming the fields to be updated, and their values. It seemed sensible to use XML for this parameter. My assumption regarding the request from our clients for the XSD came about so that we can make sure that the XML parameter will only include valid fields. But at the same time, I generated an XSD using Visual Studio based on a sample class I created. But now I'm not sure which is best to use i.e. either:

a) XML: cliData As Xml.XmlDocument: Appears in WSDL, but how would I generate an XSD to make sure the XML is valid? Manually?

b) Class: cliData As ClientData: Serialised in WSDL so each field appears as a separate element. Presumably no need for an XSD, but I don't think this gives me the option to only includes a few fields, and isn't this equivalent to having loads of parameters?

c) String: cliData As String: Pass in some sort of string, unravel it manually, but then no validation.

I initially planned to return the status of the web service (e.g. "OK" or some failure message), though I've seen reference elsewhere to SOAP Faults. There were some links to an MSDN article discussing this, but the links seemed to be broken.

View 3 Replies

Web Services Not In Assembly

Jun 9, 2012

I've converted a 2005 project to 2010. As I was debugging some issues I noticed that my compiles didn't seem to change anything so I deleted the bin directory and recompiled. Now all of my Web Services "ServiceName.asmx.vb" are no longer in the assembly and when I try to run them in the debugger, I get the following error:

Could not create type 'MyWebService.MyNamespace.MyService'.

I have verified that the Class and Codebehind are correct in the 'MyService.asmx' file.

I have verified that the MyService.asmx.vb file is marked to Compile and that the asmx file is Content.

View 1 Replies

Asp.net - Retrieve Data Using Web Services In .NET?

Jan 11, 2010

How to retrieve data from database using Web services on VB?

View 5 Replies

Asynchronous Web Services Between Different Platforms

Oct 12, 2010

I am writing web services with VB.NET (2.0). The client side will use different technologies such as Java and Siebel. So, if I write asynchronous web services, is it possible for different platforms to consume them? I know it is quite easy with a consumer having .NET platform, but not sure for different platforms. Is it enough for them to have asynchronous ability, or should it be a similar platform?

View 3 Replies

C# - Can Partial Classes Be Used For Web-services

Aug 10, 2010

Can partial classes be used for web-services or there is some other way to implement it ?

View 2 Replies

Check On Several Services To See If They're Running?

May 15, 2011

I need to check on several services to see if they're running on several servers. I would like the program to tell me if a specific service is or is not running and if it is to reply with a msg stating which service is running, same if it is not running.

this is what i have so far:

Private Sub CheckServiceButton_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckServiceButton.Click
' This will check if the service is running '

[Code]....

View 3 Replies

Create A Component Services For A DLL?

Jan 24, 2009

when is the neccisity to create a component services for a DLL.

i ask because , i have a dll and the website runs fine if i just register the dll.
so when should i go for componet services

View 1 Replies

Error With Services References

Jan 11, 2011

I am getting the following error when I add a service references that points to a web service.

'System.ServiceModel.XmlSerializerFormatAttribute' is not accessible in this context because it is 'Friend' in the Reference.vb file.

I have not gotten it in other projects that I have done that point to the same web service. I have recently add some code that I downloaded and cleaned up the errors in to my project and this seems to be what broke it. This code uses several new features that I am not familiar with, mainly the "Friend" declaration and also uses name spaces in the code it self. Also I converted the code from C# using an utility that I downloaded, that untility was not 100% in it's conversion, hence the clean up that was needed.

View 2 Replies

Have To Write A GetRetailerContext For Each Of The Web Services?

Aug 12, 2009

<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:EN-GB;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->

I am working on a system that calls several different web service to integrate in to a 3rd party system. each one of these web service contains a object called RetailerContext which is a type of security object that is required to get and set data.

My problem is the example code I was give in a document says you should crate a function called GetRetailerContext that set up the object for you, but because the object is defined in each of the web services that I have referenced the compiler tells the that RetailerContext is ambiguous. is there a way round this or do I have to write a GetRetailerContext for each of the web services?

Private Function GetRetailerType(securityInfo) as RetailerContext
Set up object
End Function

View 1 Replies

Hosting A WCF In Windows Services

May 10, 2011

I have a working WCF, it is written in VB. I need to host it in Windows Services on a remote server. I cannot use IIS (they uninstalled after I had it installed). Specs are to host in Windows Services, the only way I can get around that is to quit.

[Code]...

View 1 Replies

Hosting Of WCF And Windows Services?

May 9, 2011

I've created a WCF service and, with help of others from this site and the department I work in, the WCF service is running as a service on my development machine. Tested it with a console app and it works.But, it's not supposed to be on my development machine. It needs to be on a different server.This is difficult because the server it is supposed to reside on DOES NOT have Visual Studio installed on it.So I cannot run the VS 2008 Command Prompt with installutil to run the WCF service as a service on that server.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved