Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6856709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:55:13+00:00 2026-05-27T01:55:13+00:00

I am building a BPEL process that takes an itinerary as input: this is

  • 0

I am building a BPEL process that takes an itinerary as input: this is made of an unbounded list of elements and some attributes.
The task of the process is to go over every element of the list “booking” it, assign some value to the attributes, and then return the itinerary.
Each of those elements is itself made of two elements: some information for the booking process (which works fine) and the specific object, which might be a flight or a hotel. I tried defining that element like so:

<xsd:complexType name="ObjectType" abstract="true">
    <xsd:sequence>
        <xsd:element name="objType" type="xsd:string"></xsd:element>
    </xsd:sequence>
</xsd:complexType>

<xsd:complexType name="FlightType">
    <xsd:complexContent>
        <xsd:extension base="tns:ObjectType">
            <xsd:sequence>
                <xsd:element name="departureCity" type="xsd:string"></xsd:element>
                <xsd:element name="arrivalCity" type="xsd:string"></xsd:element>
                <xsd:element name="departureTime" type="xsd:dateTime"></xsd:element>
                <xsd:element name="arrivalTime" type="xsd:dateTime"></xsd:element>
                <xsd:element name="airline" type="xsd:string"></xsd:element>
            </xsd:sequence>
        </xsd:extension>
    </xsd:complexContent>
</xsd:complexType>

<xsd:complexType name="ItineraryReservationType">
    <xsd:sequence>
        <xsd:element name="object" type="tns:ObjectType"></xsd:element>
        <xsd:element name="reservation" type="tns:ReservationType"></xsd:element>
    </xsd:sequence>
</xsd:complexType>

and then using them in a CompositeApplication with this kind of input

    <urn:itineraryReservation>
      <urn:flight>
        <urn:objType>flight</urn:objType>
        <urn:departureCity>Ottawa</urn:departureCity>
        <urn:arrivalCity>Toronto</urn:arrivalCity>
        <urn:departureTime>2007-10-26T08:36:28</urn:departureTime>
        <urn:arrivalTime>2004-02-14T19:44:14</urn:arrivalTime>
        <urn:airline>Aircanada</urn:airline>
      </urn:flight>
      <urn:reservation>
        <urn:price>3</urn:price>
      </urn:reservation>
    </urn:itineraryReservation>

but whenever the process reaches the last assign and tries to copy the itinerary element to output it I get a Particle not found in the complex type. element={urn:ws.bpelschema}flight, complexType={urn:ws.bpelschema}ItineraryReservationType.
The obvious alternative is to carry two lists around, one for flights and one for hotels, but I thought things could be better and couldn’t find anything on this topic.
Thanks for helping!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:55:14+00:00Added an answer on May 27, 2026 at 1:55 am

    The problem with your XML, as far as I can tell from the XML Schema snippets, is that instead of <urn:flight> you’re supposed to use <urn:object xsi:type=”urn:FlightType”>; all should be fine then. Unless your intent was to use substitution groups… Again hard to tell from the XSD snippet.

    My best advice for this type of problems is to recommend to have an XML sample file generated from your validated XML Schema, by a tool. It should provide you with a visualization of what a valid XML should look like, and from there it should be easy for anyone to code for that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Building a quick view that will display a list of all days but only
I am building a BPEL process in Netbeans 6.8 and I invoke a Web
Building the same project (without any changes) produces binary different exe-files: some small regions
building a site using PHP and MySQL that needs to store a lot of
Building a website that has English & Japanese speaking users, with the Japanese users
Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't
Building a commercial product may use various open source libraries that have use of
Building our Android app from Ant fails with this error: [apply] [apply] UNEXPECTED TOP-LEVEL
Building my first WP theme and I quickly realized that I need to remove
Building a rails B2B application that will have various users. I'm pretty clear on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.