|
Home > Archive > BizTalk Server > March 2005 > How to modify the XML message for HTTP Transport
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 |
How to modify the XML message for HTTP Transport
|
|
| vseemaku 2005-03-09, 8:46 pm |
| Hi I need to create a message in the HTTP adapter message body to look like:
SWEExtSource=wf2&SWEExtCmd=Execute&UserName=Sadmin&Password=Sadmin&SWEExtData=<CRMML
zmlns="http://www.siebel.com/xml/CIFContactAddressInsert"
msgId="4ee34ce2-08d7-4a8a-9nh0-bace75g8dbh1"><!-- CRMML Header section starts
--><CRMHeader><FromSystem><SystemInfo
type="ID"><SystemId>TLP0001</SystemId><SystemRole>Contributor</SystemRole><SystemName>ETS</SystemName></SystemInfo></FromSystem><ToSystem><SystemInfo
type="ID"><SystemId>123-456-789</SystemId><SystemRole>ServiceProvider</SystemRole><SystemName>Siebel
CIF
System</SystemName></SystemInfo></ToSystem><MessageDescriptor><MessageId>S1</MessageId><TransactionScope>any</TransactionScope><Timestamp>09/15/2004</Timestamp><TimeToLive>365</TimeToLive></MessageDescriptor></CRMHeader><!--
CRMML Header section ends
--><CIFPartyPackage><InsertContactAddress><Contact><Id>March09</Id><CellularPhone>9523345176</CellularPhone><FirstName>March09</FirstName><LastName>ETSUCMTestHTTP</LastName></Contact></InsertContactAddress></CIFPartyPackage></CRMML>
The following message is generated within BizTalk based on the schema:
(message)
<CRMML zmlns="http://www.siebel.com/xml/CIFContactAddressInsert"
msgId="4ee34ce2-08d7-4a8a-9nh0-bace75g8dbh1"><!-- CRMML Header section starts
--><CRMHeader><FromSystem><SystemInfo
type="ID"><SystemId>TLP0001</SystemId><SystemRole>Contributor</SystemRole><SystemName>ETS</SystemName></SystemInfo></FromSystem><ToSystem><SystemInfo
type="ID"><SystemId>123-456-789</SystemId><SystemRole>ServiceProvider</SystemRole><SystemName>Siebel
CIF
System</SystemName></SystemInfo></ToSystem><MessageDescriptor><MessageId>S1</MessageId><TransactionScope>any</TransactionScope><Timestamp>09/15/2004</Timestamp><TimeToLive>365</TimeToLive></MessageDescriptor></CRMHeader><!--
CRMML Header section ends
--><CIFPartyPackage><InsertContactAddress><Contact><Id>March09</Id><CellularPhone>9523345176</CellularPhone><FirstName>March09</FirstName><LastName>ETSUCMTestHTTP</LastName></Contact></InsertContactAddress></CIFPartyPackage></CRMML>
The portion of the message which has the XML tags is obtained as part of the
incoming message.
I just need to attach the following string to my xml message before I send
it via the Send and Receive port using the HTTP adapter:
SWEExtSource=wf2&SWEExtCmd=Execute&UserName=Sadmin&Password=Sadmin&SWEExtData=
Can I achieve this by using a Pipeline XML assembler properties like -
adding processing text etc? or any simple ways to achieve it?
| |
| Joerg Fischer 2005-03-10, 7:47 am |
| Hi,
One approach is to write a custom pipeline component which prepends the
text, for use in the encoding stage.
This is easy doing, check the SDK samples; there is a component (FixMsg)
which does a similar job in prepending information to a message.
Sincerely
Joerg Fischer
"vseemaku" <vseemaku@discussions.microsoft.com> wrote in message
news:7EC9EF5C-0FFC-4F76-8683-6DC4C2D7A1C3@microsoft.com...
> Hi I need to create a message in the HTTP adapter message body to look
like:
>
>
SWEExtSource=wf2&SWEExtCmd=Execute&UserName=Sadmin&Password=Sadmin&SWEExtDat
a=<CRMML
> zmlns="http://www.siebel.com/xml/CIFContactAddressInsert"
> msgId="4ee34ce2-08d7-4a8a-9nh0-bace75g8dbh1"><!-- CRMML Header section
starts
> --><CRMHeader><FromSystem><SystemInfo
>
type="ID"><SystemId>TLP0001</SystemId><SystemRole>Contributor</SystemRole><S
ystemName>ETS</SystemName></SystemInfo></FromSystem><ToSystem><SystemInfo
>
type="ID"><SystemId>123-456-789</SystemId><SystemRole>ServiceProvider</Syste
mRole><SystemName>Siebel
> CIF
>
System</SystemName></SystemInfo></ToSystem><MessageDescriptor><MessageId>S1<
/MessageId><TransactionScope>any</TransactionScope><Timestamp>09/15/2004</Ti
mestamp><TimeToLive>365</TimeToLive></MessageDescriptor></CRMHeader><!--
> CRMML Header section ends
> --><CIFPartyPackage><InsertContactAddress><Contact><Id>March09</Id><Cellul
arPhone>9523345176</CellularPhone><FirstName>March09</FirstName><LastName>ET
SUCMTestHTTP</LastName></Contact></InsertContactAddress></CIFPartyPackage></
CRMML>
>
>
>
> The following message is generated within BizTalk based on the schema:
> (message)
>
> <CRMML zmlns="http://www.siebel.com/xml/CIFContactAddressInsert"
> msgId="4ee34ce2-08d7-4a8a-9nh0-bace75g8dbh1"><!-- CRMML Header section
starts
> --><CRMHeader><FromSystem><SystemInfo
>
type="ID"><SystemId>TLP0001</SystemId><SystemRole>Contributor</SystemRole><S
ystemName>ETS</SystemName></SystemInfo></FromSystem><ToSystem><SystemInfo
>
type="ID"><SystemId>123-456-789</SystemId><SystemRole>ServiceProvider</Syste
mRole><SystemName>Siebel
> CIF
>
System</SystemName></SystemInfo></ToSystem><MessageDescriptor><MessageId>S1<
/MessageId><TransactionScope>any</TransactionScope><Timestamp>09/15/2004</Ti
mestamp><TimeToLive>365</TimeToLive></MessageDescriptor></CRMHeader><!--
> CRMML Header section ends
> --><CIFPartyPackage><InsertContactAddress><Contact><Id>March09</Id><Cellul
arPhone>9523345176</CellularPhone><FirstName>March09</FirstName><LastName>ET
SUCMTestHTTP</LastName></Contact></InsertContactAddress></CIFPartyPackage></
CRMML>
>
>
> The portion of the message which has the XML tags is obtained as part of
the
> incoming message.
>
> I just need to attach the following string to my xml message before I send
> it via the Send and Receive port using the HTTP adapter:
>
SWEExtSource=wf2&SWEExtCmd=Execute&UserName=Sadmin&Password=Sadmin&SWEExtDat
a=
> Can I achieve this by using a Pipeline XML assembler properties like -
> adding processing text etc? or any simple ways to achieve it?
>
| |
| vseemaku 2005-03-10, 5:54 pm |
| Hi Joerg Fisher,
Thanks for your time and suggestion. One quick question:
How do I pass the value
SWEExtSource=wf2&SWEExtCmd=Execute&UserName=Sadmin&Password=Sadmin&SWEExtDat
> a=
to the component. The sameple is not very clear. Will it create a property
under the properties window for the component?
Please feel free to call me on +001-952-820-5621 if you need.
Thanks a lot.
Venkat
"Joerg Fischer >" wrote:
> Hi,
>
> One approach is to write a custom pipeline component which prepends the
> text, for use in the encoding stage.
> This is easy doing, check the SDK samples; there is a component (FixMsg)
> which does a similar job in prepending information to a message.
>
> Sincerely
>
> Joerg Fischer
>
>
> "vseemaku" <vseemaku@discussions.microsoft.com> wrote in message
> news:7EC9EF5C-0FFC-4F76-8683-6DC4C2D7A1C3@microsoft.com...
> like:
> SWEExtSource=wf2&SWEExtCmd=Execute&UserName=Sadmin&Password=Sadmin&SWEExtDat
> a=<CRMML
> starts
> type="ID"><SystemId>TLP0001</SystemId><SystemRole>Contributor</SystemRole><S
> ystemName>ETS</SystemName></SystemInfo></FromSystem><ToSystem><SystemInfo
> type="ID"><SystemId>123-456-789</SystemId><SystemRole>ServiceProvider</Syste
> mRole><SystemName>Siebel
> System</SystemName></SystemInfo></ToSystem><MessageDescriptor><MessageId>S1<
> /MessageId><TransactionScope>any</TransactionScope><Timestamp>09/15/2004</Ti
> mestamp><TimeToLive>365</TimeToLive></MessageDescriptor></CRMHeader><!--
> arPhone>9523345176</CellularPhone><FirstName>March09</FirstName><LastName>ET
> SUCMTestHTTP</LastName></Contact></InsertContactAddress></CIFPartyPackage></
> CRMML>
> starts
> type="ID"><SystemId>TLP0001</SystemId><SystemRole>Contributor</SystemRole><S
> ystemName>ETS</SystemName></SystemInfo></FromSystem><ToSystem><SystemInfo
> type="ID"><SystemId>123-456-789</SystemId><SystemRole>ServiceProvider</Syste
> mRole><SystemName>Siebel
> System</SystemName></SystemInfo></ToSystem><MessageDescriptor><MessageId>S1<
> /MessageId><TransactionScope>any</TransactionScope><Timestamp>09/15/2004</Ti
> mestamp><TimeToLive>365</TimeToLive></MessageDescriptor></CRMHeader><!--
> arPhone>9523345176</CellularPhone><FirstName>March09</FirstName><LastName>ET
> SUCMTestHTTP</LastName></Contact></InsertContactAddress></CIFPartyPackage></
> CRMML>
> the
> SWEExtSource=wf2&SWEExtCmd=Execute&UserName=Sadmin&Password=Sadmin&SWEExtDat
> a=
>
>
>
| |
| Joerg Fischer 2005-03-13, 5:49 pm |
| Hi,
Depending on your requirement, you have two options:
1. If the string is known at compile time, you can specify it within a
custom property of the component so that it shows up in the Pipeline Editor
and can be modified in VS.NET.
2. Alternatively, if it is highly dynamic, you can define a context property
via a property schema which defines the value. This property can then be set
by an orchestration an is forwarded in the context of the message. When
defining the context property, be sure to set the property base as "Context
Property" so that it can be accessed from the orchestration without a
promotion from the contents of the message.
Sincerely
Joerg Fischer
"vseemaku" <vseemaku@discussions.microsoft.com> wrote in message
news:4337B5D0-BF10-4170-A17C-2B0BF5D6ECC2@microsoft.com...
> Hi Joerg Fisher,
>
> Thanks for your time and suggestion. One quick question:
>
> How do I pass the value
>
SWEExtSource=wf2&SWEExtCmd=Execute&UserName=Sadmin&Password=Sadmin&SWEExtDat[vbcol=seagreen]
>
> to the component. The sameple is not very clear. Will it create a property
> under the properties window for the component?
>
> Please feel free to call me on +001-952-820-5621 if you need.
>
> Thanks a lot.
>
> Venkat
> "Joerg Fischer >" wrote:
>
SWEExtSource=wf2&SWEExtCmd=Execute&UserName=Sadmin&Password=Sadmin&SWEExtDat[vbcol=seagreen]
type="ID"><SystemId>TLP0001</SystemId><SystemRole>Contributor</SystemRole><S[vbcol=seagreen]
ystemName>ETS</SystemName></SystemInfo></FromSystem><ToSystem><SystemInfo[vbcol=seagreen]
type="ID"><SystemId>123-456-789</SystemId><SystemRole>ServiceProvider</Syste[vbcol=seagreen]
System</SystemName></SystemInfo></ToSystem><MessageDescriptor><MessageId>S1<[vbcol=seagreen]
/MessageId><TransactionScope>any</TransactionScope><Timestamp>09/15/2004</Ti[vbcol=seagreen]
> --><CIFPartyPackage><InsertContactAddress><Contact><Id>March09</Id><Cellul
arPhone>9523345176</CellularPhone><FirstName>March09</FirstName><LastName>ET[vbcol=seagreen]
SUCMTestHTTP</LastName></Contact></InsertContactAddress></CIFPartyPackage></[vbcol=seagreen]
type="ID"><SystemId>TLP0001</SystemId><SystemRole>Contributor</SystemRole><S[vbcol=seagreen]
ystemName>ETS</SystemName></SystemInfo></FromSystem><ToSystem><SystemInfo[vbcol=seagreen]
type="ID"><SystemId>123-456-789</SystemId><SystemRole>ServiceProvider</Syste[vbcol=seagreen]
System</SystemName></SystemInfo></ToSystem><MessageDescriptor><MessageId>S1<[vbcol=seagreen]
/MessageId><TransactionScope>any</TransactionScope><Timestamp>09/15/2004</Ti[vbcol=seagreen]
> --><CIFPartyPackage><InsertContactAddress><Contact><Id>March09</Id><Cellul
arPhone>9523345176</CellularPhone><FirstName>March09</FirstName><LastName>ET[vbcol=seagreen]
SUCMTestHTTP</LastName></Contact></InsertContactAddress></CIFPartyPackage></[vbcol=seagreen]
of[vbcol=seagreen]
send[vbcol=seagreen]
SWEExtSource=wf2&SWEExtCmd=Execute&UserName=Sadmin&Password=Sadmin&SWEExtDat[vbcol=seagreen]
|
|
|
|
|