HighTechTalks DotNet Forums  

Re: Webservice, add SOAP-Header

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Re: Webservice, add SOAP-Header in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Tomas Restrepo \(MVP\)
 
Posts: n/a

Default Re: Webservice, add SOAP-Header - 07-08-2003 , 07:35 PM






Oliver,

Quote:
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
tomasr (AT) mvps (DOT) org




Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Antwort: Re: Webservice, add SOAP-Header - 07-09-2003 , 01:16 AM






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.

Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Antwort: Re: Webservice, add SOAP-Header - 07-09-2003 , 04:03 AM



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?

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.