Hmm, will mal gucken ob ich das in c# nachbauen kann...

Danke aber allen f�r die tips.

Daniel 

> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] Im Auftrag von 
> Christian Weyer
> Gesendet: Freitag, 2. November 2001 18:33
> An: aspDEdotnet
> Betreff: [aspdedotnet] Re: AW: Re: AW: Re: AW: Re: AW: Re: SOAP Header
> 
> 
> Es geht. Zu beachten ist v.a. Direction:=SoapHeaderDirection.XXX !
> 
> <%@ WebService Class="UsingSoapHeaders" %>
> 
> Imports System.Web.Services
> Imports System.Web.Services.Protocols
>       
> Public Class MySoapHeader : Inherits SoapHeader
>    Public Value As String
> End Class
> 
> Public Class UsingSoapHeaders
>    Public sHeader As MySoapHeader
>    Public sOutHeader As New MySoapHeader
> 
>    <WebMethod(), _
>     SoapHeader("sHeader")> _
>     Public Function GetValueOfSoapHeader() As String
>        Return sHeader.Value
>     End Function
> 
>    <WebMethod(), _
>     SoapHeader("sOutHeader", Direction:=SoapHeaderDirection.Out)> _
>     Public Function SetValueOfSoapHeader()
>          sOutHeader.Value = "TestValue"
>     End Function
> End Class
> 
> ---
> [...]
> <script runat=server>
> Public Sub Page_Load()
>    ' Create a new instance of the UsingSoapHeaders
>    ' proxy class used to call the remote .asmx file
>    Dim u = New UsingSoapHeaders()
> 
>    ' Create a new instance of the mySoapHeader class
>    Dim myHeader As New MySoapHeader()
> 
>    ' Set the value of myHeader
>    'myHeader.Value = "Hello ADC 2001 Attendees!"
> 
>    ' Set the MySoapHeader public member of the
>    ' UsingSoapHeaders class to myHeader
>    'u.MySoapHeaderValue = myHeader
>               
>    ' Get the result of the call
>    Dim result As String
>    'result = u.GetValueOfSoapHeader() + " (from SOAP Header)"
>    'span1.InnerHtml = result
> 
>    u.SetValueOfSoapHeader()
>    myHeader = u.MySoapHeaderValue
> 
>    'result = myHeader.Value
>    result = myHeader.Value
>    span2.InnerHtml = result
> End Sub
> </script>
> [...]
> 
> HTH.
> 
> Christian Weyer
> ____________________________
>    > The .NET Difference <
> ����������������������������
> http://www.eyesoft.de/dotnet
> ____________________________
> 
> 
> Daniel Fisher wrote:
> 
> > Ja aber ich versuche nun auch andersrum header zu versenden 
> (vom asmx 
> > zum client und nicht mehr vom client nach asmx) und krieg es nicht 
> > hin...
> > 
> > Daniel
> 
> 
> 
> 
> | [aspdedotnet] als [EMAIL PROTECTED] subscribed
> | http://www.aspgerman.com/archiv/aspdedotnet/ = Listenarchiv
> | Sie k�nnen sich unter folgender URL an- und abmelden:
> | http://www.aspgerman.com/aspgerman/listen/anmelden/aspdedotnet.asp
> 



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com




| [aspdedotnet] als [email protected] subscribed
| http://www.aspgerman.com/archiv/aspdedotnet/ = Listenarchiv
| Sie k�nnen sich unter folgender URL an- und abmelden:
| http://www.aspgerman.com/aspgerman/listen/anmelden/aspdedotnet.asp

Antwort per Email an