36 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for PerplexedB

I'm using Excel interop and it seems that this functionality needs to run in the User Interface thread. So I execute that from the ProgressChanged backgroundworker event. Is there a way to have the dowork event (that invoked the progress changed event) interrupt execution until the ProgressChanged event is finished? …

Member Avatar for gusano79
0
2K
Member Avatar for yssirhc

I have the following wcf service: namespace Scanner { [ServiceContract(Namespace="scan.rsna.org/WebServices/BarcodeScanner")] public interface IBarcodeScanner { [OperationContract] bool InsertScanEvent(BarcodeScanner.ScannedItem barcode); } } namespace Scanner { public class BarcodeScanner : IBarcodeScanner { string dbConnection = ConfigurationManager.ConnectionStrings["annualMeeting"].ConnectionString; [DataContract] public class ScannedItem { Guid _scanID = new Guid(); string _badge; DateTime _scanTime; string _computer = …

Member Avatar for yssirhc
0
452
Member Avatar for maurices5000

Are there two or more ways to couple and decouple the service type and service contract? The book I'm reading speaks of coupling and decoupling in two different ways. Am I reading it wrong? I can provide examples but I'm trying not to over complicate this post. 1) She speaks …

0
133
Member Avatar for maurices5000

I bought a book to help me learning WCF. Lots of people complained that the book was written for VS 2005 at first then there was a reprinting for VS 2008. What it seems is that the code for VS 2005 would not work in VS 2008. I'm wondering why? …

Member Avatar for maurices5000
0
261
Member Avatar for TheSubby

Following this [tutorial][1]: I have created a WP8 Mobile Application and trying to call my WCF web service. When calling the WCF service in the browser, I can see the JSON returned with no problems at all. However, when I call the WCF service in my mobile application, I don't …

Member Avatar for Ketsuekiame
0
265
Member Avatar for cooldude1988

Sorry, If It is a stupid question but I am new to WCF. I have a C# project in which, I am loading a XML document (contains name of students and Id) using Linq to xml and I have to get the associated data (their due date, amount and stuff …

Member Avatar for Ketsuekiame
0
164
Member Avatar for Dendei

Hey im just wondering if or how i can split up my services **IService** namespace Phpwcfconsole { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together. [ServiceContract] public interface IService { [OperationContract] string KundNyKund(Variables.Kunder …

Member Avatar for Dendei
0
194
Member Avatar for Dendei

Hey i just wonder if i can send the method comments with the OperationContract so i see it in my WCF Test Client. that way the php dude can see what each method does and how to work from that. /// <summary> /// Text text /// </summary> /// <param name="Kund"></param> …

0
153
Member Avatar for Dendei

hello! i have a function in my C# code that returns a string array. and when i test my function in WCF Test Client i get Name Value Type (return) length=4 System.String[] [0] "DE" System.String [1] "DK" System.String [2] "NO" System.String [3] "SE" System.String **code if i do var_dump on …

Member Avatar for Dendei
0
598
Member Avatar for Dendei

Hello, so im trying to send an metod that takes a class as input parameter with a bunch of variables. I want to write in some textboxes in my php side of the program send them with my class and into a database. but the database part is no problem …

Member Avatar for Dendei
1
960
Member Avatar for c#_fem

Hi, I'm new to WCF technology and I have to make 2 service providers, that can exchange messages between each othen. So I made two seperate WCF services, and a client application for each service. But my how to implement implement communication between the two wcf services, so that when …

Member Avatar for Randlathor05
0
169
Member Avatar for libathos

Hi,I have already a web service written in C# which is designed to send a list of objects to the client.For the shake of simplicity let's say it's those objects have 2 fields, a description and an image.The web service is configured to send the data in buffered mode,now I …

0
170
Member Avatar for complete

As far as I can tell REST is a methodology or an archecture. Is it a real tangable thing? I mean, can you look at a back-end code and determine if it is REST or not REST? How do you communicate with a WCF RESTful service? Are all WCF services …

0
134
Member Avatar for astian

Hi, again Im hoping to be on the right topic. So here it is: I am publishing a SilverlightApplication that uses a WCF service to read from a database. The application uses Bing Maps to visualize some polygons. The thing is, that after I publish it ONLY on some machines …

0
151
Member Avatar for hueikar

I am doing system using window phone 7 and sql server as database. I am using below coding to get shopping cart list at listbox. public List<Order> FindOrder(string custemail, string orderstatus) { var findorder = from r in order.Orders where (r.CustEmail == custemail && r.OrderStatus == orderstatus ) select r; …

0
119
Member Avatar for c#_fem

Hi, I have to create several services that have to use some sort of registry, to store and get data from. Also, services should have to communicate with each other, in order to exchange data, using the previously mentioned registry. Each service should be able to connect to the registry …

Member Avatar for c#_fem
0
476
Member Avatar for Usmaan

I am trying to learn how to make a mobile phone communicate with a server and a database. So far, I have made a web-service on my PC using this tutorial: http://msdn.microsoft.com/en-us/library/ms733069.aspx The above tutorial makes a sortof WCF service. What would be the best Database system for me? Simplicity …

Member Avatar for thines01
0
195
Member Avatar for nice_candy

Hello, I am creating an API in WCF (.NET 4, C# ). I am taking a .NET List as input from client. my only concern is that if my client is in a language other than .NET (like java), can i still accept List as an input and consume it …

Member Avatar for mani-hellboy
0
132
Member Avatar for phoenix911

Hi, I have a WCF Webservice, and I have an asp.net application that uses this web service. I Have them both running on the same machine, but get a time out. Is there something I have to specify myself in the web.config? I am fairly new in WCF, as this …

Member Avatar for phoenix911
0
187
Member Avatar for diGGity

[B]Hi! [/B] Im new on this forum.. so Hello to all :) Im a beginner in programming WCF.Im a student, on our faculty, we get a new task to make a project in WCF.I hope that you guys could help me a little bit..I dont know how to start.I watched …

Member Avatar for diGGity
0
228
Member Avatar for cool_zephyr

Hello everyone..I'm trying to access the methods of a WCF service from a pocket pc emulator..I added a Web Reference to the service and tried to access the method like this [code] WebReferenceService1.Service1 client = new WebReferenceService1.Service1(); MessageBox.Show(client.GetData(10,true)); [/code] ..but everytime i call the method..i get System.Net.WebException error saying "Unable …

Member Avatar for cool_zephyr
0
163
Member Avatar for cool_zephyr

hey there, I'm writing a program where I have to store and retrive student information(e.g. name,address,photo..) in the database. I've written the code to interact with the database in a WCF service..The problem is I'm able to get the image from the database if I directly write the code to …

Member Avatar for cool_zephyr
0
311
Member Avatar for HG&C

I have a C# WCF Ajax service with an OperationContract that accepts a string of text that is expected to be CSV. I have written most of a CSV parser for this, but I would like to possibly use OLEDB to parse this string. Is this possible? I would rather …

0
95
Member Avatar for arcaolcer

I am developing a project with wcf . I need to develop a wcf service that will take data from database. I should write it in WCF custom data provider. I can do it with wcf linq and webService with EF. But I can not understand the example of Custom …

Member Avatar for arcaolcer
0
243
Member Avatar for sudheer2250

Hi, I am using the following codel. But it is always returning 'False'. Even though i gave correct values.. Plz help... [code] PrincipalContext adContext = new PrincipalContext(ContextType.Domain, "xxx.xxx.0.15", "Administrator", "Password"); using (adContext) { return adContext.ValidateCredentials(userName, passWord, ContextOptions.Signing); } [/code] I tried the this one also.. [code] DirectoryEntry de = new …

Member Avatar for sudheer2250
0
976
Member Avatar for Finarfin34

I got the error below what might cause it? Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Line …

0
89
Member Avatar for kinger29

I have created a simple web service based off one of the project templates in the Microsoft WCF Starter Kit 2 for .NET 3.5. I have successfully implemented a GET method. However I am having trouble get a POST method to work. [CODE] [WebHelp(Comment = "Sample description for DoWork")] [WebInvoke(UriTemplate …

0
178
Member Avatar for sachintha81

I have a very simple WCF program where I have a simple self-host and a client running on the same computer. There is a single method which returns a System.IO.Stream, which is actually a serialized form of a simple string. (This could be any number of data types, but for …

0
105
Member Avatar for micmo

Hi Guys, I'm currently developing a project using WCF (hosted on local IIS) which connects to a local SQL database using LINQ to get data. My problem is that when I run the code, 9/10 times it'll fail with the "Specified Cast Is Not Valid" error, but the other 1/10 …

Member Avatar for micmo
0
1K
Member Avatar for andy1977

I have a WCF service in which I have one method, It gets new live auctions from the database. It is called every second. For each auctions WCF creates new thread and start the auction. This thread updates database every second and after auction ends that thread gets close. However …

0
96

The End.