1
голосов
1ответов
945 просмотров

Sending part of byte array over the network using WCF

I have a byte array of some binary data that i need to send over the network using WCF and NetTcpBinding. My problem is that i need to send only the part of the array. Is there any way to do this, other than copying that part to a separate array, and sending that one. This extra copying degrades ...

0
голосов
1ответов
580 просмотров

Extending a WCF Service Reference to a WSDL to implement IEnlistmentNotification

I have a WCF Service Reference to a WSDL file for a credit card processing web service (Cybersource). I'd like to somehow extend the generated service reference client to implement IEnlistmentNotification as to support transactional processing. I am familiar with implementing the IEnlistmentNot...

1
голосов
1ответов
554 просмотров

What is the most efficient cross-process communication method for IIS web services

We have a set of (ASMX but could be WCF) 64-bit web services which need to execute some 32-bit managed code (the APIs have 32-bit COM dependencies and cannot be executed in 64-bit) for processing on the same physical machine. The 64-bit web services are hosted in IIS 7.0. Note: some of the messag...

2
голосов
1ответов
3843 просмотров

WCF -> ASMX and Cookies

I have a web application that communicates to a WCF service through a WCF client. At the point my code is invoked, authentication cookies have been issued and I have a dependency on an ASMX service that expects those authentication cookies. I need to pass the cookies from the web application thr...

7
голосов
2ответов
14833 просмотров

WCF Callback channel faulted

I'm trying to implement a reconnect logic for a wcf client. I'm aware that you have to create a new channel after the current channel entered the faulted state. I did this in a channel faulted event handler: internal class ServiceClient : DuplexClientBase, IServiceClient { public ServiceClie...

1
голосов
1ответов
60 просмотров

What to name a WCF Service?

I've just started looking into WCF Services (for the first time) and I need a bit of guidence on how to best design service contacts. Should these contracts be designed towards the entities within an application, e.g. IEmployee, IOrder, or more towards the processes, e.g. IWarehouse, IOrderProces...

1
голосов
1ответов
1303 просмотров

How the WSDL is written in WCF?

I want to know how the wsdl is written in wcf. As i know the proxy class serialize the data and form a soap message to send over network, in the same way , i want to know who writes the wsdl file and takes care of serializing results of a call.

1
голосов
4ответов
234 просмотров

Windows Communication Foundation (WCF)

Why we are going for WCF when web services (ASMX) exist ??

1
голосов
3ответов
491 просмотров

Should I avoid message inheritance in WCF?

Generally, I try and avoid using inheritance in WCF contracts, preferring composition. But in the following situation... I have a service operation that can result in one of two things: ResultA and ResultB. There is a boolean/enum in the response message to report this outcome. There are a n...

1
голосов
2ответов
197 просмотров

How complex an object can be passed to silverlight from server, using WCF?

Please note that my experience in Silverlight/.Net and WCF is about two weeks of googling and deciphering tutorials. I need to attempt and provide feedback to a client on if Silverlight will be a possible solution to their application needing a RIA front end. The client has a rather large .Net b...

1
голосов
2ответов
2182 просмотров

Passing object with WCF RESTful

[WebInvoke(Method = "PUT", UriTemplate = "users/{username}")] [OperationContract] void PutUser(string username, User newValue);//update a user I have a update user method defined as showed above. Then I use a HttpWebRequest to test the method, but how can I pass the User object with this ...

1
голосов
1ответов
143 просмотров

Why it's not possible to host an ASP.Net web service other then IIS?

I am just curious to know the reason why it's not possible to host an ASP.Net web service other then IIS ? While in WCF it's possible to host a service in IIS, WAS or any console application. Please clear the doubt..

0
голосов
1ответов
414 просмотров

Does WCF + net.tcp support 3DES?

I currently have an open WCF service running w/ netTcpBinding; however, I need to encrypt this channel. Does WCF support 3DES, or should I just handle the encryption/decryption on my authorized client/server? Thanks;

0
голосов
3ответов
120 просмотров

Siverlight talk to server using WCF

I am doing an simple Siverlight app talk to server using WCF.When I run the app in visual studio,it works fine .However,when I hosted unders IIS,the data from the server will never returned. Can anyone shine some light on this and how can I debug silverlight app with WCF?

-2
голосов
1ответов
1016 просмотров

WCF & Silverlight problem

I have the following binding configuration in my WCF service that I'm trying to use with Silverlight. <bindings> <basicHttpBinding> <binding name="basicHTTP" receiveTimeout="00:10:00" sendTimeout="00:10:00" closeTimeout...

1
голосов
2ответов
1118 просмотров

Generating WCF Proxy to Server Interface

I'm generating a WCF Proxy to my contract. The contract contain classes that are implementing an Interface. on the Generated proxy the interface is gone. so I can't use it. Is there a way to mark the interface in some way to be generated on the proxy file ? Here is a contact example: public i...

2
голосов
2ответов
712 просмотров

WCF -> ILM -> Web Services -> SQL Server

My employer currently has most of its access to the database through C# sqlDataAdapters and sqlCommands on a WebServices server or components in applications. These are mostly Windows Forms apps that are ran on intranet and internet depending on their functionality. I have been researching WCF q...

0
голосов
1ответов
961 просмотров

refused connection

I've put clientaccesspolicy.xml in wwwroot for a webservice running via ASP.NET dev server to use, but in Fiddler it shows me this message when trying to get at this file: **[Fiddler] Connection to localhost failed. Exception Text: No connection could be made because the target machine actively ...

1
голосов
1ответов
1214 просмотров

WCF Service and Silverlight 3 debug

I have a WCF Service that I've added to a Silverlight project and is now hosting in Visual Studio's ASP.NET Dev Server. But tyring to run it I get the following error: System.ServiceModel.CommunicationException was unhandled by user code Message="An error occurred while trying to make a requ...

0
голосов
1ответов
553 просмотров

WCF service for Sl3

I have written a simple service that uploads & downloads XML files. I want to implement it in a Silverlight 3 project, but on doing so I get following warnings: **Warning 1 Custom tool warning: Endpoint 'BasicHttpBinding_IxmlLoad' at address 'http://tony-pc/xmlLoadService/Service.svc' i...

-2
голосов
2ответов
5330 просмотров

Web Services vs WCF , advantage and disadvantages

I want to clear my doubts about some questions related to web services and WCF. Following are my doubts.. What is the message format in Web Services , like in WCF every message is a SOAP message? Can we use TCP/IP protocol in Web Services if not then why not ? Why we use DataContractSerializer ...

3
голосов
3ответов
17947 просмотров

Where to enable metadata (is enabled in config)?

I have a basic wcf service and when I go to the wcfctestclient to test it, I get an error saying metadata could not be found please add it etc. Unfortunately, the MSDN link in the error popup is broken and my WCF service's app.config has metadata enabled: <serviceBehaviors> <behav...

3
голосов
2ответов
568 просмотров

Cache data in SQL CE database

Background I have an SQL CE database, that is constantly updated (every second). I have a (web) application that allows a user to look at the data in real-time. At some point a user can click "take a snapshot" button, and it will open the snapshot in a different window. And then on that fo...

1
голосов
1ответов
2883 просмотров

Design Decision - WCF Service or Shared Class Library (DLL)

I am presently designing a message queue system that will be used by various applications and am having a difficult time trying to decide whether to use WCF to provide the services or use a shared class library (DLL) and deploy the DLL with the clients. For some additional information: • The ...

1
голосов
1ответов
5539 просмотров

WCF - Generic List (of T)

I have a list of a custom DTO that I am trying to pass across to a WCF service. I am getting the following error: There was an error while trying to serialize parameter tcp://localhost/:oObject. The InnerException message was 'Type 'System.Collections.Generic.List`1[[TEGE.ER.WorkFlowEngine.W...

9
голосов
2ответов
9098 просмотров

WCF TransportCredentialOnly not sending username and password

I have the following WCF client configuration: <basicHttpBinding> <binding name="basicHttpOCCWS" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameC...

1
голосов
1ответов
804 просмотров

WCF: DeSerialize string datamember as int

I really can't figure this one out! (if it's even possible). From a WCF service we are receiving product information. A product datacontract has some members that are defined as strings (but are actually integers), but we want to process them as integers. When I change the datatype in the contr...

1
голосов
1ответов
1660 просмотров

Why would a WCF webservice hosted in IIS randomly stop responding?

This is my first attempt to use WCF so there may be something fundamentally wrong with this approach - if so I'm happy to switch to a different model. At quick glance, I thought the answer to this question would have worked, but my scenario appears to be different. I have an ASP.NET MVC website ...

2
голосов
2ответов
5185 просмотров

How to pass Client Objects to WCF Service

I want to pass list of entitiy objects from Client to WCF Service, but my WCF Service has no knowledge of the structure of these entity objects. One way could be to pass them in an XML file. What could be the other possible ways to pass such objects to WCF service? Please guide. Thank you!

4
голосов
2ответов
1383 просмотров

Forcing WcfSvcHost.exe to use my custom service host

Is it possible to force WcfSvcHost (which is executed automatically when I do an F5 or when I am debugging another project in the solution) to use a custom ustom service? I have my custom service host working great in my asp.net Host container by using a service factory which in turn calls the C...