Error with mapping repeating xml structure

View: New views
3 Messages — Rating Filter:   Alert me  

Error with mapping repeating xml structure

by Trond Stromme :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello.
I have a problem where I'm not seeing the expected behavior in the
output from a xsd->xsd mapping
A zip file with a sample BPEL and CA project is attached to this mail.

I thought that mapping (this is in pseudo/xml/xsd/)
<people>
   <person>  1->*
      <name>  1-1
      <age>1-1
      <sex> 1-1
   </person>
</people>
to
<folks>
   <dude> 1->*
      <name> 1-1
      <isdummy> 1-1
      <sex> 1-1
    </dude>
 </folks>
would work by adding an assign element in the bpel and using the mapper
to correlate name-> name, sex->sex, and for fun add a string literal to
isdummy

However the output after deployment is;
<folks>
   <dude>
      <name>trond</name>
      <name>nils</name>
      <name>mari</name>
   ..... cut ....

What i expected is;
<folks>
   <dude>
      <name>trond</name>
      <isdummy>true</isdummy>
      <sex>M</sex>
    </dude>
   <dude>
         <name>nils</name<
         .-.... cut

The OpenESB/NetBeans version is the combination bundled in version
200803250006.
OS is windows, JVM is Sun 1.5.0_15

Am I just doing something totally wrong or is this an issue, in that
case for which module should i log it in?

thanks

--
Trond Strømme
Software Specialist

Sun Microsystems, Inc.
NO
Phone x43744/+47-23-369 744
Mobile +4797509388
Email Trond.Stromme@...




demoproject.zip (62K) Download Attachment

Re: Error with mapping repeating xml structure

by Jason Baragry-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Trond,

Have you tried this question on sierra-feedback@...? It should give
you a quicker response that the external netbeans list.

BTW, how are things going at CL?

cheers
Jason

> Hello.
> I have a problem where I'm not seeing the expected behavior in the
> output from a xsd->xsd mapping
> A zip file with a sample BPEL and CA project is attached to this mail.
>
> I thought that mapping (this is in pseudo/xml/xsd/)
> <people>
>   <person>  1->*
>      <name>  1-1
>      <age>1-1
>      <sex> 1-1
>   </person>
> </people>
> to
> <folks>
>   <dude> 1->*
>      <name> 1-1
>      <isdummy> 1-1
>      <sex> 1-1
>    </dude>
> </folks>
> would work by adding an assign element in the bpel and using the
> mapper to correlate name-> name, sex->sex, and for fun add a string
> literal to isdummy
>
> However the output after deployment is;
> <folks>
>   <dude>
>      <name>trond</name>
>      <name>nils</name>
>      <name>mari</name>
>   ..... cut ....
>
> What i expected is;
> <folks>
>   <dude>
>      <name>trond</name>
>      <isdummy>true</isdummy>
>      <sex>M</sex>
>    </dude>
>   <dude>
>         <name>nils</name<
>         .-.... cut
>
> The OpenESB/NetBeans version is the combination bundled in version
> 200803250006.
> OS is windows, JVM is Sun 1.5.0_15
>
> Am I just doing something totally wrong or is this an issue, in that
> case for which module should i log it in?
>
> thanks
>


--
<http://www.java.com> * Jason Baragry *
Senior Solution Architect
Software Practice
*Sun Microsystems, Inc.*
Central & Northern Europe
Phone x43697/+47-23-369 697
Mobile +47 4899 4603
Email Jason.Baragry@...
<http://www.java.com>


Re: Error with mapping repeating xml structure

by Jason Baragry-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, that email should have gone direct back to Trond....

Jason

> Hi Trond,
>
> Have you tried this question on sierra-feedback@...? It should
> give you a quicker response that the external netbeans list.
>
> BTW, how are things going at CL?
>
> cheers
> Jason
>
>> Hello.
>> I have a problem where I'm not seeing the expected behavior in the
>> output from a xsd->xsd mapping
>> A zip file with a sample BPEL and CA project is attached to this mail.
>>
>> I thought that mapping (this is in pseudo/xml/xsd/)
>> <people>
>>   <person>  1->*
>>      <name>  1-1
>>      <age>1-1
>>      <sex> 1-1
>>   </person>
>> </people>
>> to
>> <folks>
>>   <dude> 1->*
>>      <name> 1-1
>>      <isdummy> 1-1
>>      <sex> 1-1
>>    </dude>
>> </folks>
>> would work by adding an assign element in the bpel and using the
>> mapper to correlate name-> name, sex->sex, and for fun add a string
>> literal to isdummy
>>
>> However the output after deployment is;
>> <folks>
>>   <dude>
>>      <name>trond</name>
>>      <name>nils</name>
>>      <name>mari</name>
>>   ..... cut ....
>>
>> What i expected is;
>> <folks>
>>   <dude>
>>      <name>trond</name>
>>      <isdummy>true</isdummy>
>>      <sex>M</sex>
>>    </dude>
>>   <dude>
>>         <name>nils</name<
>>         .-.... cut
>>
>> The OpenESB/NetBeans version is the combination bundled in version
>> 200803250006.
>> OS is windows, JVM is Sun 1.5.0_15
>>
>> Am I just doing something totally wrong or is this an issue, in that
>> case for which module should i log it in?
>>
>> thanks
>>
>
>