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 7691385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:36:39+00:00 2026-05-31T20:36:39+00:00

I have 2 major problems with the Flex (4.6) SoapDecoder, I really can’t get

  • 0

I have 2 major problems with the Flex (4.6) SoapDecoder, I really can’t get my head around.

The first major problem is that my ArrayCollection get decoded and inserted in the first item of the property instead of being the value of the property.

So I end up with a structure like

valueObject
 |- children():ArrayCollection
    |- [0]    ArrayCollection
              |- [0] SomeObject
              |- [1] SomeObject
                 ...

instead of the expected

valueObject
 |- children():ArrayCollection
    |- [0] SomeObject
    |- [1] SomeObject
    ...

The second major problem I’m having, and this is the strange one, is that some objects don’t get their values assigned while others are.

eg. the Bar object has 2 properties with 2 objects
Bar
– foo():Foo
– tappas():Tappas

foo get it’s value perfectly while tappas remains empty.
Both objects are declared in the WSDL and registered in the SchemaTypeRegistry like this:

 SchemaTypeRegistry.getInstance().registerClass(new QName("http://test.com/service","tappas"),Tappas);
 SchemaTypeRegistry.getInstance().registerClass(new QName("http://test.com/service","foo"),Foo);

I spent 2 days already trying to get my head around this problem and I can’t find a decent explination.
Both my code (I’m using the SDK Webservice) as the WSDL seem fine to me.

  • 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-31T20:36:40+00:00Added an answer on May 31, 2026 at 8:36 pm

    I found it.
    My theory is that when the Flex Soap decoder hits an element he doesn’t expect, it skips the entire definition and moves on.
    It seems that the decoder starts decoding base classes and moves up from there.
    When an element does not match the expected element from the WSDL, because the tag is missing in the response for example, the SOAP decoder skips decoding the rest and moves on with the the class it was originally working on.

    for example:
    WSDL:

    <s:complexType name="Animal"> 
        <s:sequence> 
            <s:element name="Name" type="s:string" /> 
            <s:element name="Race" type="s:string" /> 
            <s:element name="Sound" type="s:string" /> 
        </s:sequence> 
    </s:complexType>
    
    <s:complexType name="Dog"> 
        <s:complexContent> 
            <s:extension base="s0:Animal"> 
                <s:sequence> 
                    <s:element name="HouseTrained" type="s:boolean" /> 
                </s:sequence> 
            </s:extension> 
        </s:complexContent> 
    </s:complexType>
    

    If your respond looks like:

    <Animal xmlns:s01="http://www.world.com/AnimalKingDom" xsi:type="s01:Dog">
        <Name>Snowy</Name>
        <Sound>Barking</Sound>
        <HouseTrained>true</HouseTrained>
    </Animal>
    

    The property Name will be correctly set, but Race and Sound will not have been set by the decoder.
    Note that the HouseTrained-property will be correctly set by the decoder, because when it ran into the missing tag in the base class, it stopped decoding there and continued with the rest of the Dog class.

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

Sidebar

Related Questions

Does it have any major effect on performance/ memory if my web.config is really
I have Fortran-based 3D column-major order array flattened into linear memory. What formula/algorithm can
I have almost created a website that works in all major browsers flawlessly. Yesterday,
I seem to have major problems getting a one to many relationship to work
I have just seen that new major release ( 3.6 Helios ) of eclipse
Hi I have some major problems with auto mapper and it being slow. I
I have had major problems with getting UserControls to work in XAML - I
I have two major xml elements: courses and CRNs <courses> <course credits=3 courseNum=COMP1950 name=Intermediate
This might not have a major usecase in projects, but I was just trying
I'm sure this is fairly simple, however I have a major mental block 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.