|
Home > Archive > BizTalk Server Orchestration > April 2005 > mapping questions
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]
|
|
|
| Hi,
I have a mapping sample like this. Both source and target xml of the map
contain 1 root node and 2 elements.
source.xml target.xml
SourceRoot TagetRoot
- PurchaseID <---> -ID
- PurchaseMemo <---> -Note
I need to configure that PurchaseID need to be there in the xml file, so
that some xml file like
<ns0:SourceRoot xmlns:ns0=http://test.Schema2>
<PurchseMemo>PurchseMemo_0</PurchseMemo>
</ns0:SourceRoot>
will be rejected by biztalk during the receive, how to do that?
And another request is even the incoming xml is
<ns0:SourceRoot xmlns:ns0=http://test.Schema2>
<PurchaseID>0_0</PurchseID>
</ns0:SourceRoot>
which missed the optional PurchaseMemo, I need to output an xml file
contains all the columns.
<ns0:TargetRoot xmlns:ns0=http://test.Schema2>
<ID>0_0</ID>
<Note/>
</ns0:TargetRoot>
how to do that?
Thanks a lot for your help,
Jason
| |
| Yossi Dahan 2005-04-05, 7:53 am |
| As for your first question - won't setting the field to mandatory in the
schema do?
As for the second - you could use a functoid to query the existence of the
element in the source schema and push a constant value otherwise.
Yossi Dahan
"NEWS" <jasonh@sympatico.ca> wrote in message
news:OKJlwWSOFHA.2252@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> I have a mapping sample like this. Both source and target xml of the map
> contain 1 root node and 2 elements.
>
> source.xml target.xml
>
> SourceRoot TagetRoot
> - PurchaseID <---> -ID
> - PurchaseMemo <---> -Note
>
>
> I need to configure that PurchaseID need to be there in the xml file, so
> that some xml file like
> <ns0:SourceRoot xmlns:ns0=http://test.Schema2>
> <PurchseMemo>PurchseMemo_0</PurchseMemo>
> </ns0:SourceRoot>
>
> will be rejected by biztalk during the receive, how to do that?
>
> And another request is even the incoming xml is
>
> <ns0:SourceRoot xmlns:ns0=http://test.Schema2>
> <PurchaseID>0_0</PurchseID>
> </ns0:SourceRoot>
>
> which missed the optional PurchaseMemo, I need to output an xml file
> contains all the columns.
> <ns0:TargetRoot xmlns:ns0=http://test.Schema2>
> <ID>0_0</ID>
> <Note/>
> </ns0:TargetRoot>
>
> how to do that?
>
> Thanks a lot for your help,
>
> Jason
>
>
| |
|
| Hi Yossi,
I am quite entry level, and I tried min occur number to 1 and nillable to
false. Still don't work, how to set the mandatory?
Thanks,
Jason
"Yossi Dahan" <yossidahan@hotmail.com> wrote in message
news:eRkZJZbOFHA.1096@tk2msftngp13.phx.gbl...
> As for your first question - won't setting the field to mandatory in the
> schema do?
> As for the second - you could use a functoid to query the existence of the
> element in the source schema and push a constant value otherwise.
>
> Yossi Dahan
>
> "NEWS" <jasonh@sympatico.ca> wrote in message
> news:OKJlwWSOFHA.2252@TK2MSFTNGP15.phx.gbl...
>
>
| |
| Yossi Dahan 2005-04-07, 7:48 am |
| Jason hi,
I've actually opened the schema editor this time :-)
Openening a schema I had and inserting a new child field element without
changing any of its properties makes it mandatory - if I try to validate a
message without this field it fails.
The min occurs property is empty in this case and nillable is false.
setting it to 0 makes the field optional.
If you can't get your schema right feel free to post it here and I'll have a
look if you want
Yossi Dahan
"NEWS" <jasonh@sympatico.ca> wrote in message
news:ul4Op0eOFHA.524@TK2MSFTNGP09.phx.gbl...
> Hi Yossi,
>
> I am quite entry level, and I tried min occur number to 1 and nillable to
> false. Still don't work, how to set the mandatory?
>
> Thanks,
>
> Jason
>
>
> "Yossi Dahan" <yossidahan@hotmail.com> wrote in message
> news:eRkZJZbOFHA.1096@tk2msftngp13.phx.gbl...
>
>
| |
|
| Hi Yossi,
I know if we do a test schema it will reject the input xml and metion sth in
the xml is missing. But if you create a recieve shape and port on this
schema, and use the same xml file as the input of the orchestration, it will
be passed and orchestration will process it.
What I mean is, in schema level, test schema did show the errors, but when
you put it in orchestration, such mandantory options are ignored in receive
shape.
Thanks,
Jason
"Yossi Dahan" <yossidahan@hotmail.com> wrote in message
news:eAZpw70OFHA.2520@tk2msftngp13.phx.gbl...
> Jason hi,
>
> I've actually opened the schema editor this time :-)
> Openening a schema I had and inserting a new child field element without
> changing any of its properties makes it mandatory - if I try to validate a
> message without this field it fails.
> The min occurs property is empty in this case and nillable is false.
> setting it to 0 makes the field optional.
>
> If you can't get your schema right feel free to post it here and I'll have
> a look if you want
>
> Yossi Dahan
>
>
> "NEWS" <jasonh@sympatico.ca> wrote in message
> news:ul4Op0eOFHA.524@TK2MSFTNGP09.phx.gbl...
>
>
| |
| Yossi Dahan 2005-04-11, 7:50 am |
| Which pipeline are you using in the receive port? note that the validation
is taking place in the pipeline and not in the orchestration
Yossi Dahan
"NEWS" <jasonh@sympatico.ca> wrote in message
news:ukeDvvEPFHA.2132@TK2MSFTNGP14.phx.gbl...
> Hi Yossi,
>
> I know if we do a test schema it will reject the input xml and metion sth
> in the xml is missing. But if you create a recieve shape and port on this
> schema, and use the same xml file as the input of the orchestration, it
> will be passed and orchestration will process it.
>
> What I mean is, in schema level, test schema did show the errors, but when
> you put it in orchestration, such mandantory options are ignored in
> receive shape.
>
> Thanks,
>
> Jason
>
>
> "Yossi Dahan" <yossidahan@hotmail.com> wrote in message
> news:eAZpw70OFHA.2520@tk2msftngp13.phx.gbl...
>
>
|
|
|
|
|