mapping repeating items results in extra nesting
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 General > mapping repeating items results in extra nesting




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

    mapping repeating items results in extra nesting  
David Creel


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


 
04-25-05 10:51 PM

I have a schema from a webservice that I am mapping to another very similar
schema.

The schemas are both 'Order' records that have repeating 'OrderItem'
records.  I'm trying to map one schema to the other, and it works great when
I do the 'Test Map' command.  At runtime, though, the resulting XML gets an
extra level of nesting for the repeating 'OrderItem' element.

This is what I end up with (simplified):
<ns0:Order xmlns:ns0="http://eStoreSchemas">
<ns0:OrderID>33540</ns0:OrderID>
<ns0:CustomerContact>
<FirstName>David</FirstName>
<LastName>Creel</LastName>
</ns0:CustomerContact>
<ns0:OrderItems>
<ns0:Count>1</ns0:Count>
<ns0:OrderItem><!-- here is the extra nesting!!!-->
<ns0:OrderItem xmlns:ns0="http://eStoreSchemas">
<ns0:ID>19851</ns0:ID>
<ns0:ShippingTax>0</ns0:ShippingTax>
</ns0:OrderItem>
</ns0:OrderItem>
</ns0:OrderItems>
</ns0:Order>

And here is what I want to end up with:
<ns0:Order xmlns:ns0="http://eStoreSchemas">
<ns0:OrderID>33540</ns0:OrderID>
<ns0:CustomerContact>
<FirstName>David</FirstName>
<LastName>Creel</LastName>
<Email>david@electronicauto.com</Email>
<Phone />
<Fax />
</ns0:CustomerContact>
<ns0:OrderItems>
<ns0:Count>1</ns0:Count>
<ns0:OrderItem xmlns:ns0="http://eStoreSchemas">
<ns0:ID>19851</ns0:ID>
<ns0:ShippingTax>0</ns0:ShippingTax>
</ns0:OrderItem>
</ns0:OrderItems>
</ns0:Order>

What bothers me is that it works when testing, but not when running from an
orchestration.  I'm sure there's something simple I am missing, anyone have
any ideas?  I can post the map too, but its just a simple mapping of the
elements.

--
===>DavidC





[ Post a follow-up to this message ]



    RE: mapping repeating items results in extra nesting  
David Creel


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


 
04-26-05 10:53 PM

Disregard

Problem was not with the map, but with a message assignment after the map.

"David Creel" wrote:

> I have a schema from a webservice that I am mapping to another very simila
r
> schema.
>
> The schemas are both 'Order' records that have repeating 'OrderItem'
> records.  I'm trying to map one schema to the other, and it works great wh
en
> I do the 'Test Map' command.  At runtime, though, the resulting XML gets a
n
> extra level of nesting for the repeating 'OrderItem' element.
>
> This is what I end up with (simplified):
> <ns0:Order xmlns:ns0="http://eStoreSchemas">
> 	<ns0:OrderID>33540</ns0:OrderID>
> 	<ns0:CustomerContact>
> 		<FirstName>David</FirstName>
> 		<LastName>Creel</LastName>
> 	</ns0:CustomerContact>
> 	<ns0:OrderItems>
> 		<ns0:Count>1</ns0:Count>
> 		<ns0:OrderItem><!-- here is the extra nesting!!!-->
> 			<ns0:OrderItem xmlns:ns0="http://eStoreSchemas">
> 				<ns0:ID>19851</ns0:ID>
> 				<ns0:ShippingTax>0</ns0:ShippingTax>
> 			</ns0:OrderItem>
> 		</ns0:OrderItem>
> 	</ns0:OrderItems>
> </ns0:Order>
>
> And here is what I want to end up with:
> <ns0:Order xmlns:ns0="http://eStoreSchemas">
> 	<ns0:OrderID>33540</ns0:OrderID>
> 	<ns0:CustomerContact>
> 		<FirstName>David</FirstName>
> 		<LastName>Creel</LastName>
> 		<Email>david@electronicauto.com</Email>
> 		<Phone />
> 		<Fax />
> 	</ns0:CustomerContact>
> 	<ns0:OrderItems>
> 		<ns0:Count>1</ns0:Count>
> 		<ns0:OrderItem xmlns:ns0="http://eStoreSchemas">
> 			<ns0:ID>19851</ns0:ID>
> 			<ns0:ShippingTax>0</ns0:ShippingTax>
> 		</ns0:OrderItem>
> 	</ns0:OrderItems>
> </ns0:Order>
>
> What bothers me is that it works when testing, but not when running from a
n
> orchestration.  I'm sure there's something simple I am missing, anyone hav
e
> any ideas?  I can post the map too, but its just a simple mapping of the
> elements.
>
> --
> ===>DavidC





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:38 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