RE: Problem with WCF adapter and SOAP headers in BizTalk 2006 R2
- From: Arne <arnej@xxxxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 06:31:01 -0800
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.
--------------------
R2,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
withbut 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
isthe 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
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
- References:
- RE: Problem with WCF adapter and SOAP headers in BizTalk 2006 R2
- From: Karahan Celikel [MSFT]
- RE: Problem with WCF adapter and SOAP headers in BizTalk 2006 R2
- Prev by Date: BIztalk 2006 map - script using external assembly issue
- Next by Date: Re: Construct Message
- Previous by thread: RE: Problem with WCF adapter and SOAP headers in BizTalk 2006 R2
- Next by thread: Re: SQL Adapter
- Index(es):
Relevant Pages
|