wcf

using .aspx page as Jquery Cluetip?

Hi, I am using an .aspx page as cluetip bound to an anchor tag. I need to pass a parameter from anchor to this page and then call a WCF service to populate my template with returned JSON. I tried putting body onload function but that doesnt seems to work. Thanks Koby. ...

How to config WebService to return ArrayList instead of Array?

Hi * I have a web service in java that implemented on jax-ws. This web service return an generic list of User. It's working very good :). @Stateless(name = "AdminToolSessionEJB") @RemoteBinding(jndiBinding = "AdminToolSessionRemote") @Remote(AdminToolSessionRemote.class) @WebService public class AdminToolSessionBean implements AdminTo...

Architecture design help

I'm looking for some input on my current project architecture. There are three components: Server, Desktop, and Mobile Device. I have 2 goals: 1) Send data (Approx. no more than 100 KB of text) from the Desktop (multi platform client application running on windows XP/Vista/7, and Mac OS X) to a server (Windows Server 2008, IIS 7, WCF ...

Why does SvcUtil create a Channel interface that derives from IClientChannel

When you create code from a WSDL file using SvcUtil.exe, among the many types created is an interface that derives from both the service interface and IClientChannel. If, for example, the created service interface is called IMyService, it also creates this interface: public interface IMyServiceChannel : IMyService, System.ServiceM...

WCF Setting in code vs app.config

If I set a setting in the app.config and in code which one will get used? Example: Dim instance As ServiceThrottlingBehavior Dim value As Integer value = instance.MaxConcurrentInstances instance.MaxConcurrentInstances = value VS <configuration> <system.serviceModel> <services> <behaviors> <serviceBehaviors> ...

Is it possible to consume a WCF service in MS Access?

We are thinking about centralising some or all of our data access. I thought a good way to do this would be via WCF. However, lots of our applications are built in MS Access (a whole other story!). So, is it possible to consume a WCF service in MS Access? I know consuming web services is possible (although I don't know the details). Is...

Passed paramater is null in WCF side.

Hi, I am calling a simple method on WCF side using Jquery. $.ajax({ type: "POST", url: "MyService.svc/TestJSON", data:'{"BikeId":"2"}', //data: '{"BikeId":"'+ id + '"}', contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg...

WCF: derive a class from TcpTransportBindingElement just to change Scheme property

Hi there. I would like to be able to change standard scheme for NetTcpBinding to something different like "net.gzip" instead of "net.tcp". As far as I understand the architecture of WCF in this particular case of mine I do need to create my own class derived from TransportBindingElement which will override Scheme property. What I reall...

WCF Digital Signing, Message Inspectors

Hi dear stackoverflow visitors:) I have another question about wcf. Here is my scenario: I am using wsHttpBinding, security mode TransportWithMessageCredential On my wcf service, I intercept the outgoing message with dispatch message inspector, before the SOAP message is sent to my client. Using 3rd party APIs I digitally sign the SOA...

WCF - AsyncPattern=true or IsOneWay=true

Hello there, Few methods in my WCF service are quite time taking - Generating Reports and Sending E-mails. According to current requirement, it is required so that Client application just submits the request and then do not wait for the whole process to complete. It will allow user to continue doing other operations in client applica...

WCF: "IsRequired" property for DataMember with "IsReference" property for DataContract

Why does WCF does not allow to set the "IsRequired" property for DataMembers when I set the "IsReference" property for the DataMember's DataContract? And is there a way to solve this problem? [DataContract(IsReference = true)] public class MyClass { private DateTime date; [DataMember (IsRequired = true)] ...

WCF Service - setting IsOneWay=true still results in waiting client

Hello there, For seme of my service methods, client application needn't wait for any response to be sent over, So I just decorated these methods with IsOneWay=true, so they look like: [OperationContract(IsOneWay=true)] void MethodName(string param1, int param2) Now, when I call this method from client application, it still seems to w...

.Net Represent xml in class without xsd

How would I represent something like this <product> <sku>12452</sku> <attribute name="details">good stuff</attribute> <attribute name="qty">5</attribute> </product> for use in my WCF service? Not sure how to define the multiple attributes whose only difference is the "name". I need this properly setup as a DataMember so xml ...

How to implement IsOneWay=true in WCF nettcpBinding

Hello there, How can I implement one way WCF operations? I just tried using IsOneWay attribute as: [OperationContract(IsOneWay=true)] void MethodName(string param1, int param2) Is there any other change I need to make or any specific change in app.config? FYI, my WCF service implements netTcpBinding, though I think that shouldn't m...

Castle Windsor WCF Facility host based only on a WCF service interface?

I have runtime provided WCF serrvice inteface : [ServiceContract] public interface IHelloService { [OperationContract] string SayHello(string message); } What I'd like to do with my Windsor container (once for each provided service interface) : container.Register(Component .For(typeof(IHelloService)) ...

Integrated message queue binding does not work with Message class

I am trying to use the integrated message queue binding with the class Message. void HandleMessage(Message msg) However the binding does not work, this works with other bindings. Is this a limitation on this specific binding? ...

Parsing JSON object in JQuery

Hi, I have simple JSON object returned in form {"d":"{\"Name\":\"DMX100\",\"Description\":\"blah blah\",\"ID\":\" 780\",\"Make\":\"2010\"}"} How do I parse it in success. success: function(msg) { $('#something').html(msg.d.Name); } Above code doesnt display Name but when I pass $('#something').html(ms...

How to develop a WCF Service to automatically manage other related WCF services hosted as Window Service?

Hello Guys, Kindly help me in architecting a solution which is required for my ongoing project. I have developed some WCF Services hosted as windows services which I did and working fine so far. Now I am asked to develop a master WCF type of service which should be intelligent enough to manage all other WCF service for possible corrupti...

WCF Security - how to allow all callers to this url?

I have a WCF service self-hosted in a windows service environment that works fine over http; over https I am unable to get to one URL without seeing the windows login prompt when running the silverlight application (or just opening the page in IE). I am using the IPolicyRetriever interface to ensure that the ClientAccessPolicy.xml file i...

How to save a byte array to a file from silverlight

Hello Everybody, I have a SL 3 application connected to a WCF service. This service retrieves an array of bytes. I'd like to save that array as a pdf file using FileStream. The problem is that when the byte array is retrived, I get an exception when trying to show the SaveFileDialog because that action is initiated by the callback metho...