mapping questions
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 > mapping questions




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

    mapping questions  
NEWS


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


 
04-04-05 10:50 PM

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







[ Post a follow-up to this message ]



    Re: mapping questions  
Yossi Dahan


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


 
04-05-05 12:53 PM

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







[ Post a follow-up to this message ]



    Re: mapping questions  
NEWS


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


 
04-05-05 10:50 PM

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







[ Post a follow-up to this message ]



    Re: mapping questions  
Yossi Dahan


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


 
04-07-05 12:48 PM

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







[ Post a follow-up to this message ]



    Re: mapping questions  
NEWS


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


 
04-08-05 10:49 PM

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







[ Post a follow-up to this message ]



    Re: mapping questions  
Yossi Dahan


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


 
04-11-05 12:50 PM

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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:19 AM.      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