endpoint

Mapping of URLs to Azure WebRoles.

I cannot find any high level discussion docs that describe how URLs are mapped to Azure WebRoles in the case where an application has multiple WebRoles. Is it: roleA.myApp.com to WebRoleA roleB.myApp.com to WebRoleB or: www.myApp.com/roleA to WebRoleA www.myApp.com/roleB to WebRoleB The answer to this question will help me decide ...

Is there a way to expose multiple WCF services through a single endpoint?

I currently offer a service with many methods via WCF. I'd like to refactor so the single service is split into multiple classes, each offering a different set of functionality. However, I'd prefer to still have a single connection to the client. Is this possible? I guess the answer is No, so how should I solve this issue? Is there a wo...

USB Endpoint Stalled Error

Hi All, I am getting "endpoint stalled error" in my CDC device. The usb stack is detecting the cable. The state is set as running but the errorcode is set as 0x11 which indicates 'USB_ENDPOINT_STALLED'. I verified and found that the endpoints has been assigned properly. What would be scenarios when "endpoint stalled error" would be r...

How to fix an endpoint/configuration error using WCF in VB.NET

I'm working with a small web page that is meant to assist the users of my application. This web page takes a file and sends it to a central server, which then does something with the data and returns a result. I created this application some time ago and am coming back to it recently. I am getting some kind of configuration error right n...

Specify default WCF endpoint in app.config

When you add a service reference it creates the class "MyServiceClient" with a default constructor. If I use new MyServiceClient() I get an error: Could not find default endpoint... If I use new MyServiceClient("endpointName") it works. I would like to specify a default endpoint in app/web.config which will get used when I use the def...

WCF "The server did not provide a meaningful reply"

I am out of ideas here, so I'm hoping someone can help. Here is what I've got: A WCF service that only has a basicHttpBinding endpoint. There is only a service interface, all other [DataMember], [FaultContract] are concrete types. When I run it straight from Visual Studio (using WCF Test Client or my custom app) everything works (I se...

I'm having trouble launching my WCF service using a console application. What can be wrong?

Here's my code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using BankServiceClient.BankServiceReference; namespace BankServiceClient { class Program { static void Main(string[] args) { Uri baseAddress = new Uri("http://localhost:80...

WCF RESTful client endpoint address problem

I'm creating my first RESTful web service with Visual Studio/WCF and found a problem on the client site. On the web service I have an interface with this function definition: [OperationContract] [WebGet(UriTemplate = "/test/academias/{hashAcademia}", ResponseFormat = WebMessageFormat.Json)] Academia GetAcademiaByHash(string hashAcademi...

How to call a service operation at a REST style WCF endpoint uri?

Hi, is it possible to call a service operation at a wcf endpoint uri with a self hosted service? I want to call some default service operation when the client enters the endpoint uri of the service. In the following sample these uris correctly call the declared operations (SayHello, SayHi): - http://localhost:4711/clerk/hello - htt...

WCF (REST) multiple host headers with one endpoint

I have an issue with a WCF REST service (.NET 4) which has multiple host headers, but one end point. The host headers are for example: xxx.yyy.net xxx.yyy.com Both host headers are configured in IIS over HTTPS and redirect to the same WCF service endpoint. I have an Error Handling behavior which logs some extra information in case of a...

Simplest code snippet to add a tiny REST endpoint to an Azure Worker Role

I would like to be able of adding a tiny REST endpoint to an Azure Worker Role, just dumping some non critical monitoring meta-data. I can think of many complicated ways of doing that, but I feel there are simpler solutions. What would be your code snippet to tackle this? ...

Dynamically setting WCF endpoint

Ive just started using WCF with silverlight and its working fine. But one thing that is bugging me is the address of the .svc. Why is it statically set in the .config? Would it be possible to set it when creating an instance of the proxy class? And if so, is there a way to set it to the current address? Our software will be deployed on m...

Why am I randomly getting a "There was no endpoint listening at" error?

I am using .NET to create a WCF and a website that calls it. About 5% of the time I get an error that says there was no endpoint listening. I don't know why it works most of the time but then sometimes it doesn't. Here is the code I am using, I am not sure if it is the way I am creating the WCF. I added a reference to the version of th...

WCF - Possible to have same contract, same binding, same address, but different ports?

I have handhelds that need to communicate via basicHTTPBinding. I have a contract and everything works as advertised. I need to expand it to easily support changing to a test environment, training and of course production. I took the port route, thinking I could expose different endpoints with port differences, and based on the port, ...

Remoting in flex - Is service-config really needed? And What is endpoint url?

Hi, Rather than calling it a question, i would like to call it a discussion and the topic is Flex Remoting. Forms and blogs explaining remoting in flex always mention 2 things: service-config.xml endpoint url Now what i want to know is that 1. is service-config file actually needed if we need to bind our front end (which ...

WCF: CustomBinding confuses endpoint

Hi! I am using CustomBinding to enable Soap 1.1 (endpoint does not support 1.2) + Addressing 1.0. The endpoint is only available over SSL, and runs on some kind of Java/Weblogic platform. Here is my configuration: <customBinding> <binding name="Soap11Addr10"> <textMessageEncoding messageVersion="Soap11WSAddressing10" /> ...

How do I enable MTOM on the server side for a Web Service published using Grails with CXF?

Using Grails and CXF, I have published a small web service that looks like this class TestService { static expose=['cxf'] int pushData(int id, DataHandler data) { //receives data for a specific ID, return 1 } } The thing is that I now would like to enable MTOM for the transfer of the DataHandler-data. No...

Using Endpoint.publish() in OSGi to publish web service?

Is there a way to use Endpoint.publish() in an OSGi bundle to publish a web service? When I run the code from the command line it works, but the same code in a bundle activator produces the following exceptions: Caused by: com.sun.xml.internal.ws.server.ServerRtException: [failed to localize] cannot.load.wsdl(file:/C:/ws/project/org.pro...

How to specify endpoint address that is different from service location in Java Web service client constructed with SAAJ?

I am constructing web service client in Java using SAAJ to consume Windows asmx service. I cannot use other high level tools because applying Java tools (Axis or Jax-ws) to WSDL results in WSDL errors It works good for http services but for https services I got the problem because in WSDL address location ( ...

Spring RMI non-JRMP server at remote endpoint

I'm running the following code: import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; public class RmiClient { public static void main(String args[]) { try { String hostName = "hostnameChangedForOnlineReference"; Registry registry = LocateRegistry.getRegistry(hostName, 1099); ...