|
Home > Archive > BizTalk Server Framework > August 2005 > copy the contents of a SOAP header
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
copy the contents of a SOAP header
|
|
|
| Does anyone know of an easy way to copy the contents of a SOAP header from an
incoming response to an outgoing message within an expression block? Property
schemas et al. seem like overkill when you want everything, but I'll do that
also if it works. I'm dealing with a login msg - transaction msg - logout
that must utilize the same session id (stored in the header) in each message.
Not having luck so far?
| |
| Jan Eliasen 2005-07-20, 2:48 am |
| Hi
Seems to me that if you don't need everything, but just the sessionid?
As I wrote to you in a mail, I see two options:
1. Use Message Assignment Shapes to move context into the body of your
message
2. Use demotion to get context into your body. Demotion is the proces,
where the assembler puts values from the context of your message into
the body, for each promoted property, IF the element that was promoted
exists and is empty.
Oh well, you can also skip the BizTalk Framework Dissambler, and build
a schema that contains the soap-envelope, and use that.... but only if
you don't need the features that the BizTalk Framework provides, ie.
automatic receipts for incoming messages, and so on.
Jan Eliasen
On Tue, 19 Jul 2005 04:30:01 -0700, "mm" <yiks@yahoo.dk> wrote:
>Does anyone know of an easy way to copy the contents of a SOAP header from an
>incoming response to an outgoing message within an expression block? Property
>schemas et al. seem like overkill when you want everything, but I'll do that
>also if it works. I'm dealing with a login msg - transaction msg - logout
>that must utilize the same session id (stored in the header) in each message.
>
>Not having luck so far?
--
Jan Eliasen, representing himself and not the company he works for.
| |
| Jim Lavin 2005-08-08, 5:52 pm |
| Have you had any luck with this? I need to do something similar and am
looking for a good example or some pointers on how to get it done.
Thanks
Jim Lavin
"mm" <yiks@yahoo.dk> wrote in message
news:E1DEC1B4-2930-4F5F-B9CE-2E76A6136021@microsoft.com...
> Does anyone know of an easy way to copy the contents of a SOAP header from
> an
> incoming response to an outgoing message within an expression block?
> Property
> schemas et al. seem like overkill when you want everything, but I'll do
> that
> also if it works. I'm dealing with a login msg - transaction msg - logout
> that must utilize the same session id (stored in the header) in each
> message.
>
> Not having luck so far?
| |
| Jan Eliasen 2005-08-16, 5:57 pm |
| On Mon, 8 Aug 2005 15:15:26 -0700, "Jim Lavin"
<jamesjoseph.lavin@eds.com> wrote:
>Have you had any luck with this? I need to do something similar and am
>looking for a good example or some pointers on how to get it done.
Tell us what you need, and perhaps we can help you? Both solutions I
gave mm are perfectly fine and operational.
--
Jan Eliasen, representing himself and not the company he works for.
| |
| Jim Lavin 2005-08-18, 5:52 pm |
| Jan,
What I'm in the middle of doing is trying to receive a SOAP message and then
route the message to a send port based on the WSA:To header. The big thing
I'm trying to keep from happening is having BizTalk mess with message. I
want to basically pass it through the Pub/Sub system intact and unharmed.
This seemed trivial at first, but I've ran into the issue that BizTalk's
SOAP and WSE adapter want to strip off the headers they know about and then
add new ones when it sends it on to the recipient. I've looked in the docs,
whitepapers, blogs, etc for a simple way to handle this, but nothing pops
out as a clear solution. I guess what I'm realy trying to do is use BizTalk
as a SOAP intermediary.
I was planning on using the HTTP Adapter and an assembly that contains the
SOAP schemas to route the message and then send it out using the HTTP
Adapater again. I'm thinking this should work just fine, but I no longer get
the ability to use SOAP on top of any other protocols.
Any ideas?
"Jan Eliasen" <eliasen@nospam.nospam> wrote in message
news:adq3g1lk2tigge8h6qoaua0kd6e9veqb5h@
4ax.com...
> On Mon, 8 Aug 2005 15:15:26 -0700, "Jim Lavin"
> <jamesjoseph.lavin@eds.com> wrote:
>
> Tell us what you need, and perhaps we can help you? Both solutions I
> gave mm are perfectly fine and operational.
>
> --
> Jan Eliasen, representing himself and not the company he works for.
| |
| Tom Fry 2005-08-24, 6:04 pm |
| Is i possible to get these samples? I'm trying to pass a session id from a
WS through BizTalk in the soap header.
Thanks
"Jan Eliasen" wrote:
> On Mon, 8 Aug 2005 15:15:26 -0700, "Jim Lavin"
> <jamesjoseph.lavin@eds.com> wrote:
>
> Tell us what you need, and perhaps we can help you? Both solutions I
> gave mm are perfectly fine and operational.
>
> --
> Jan Eliasen, representing himself and not the company he works for.
>
| |
| Jim Lavin 2005-08-25, 2:52 am |
| Tom,
From what I understand reading all of the WSE Adpater and SOAP Adapter docs
and the various whitepapers, BizTalk should pass your session id without
mucking with those headers.
If you are using the WSE 2.0 Adapter, you can read and write to the SOAP
header context properties using a Message Assignment shape in an
orchestration or from a pipeline component.
To read and write the SOAP headers from an orchestration
1. In the BizTalk project add a reference to the assembly <BizTalk Adapter
for WSE installation path>\Microsoft.BizTalk.Adapter.WSE.Properties.dll.
2. In a Message Assignment, use the following syntax to read the headers
from the message context:
field1 = myMessage(WSE.SoapHeaders);
3. In a message assignment shape, use the following syntax to set the
headers from the message context:
myMessage(WSE.SoapHeaders) = field1;
There should also be something similar for the SOAP adapter, but I think it
is the otherHeaders context property.
"Tom Fry" <TomFry@newsgroup.nospam> wrote in message
news:50D882D4-BA15-44D6-B974-07371BD4664E@microsoft.com...[vbcol=seagreen]
> Is i possible to get these samples? I'm trying to pass a session id from
> a
> WS through BizTalk in the soap header.
>
> Thanks
>
> "Jan Eliasen" wrote:
>
| |
| Jan Eliasen 2005-08-26, 7:53 am |
| On Wed, 24 Aug 2005 15:01:01 -0700, "Tom Fry"
<TomFry@newsgroup.nospam> wrote:
>Is i possible to get these samples? I'm trying to pass a session id from a
>WS through BizTalk in the soap header.
Hi
I didn't give him any samples. I just pointed out two possible
solutions to his problem.
--
Jan Eliasen, representing himself and not the company he works for.
|
|
|
|
|