BizTalk Server Orchestration - schemas in xmldocument

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > November 2005 > schemas in xmldocument





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 schemas in xmldocument
kerberos

2005-11-11, 5:58 pm

hello forum
i am a new guy to biztalk, so far i have done some labs and i managed
to create an application that receives a flat file or a xml, and send
it over to a c# component
first the xmldocument is generated under a certain schema (schema a1),
send in as a parameter waiting to be returned transformated.

this component is in charge to add some values to some of the nodes,
generating an output (a xmldocument return value) to the orch so it
can be sent (expecting to be under schema b2).

the problem here is the document is well done buuuut ...
a) im facing troubles due the namespace, because it remains with the
"old" namespace eventhough when it returns to the orch it is assigned
to a new message based on a new schema. btw,some nodes in the
resulting xml are like <node ns="">.

b) some of the nodes are empty, how can i remove the empty nodes
<example><ex ne=""></ex></example>, this is
pretty dumb i know

i have my doubts, because the message assignment is like message2 =
mycomponent.mytransformationfunction(message1)
where message2 is based on schema b2 and message1 is based on schema
a1


so many thanks in advance
best regards
rene rugerio

Samuel L

2005-11-14, 7:48 am

Ok, I don't know if I understand your problem correctly...

Do you do the transform in the c# component?
- If so, I think you have to manually set the new namespace if you don't
want to keep the old one. Because this is not done when just performing the
assignment. But maybe you do this already??


"kerberos" wrote:

> hello forum
> i am a new guy to biztalk, so far i have done some labs and i managed
> to create an application that receives a flat file or a xml, and send
> it over to a c# component
> first the xmldocument is generated under a certain schema (schema a1),
> send in as a parameter waiting to be returned transformated.
>
> this component is in charge to add some values to some of the nodes,
> generating an output (a xmldocument return value) to the orch so it
> can be sent (expecting to be under schema b2).
>
> the problem here is the document is well done buuuut ...
> a) im facing troubles due the namespace, because it remains with the
> "old" namespace eventhough when it returns to the orch it is assigned
> to a new message based on a new schema. btw,some nodes in the
> resulting xml are like <node ns="">.
>
> b) some of the nodes are empty, how can i remove the empty nodes
> <example><ex ne=""></ex></example>, this is
> pretty dumb i know
>
> i have my doubts, because the message assignment is like message2 =
> mycomponent.mytransformationfunction(message1)
> where message2 is based on schema b2 and message1 is based on schema
> a1
>
>
> so many thanks in advance
> best regards
> rene rugerio
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com