How to set messages name at Outgoing Ports URI?
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 Orchestration > How to set messages name at Outgoing Ports URI?




Pages (2): [1] 2 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to set messages name at Outgoing Ports URI?  
Alex


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


 
07-28-04 11:09 PM

Hi,
Currently , In my orchestrations port URI I am using
"....\%MessageID%.txt" name and it comes to really weird -
looking name, like:{A9EF1FB4-4A03-4970-A5FF-
17BFD9DE0E79}.txt
Is any way that I can use an original source file name,
because it also unique?

Also, How can I see original message in native format when
it is been processed by BT2004?

Thank you,
Alex.







[ Post a follow-up to this message ]



    Re: How to set messages name at Outgoing Ports URI?  
Yossi Dahan


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


 
07-28-04 11:09 PM

Just use %SourceFileName% instead.

To see the message in the native format set the tracking to "before receive"
and than save the message through the HAT. it should appear in its native
format

Yossi

"Alex" <astar@NOSPAMsumitrans.com> wrote in message
news:5c6401c474b1$8ca8e990$a401280a@phx.gbl...
> Hi,
> Currently , In my orchestrations port URI I am using
> "....\%MessageID%.txt" name and it comes to really weird -
> looking name, like:{A9EF1FB4-4A03-4970-A5FF-
> 17BFD9DE0E79}.txt
> Is any way that I can use an original source file name,
> because it also unique?
>
> Also, How can I see original message in native format when
> it is been processed by BT2004?
>
> Thank you,
> Alex.
>
>







[ Post a follow-up to this message ]



    Re: How to set messages name at Outgoing Ports URI?  
Alex


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


 
07-28-04 11:09 PM

Yossi,
Thank you!

Alex.







[ Post a follow-up to this message ]



    Re: How to set messages name at Outgoing Ports URI?  
Alex


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


 
07-28-04 11:09 PM

I got %SourceFileName%.txt  as a result. It seems like
context property does not have a value, which is strange
becouse I use flat-file standatd adapter and original
file's name does not contain any problematic characters
and it is like
20040709NYE-20.txt
Any clue why SourceFileName macros is blank?

Alex.






[ Post a follow-up to this message ]



    Re: How to set messages name at Outgoing Ports URI?  
Bill Chesnut


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


 
07-29-04 12:50 PM

Alex,

You must set it in your orchestration,
outmessage(File.ReceiveFileName) = inmessage(File.ReceiveFileName)
in a message assignment shape, you could set it to anything this is just an
example of setting it to the same as the received file name.

Bill Chesnut
BizTalk MVP

"Alex" <anonymous@discussions.microsoft.com> wrote in message
news:5e4c01c474cf$66834df0$a301280a@phx.gbl...
> I got %SourceFileName%.txt  as a result. It seems like
> context property does not have a value, which is strange
> becouse I use flat-file standatd adapter and original
> file's name does not contain any problematic characters
> and it is like
> 20040709NYE-20.txt
> Any clue why SourceFileName macros is blank?
>
> Alex.
>







[ Post a follow-up to this message ]



    Re: How to set messages name at Outgoing Ports URI?  
Alex


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


 
07-29-04 10:50 PM

Hello Bill,
Thank you for the tip.
My orchestration is really simple and it has this
structure:

Port_Incoming ->
-> Receive_Shape(Activate=True; Message=SUN_Instance)->
-> Constract_Shape(Message Constructed=SAP_Instance) +
Transform_Shape(Input Messages=SUN_Instance; Output
Messages=SAP_Instance) ->
-> Send_Shape (Message=SAP_Instance)->
-> Port_Outgoing

Now I have to include the message assignment shape, so I
can do it inside of my Constract_Shape but before
transform shape and my orchestration will looks like this:

Port_Incoming ->
-> Receive_Shape(Activate=True; Message=SUN_Instance)->
-> Constract_Shape(Message Constructed=SAP_Instance) +
+ Message_Assignment_Shape( expression:
SAP_Instance(Schemas.ReceiveFileName)=SUN_Instance
(Schemas.ReceiveFileName);)  +
+ Transform_Shape(Input Messages=SUN_Instance; Output
Messages=SAP_Instance) ->
-> Send_Shape (Message=SAP_Instance)->
-> Port_Outgoing


However, for my "assigns shape" expression I got an error.
SAP_Instance(Schemas.ReceiveFileName)=SUN_Instance
(Schemas.ReceiveFileName);   - "Identifier ReceiveFileName
does not exist in Schemas!"

Where "Schemas.SUN" and "Schemas.SAP" is a namespace for
my schemas and Schemas is a my schemas and map project's
name.

Do you know what am I missing?

Alex.







[ Post a follow-up to this message ]



    Re: How to set messages name at Outgoing Ports URI?  
Bill Chesnut


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


 
07-30-04 01:46 AM

Alex,

it should be:

SAP_Instance(File.ReceiveFileName)=SUN_Instance(File.ReceiveFileName);

Bill Chesnut
BizTalk MVP

"Alex" <astar@NOSPAMsumitrans.com> wrote in message
news:6a1e01c4757e$220ea250$a501280a@phx.gbl...
> Hello Bill,
> Thank you for the tip.
> My orchestration is really simple and it has this
> structure:
>
> Port_Incoming ->
> -> Receive_Shape(Activate=True; Message=SUN_Instance)->
> -> Constract_Shape(Message Constructed=SAP_Instance) +
> Transform_Shape(Input Messages=SUN_Instance; Output
> Messages=SAP_Instance) ->
> -> Send_Shape (Message=SAP_Instance)->
> -> Port_Outgoing
>
> Now I have to include the message assignment shape, so I
> can do it inside of my Constract_Shape but before
> transform shape and my orchestration will looks like this:
>
>  Port_Incoming ->
> -> Receive_Shape(Activate=True; Message=SUN_Instance)->
> -> Constract_Shape(Message Constructed=SAP_Instance) +
> + Message_Assignment_Shape( expression:
> SAP_Instance(Schemas.ReceiveFileName)=SUN_Instance
> (Schemas.ReceiveFileName);)  +
> + Transform_Shape(Input Messages=SUN_Instance; Output
> Messages=SAP_Instance) ->
> -> Send_Shape (Message=SAP_Instance)->
> -> Port_Outgoing
>
>
> However, for my "assigns shape" expression I got an error.
> SAP_Instance(Schemas.ReceiveFileName)=SUN_Instance
> (Schemas.ReceiveFileName);   - "Identifier ReceiveFileName
> does not exist in Schemas!"
>
> Where "Schemas.SUN" and "Schemas.SAP" is a namespace for
> my schemas and Schemas is a my schemas and map project's
> name.
>
>  Do you know what am I missing?
>
> Alex.
>
>







[ Post a follow-up to this message ]



    Re: How to set messages name at Outgoing Ports URI?  
Alex


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


 
07-30-04 10:49 PM

Stupid me,
I just reasized,it should be in Upper case(FILE, not File).

SAP_Instance(FILE.ReceiveFileName)=SUN_Instance
(FILE.ReceiveFileName);

Alex.





[ Post a follow-up to this message ]



Rohith is offline     Re: Re: How to set messages name at Outgoing Ports URI?  
Rohith


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


Click Here to See the Profile for Rohith Click here to Send Rohith a Private Message Find more posts by Rohith Add Rohith to your buddy list
 
08-11-04 10:26 PM

I am also struck up with same problem!!

%SourceFileName% with FlatFile is not working..

I tried same way in Orchastration, 

Message_2(FILE.ReceivedFileName)=Message_1(FILE.ReceivedFileName);

When i am compiling geting exceptions:
 'Message_2': message has not been initialized in construct statement!!

use of unconstructed message 'Message_2'

I tried to Cinstruct New Message and problem is same..!!

Any Idea...why i am getting this error..after creating new msg!!

Is there any other way to solve this issue!!

CR-


quote:
Originally posted by Alex Stupid me, I just reasized,it should be in Upper case(FILE, not File). SAP_Instance(FILE.ReceiveFileName)=SUN_Instance (FILE.ReceiveFileName); Alex.




[ Post a follow-up to this message ]



    Re: How to set messages name at Outgoing Ports URI?  
Neal Walters


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


 
09-30-04 03:40 PM

I got your code to work when receiving a file and sending a file - BUT - wha
t
if I want to create a file dynamically?  The %SourceFileName% macro does not
substitute unless an actual physical file is received.  So if I create a new
message by using XMLDOC.Load("<root></root>") etc...  then try to write out
the file, the send port does not substitute a variable for %SourceFileName%.

I was looking into other macros such as %DestinationParty% - but haven't got
that to work yet either.  I'm about to do some searches on "custom macros" t
o
see if they are available.

Thanks in advance,
Neal Walters
http://Biztalk-Training.com - Free Biztalk Training Videos






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:20 AM.      Post New Thread    Post A Reply      
Pages (2): [1] 2 »   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