Skip to main content

Indigo client now working

Posted by arungupta on May 3, 2005 at 11:36 AM PDT

Phew, finally I could get an Indigo client to invoke an Indigo Web service. Here is the client code that worked:

using System;

class HelloClient {

  public static void Main() {
    HelloServiceProxy myProxy = new HelloServiceProxy(
                                new System.ServiceModel.EndpointAddress("http://localhost/hello/HelloService.svc"),
                                new System.ServiceModel.WSProfileBinding());
    String echoout  = myProxy.Hello("Duke!");

Note, I had to create a proxy by explicitly specifying an EndpointAddress and Binding. Thanks to Gerald for the tip.

I should be able to play around with other samples now :)

Here are some useful postings from Indigo newsgroup:

  1. SOAP Message Tracing
  2. Getting Started sample debugging tips
  3. Manipulating SOAP Headers
  4. Correct Visual Studio Version
Related Topics >>