Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Soap request

    How to invoke a web service, using the soap request protocol, without
    creating a Web reference to the service.???


    Thanks.
    Mauri.-


    Mr. M Guest

  2. Similar Questions and Discussions

    1. #39406 [NEW]: Wrong namespaces in SOAP request
      From: mail at martin-probst dot com Operating system: MacOS PHP version: 5.2.0 PHP Bug Type: SOAP related Bug description: ...
    2. fails to parse the soap request
      I am new to this module and unsure how to call the remote method. However, when it fails to parse the soap request and I don't know why it...
    3. Changing default response tag from soap request
      Hi there, I have a webservice which has a method called "DeliverReq". The soap envelope looks like this (simplified) <envelope> <header>...
    4. soap request problem
      I can do simple soap-request in coldfusion using cfscript and webservices. For example: <cfscript> ws = createObject('webservice',...
    5. Soap request with coldfusion
      Hello, I can do simple soap-request in coldfusion using cfscript and webservices. For example: <cfscript> ws = createObject("webservice",...
  3. #2

    Default Re: Soap request

    Creating a web reference is just a convenient way to ask Visual Studio to
    create a proxy for you. In large apps we typically create our own proxies
    that are distributed as assemblies. You can use a VS-generated proxy as a
    starting point - just create a web reference, then look at the generated
    proxy code.

    // namespaces elided

    namespace MyApp.WebServiceProxy
    {
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("c ode")]
    [System.Web.Services.WebServiceBindingAttribute(Nam e="MyServiceSoap",
    Namespace="http://www.servergeek.com/demos/2004")]
    public class MyService: SoapHttpClientProtocol
    {
    public MyService(string url)
    {
    this.Url = url;
    }

    [SoapDocumentMethod("http://www.servergeek.com/demos/2004",

    RequestNamespace="http://www.servergeek.com/demos/2004",

    ResponseNamespace="http://www.servergeek.com/demos/2004",
    Use=SoapBindingUse.Literal,

    ParameterStyle=SoapParameterStyle.Wrapped)]
    public string Hello(string message)
    {
    object[] results = this.Invoke("Hello", new object[] {message});
    return ((string)(results[0]));
    }
    }
    }

    --
    Mickey Williams
    Author, "Microsoft Visual C# .NET Core Reference", MS Press
    [url]www.servergeek.com[/url]


    "Mr. M" <mauriciom@NO_SPAMinfocorp.com.uy> wrote in message
    news:%23tLgnbyGEHA.3940@tk2msftngp13.phx.gbl...
    > How to invoke a web service, using the soap request protocol, without
    > creating a Web reference to the service.???
    >
    >
    > Thanks.
    > Mauri.-
    >
    >

    Mickey Williams Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139