How to modify the XML message for HTTP Transport
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server > How to modify the XML message for HTTP Transport




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to modify the XML message for HTTP Transport  
vseemaku


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-10-05 01:46 AM

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 start
s
--><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><Cellular
Phone>9523345176</CellularPhone><FirstName>March09</FirstName><LastName>ETSU
CMTestHTTP</LastName></Contact></InsertContactAddress></CIFPartyPackage></CR
MML>



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 start
s
--><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><Cellular
Phone>9523345176</CellularPhone><FirstName>March09</FirstName><LastName>ETSU
CMTestHTTP</LastName></Contact></InsertContactAddress></CIFPartyPackage></CR
MML>


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?






[ Post a follow-up to this message ]



    Re: How to modify the XML message for HTTP Transport  
Joerg Fischer


Report This Message To A Moderator Edit/Delete Message


 
03-10-05 12:47 PM

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?
>







[ Post a follow-up to this message ]



    Re: How to modify the XML message for HTTP Transport  
vseemaku


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-10-05 10: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&SWEExtD
at
> 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</Sys
te
> mRole><SystemName>Siebel 
> System</SystemName></SystemInfo></ToSystem><MessageDescriptor><MessageId>S
1<
> /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</Sys
te
> mRole><SystemName>Siebel 
> System</SystemName></SystemInfo></ToSystem><MessageDescriptor><MessageId>S
1<
> /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&SWEExtD
at
> a= 
>
>
>





[ Post a follow-up to this message ]



    Re: How to modify the XML message for HTTP Transport  
Joerg Fischer


Report This Message To A Moderator Edit/Delete Message


 
03-13-05 10: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]
 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:51 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register