Professional Web Applications Themes

Webservice, add SOAP-Header - ASP.NET Web Services

Oliver, > I've added a web reference to a simple client application in VS.NET. But I > have to add a soap header to each outgoing request. Does there exist a > possibility to register an interceptor which adds the soap header??? > Need help. Thanks a lot! I haven't tried it, but I imagine you can probably do this with a SoapExtension on the client side. That said, is there any reason why you can't deal with the standard header support in webservice clients that .NET provides? -- Tomas Restrepo [email]tomasrmvps.org[/email]...

  1. #1

    Default Re: Webservice, add SOAP-Header

    Oliver,
    > I've added a web reference to a simple client application in VS.NET. But I
    > have to add a soap header to each outgoing request. Does there exist a
    > possibility to register an interceptor which adds the soap header???
    > Need help. Thanks a lot!
    I haven't tried it, but I imagine you can probably do this with a
    SoapExtension on the client side. That said, is there any reason why you
    can't deal with the standard header support in webservice clients that .NET
    provides?

    --
    Tomas Restrepo
    [email]tomasrmvps.org[/email]


    Tomas Restrepo \(MVP\) Guest

  2. #2

    Default Antwort: Re: Webservice, add SOAP-Header

    What do you mean with standard header support? I quite new to .NET
    remoting. Where can I get more information about it.
    I'm trying to access a webservice (not .NET) which expects a soap header.
    oliver.wulff@zurich.ch Guest

  3. #3

    Default Re: Webservice, add SOAP-Header

    You can use the custom SOAP filter capabilities of WSE.

    This might help:
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwebsrv/ht[/url]
    ml/insidewsepipe.asp

    George Zacharias.

    <oliver.wulffzurich.ch> wrote in message
    news:3f0b3989news.zurich-datacenter.com...
    > Hi all
    > I've added a web reference to a simple client application in VS.NET. But I
    > have to add a soap header to each outgoing request. Does there exist a
    > possibility to register an interceptor which adds the soap header???
    > Need help. Thanks a lot!

    George Zacharias Guest

  4. #4

    Default Antwort: Re: Webservice, add SOAP-Header

    I've just noticed that my soap header doesn't work .NET Framework 1.0. It
    seems that .NET does only allow complex types as soap headers.
    See following snippet:

    C:\dat\berechtigung_are>wsdl Berechtigung_1_0Service.wsdl
    Microsoft (R) Web Services Description Language Utility
    [Microsoft (R) .NET Framework, Version 1.0.3705.0]
    Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.

    Error: Unable to import binding 'Berechtigung_1_0PortBinding' from
    namespace 'ht
    tp://xmlbus.com/berechtigung'.
    - Unable to import operation 'getOrgEinheit'.
    - Type 'string' from namespace 'http://www.w3.org/2001/XMLSchema' is not
    a complex type and cannot be used as a
    System.Web.Services.Protocols.SoapHeader.

    If you would like more help, please type "wsdl /?".

    Is that the problem that I've a soap header of type "string"? Is this
    solved in .NET Framework 1.1? Does there exist a workaround?
    oliver.wulff@zurich.ch Guest

Similar Threads

  1. Query regarding Soap Header
    By indrajeetp@gmail.com in forum ASP.NET Web Services
    Replies: 0
    Last Post: July 5th, 01:36 PM
  2. Very large soap header
    By Wilson Cucaita in forum ASP.NET Web Services
    Replies: 1
    Last Post: February 15th, 09:58 PM
  3. SOAP Filters: SOAP Header is missing
    By Vivek Vaid in forum ASP.NET Web Services
    Replies: 0
    Last Post: June 5th, 07:29 AM
  4. how can i authenticate or make soap header using WebService class
    By dr3vil webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 4th, 01:19 AM
  5. Set header in SOAP::Lite - how?
    By James Richardson in forum PERL Modules
    Replies: 0
    Last Post: November 6th, 03:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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