RE: Problem with WCF adapter and SOAP headers in BizTalk 2006 R2




Thanks Karahan, that's exactly what I needed! Also nice to see that you have
made a cleaner solution than for the standard SOAP adapter :-)

Regards,
Arne


"Karahan Celikel [MSFT]" wrote:

Hi Arne,
You can add custom SOAP headers to the outbound message by setting the
http://schemas.microsoft.com/BizTalk/2006/01/Adapters/WCF-properties#Outboun
dCustomHeaders property inside an orchestration or custom pipeline
component.

pipeline example:
message.Context.Write("OutboundCustomHeaders",
"http://schemas.microsoft.com/BizTalk/2006/01/Adapters/WCF-properties";,
<headers><myheader1>header1</myheader1><myheader2>header2</myheader2></heade
rs>);


orchestration example:
MyMessage(WCF.OutboundCustomHeaders) =
"<headers><myheader1>header1</myheader1><myheader2>header2</myheader2></head
ers>";

Please note that you should only use it for custom headers, and it should
be avoided to set the standard SOAP headers.
Standard headers such as SOAP action, transaction, security headers etc.
are determined by the send port configuration.


--------------------
Thread-Topic: Problem with WCF adapter and SOAP headers in BizTalk 2006 R2
thread-index: Accwu/9xP5RH+SpGQESf6Az3I/nXHg==
X-WBNR-Posting-Host: 134.47.109.184
From: =?Utf-8?B?QXJuZQ==?= <arnej@xxxxxxxxxxxxx>
Subject: Problem with WCF adapter and SOAP headers in BizTalk 2006 R2
Date: Fri, 5 Jan 2007 03:24:00 -0800
Lines: 23
Message-ID: <855EDF03-9A82-4015-AF85-276BF2EF7A5A@xxxxxxxxxxxxx>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
Newsgroups: microsoft.public.biztalk.general
Path: TK2MSFTNGHUB02.phx.gbl
Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.biztalk.general:1243
NNTP-Posting-Host: tk2msftsbfm01.phx.gbl 10.40.244.148
X-Tomcat-NG: microsoft.public.biztalk.general

Hi

We're trying to consume a WCF service using the Beta 1 of BizTalk 2006
R2,
but are unable to set SOAP headers used by the service.

We have tried to do it the normal way, using a property schema with
"http://schemas.microsoft.com/BizTalk/2003/SOAPHeader"; as the target
namespace and setting the context value for the outgoing message in an
orchestration (msgOut(SoapHeaderSchema.AuthenticationHeader) =
"<ns0:AuthenticationHeader ...etc....), but it seems this doesn't work
with
the WCF adapter (WCF-BasicHttp). That is, the message is passed to the
service, but the SOAP headers are missing.

The documentation for R2 has a section called "SOAP Headers with Consumed
WCF Services", but this only contains placeholders. However, since this
is
one of the few sections in the documentation, this leads me to think
something must be done differently from using the standard SOAP adapter.

Grateful for any help on the matter!

Thanks in advance,

Arne


Karahan Celikel [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.

Connected Systems Division Team


.



Relevant Pages

  • Re: best way implement web service with authentication.
    ... But it's a better idea to encrypt and pass the SOAP headers. ... Best way to authenticate the client. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: security for WS call from behavior and ASP.net
    ... I would recommend using SOAP headers ... and authenticating at the message level. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Processing UsernameForCertificateAssertion
    ... understanding few things about processing SOAP messages, algorithms, ... Shouldn't both sent and received soap headers use same encrypt/decrypt ... Can you suggest any links about how keys are generated and used in more ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: soap
    ... Soap headers. ... my app is using vb dotnet to call a web service and i would ... > also the soap rapper on a response? ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Modifying Soap-Response
    ... because thats not standard soap. ... response. ... the Soap-Response looks like: ...
    (microsoft.public.dotnet.framework.aspnet)

Quantcast