Hello, this should be easy but I failed.  

I want to skip deserialisation of one element in a WSDL2C-generated
stub.  I comment out the block that does the deserialisation, but in the
next block I lose current_node:

current_node = axiom_node_get_next_sibling(current_node, env);

current_node is null but I know there is another node.  Get_next_sibling
returns null because the following case is true in
axiom_stax_builder_next_with_token()

    if (om_builder->done)
    {
        AXIS2_ERROR_SET(env->error,
AXIS2_ERROR_BUILDER_DONE_CANNOT_PULL,
                        AXIS2_FAILURE);
        return -1;
    }

I have been reading the code to try to understand where the builder is
generated, when it is set to done, etc.  I don't understand how the
block I commented out affects this.  The builder only seems generated
once, and the done property is affected when the payload is read using
build_all().  But I know if this block wasn't commented out, the
current_node would not be null!

Anyone have an idea what to do?

To recap:

XML contains 

A
B
C
D

Elements.

In deserialize() it says

Building A
Building B
Building C
Building D

I want to do this

Building A
Building B
//Building C
Building D

And still have current_node point to D correctly



Carl LEFRANÇOIS
Analyste Programmeur - Études et développement
AXA Canada Tech
2020, rue University - Bureau 600, Montréal (Québec), H3A 2A5
[email protected]
Tél. :éc    514-282-6817, poste 4548
Téléc. :    514-282-6017
www.axa.com
  _____  

"Ce message est confidentiel, à l'usage exclusif du destinataire
ci-dessus et son contenu ne représente en aucun cas un engagement de la
part de AXA, sauf en cas de stipulation expresse et par écrit de la part
de AXA. Toute publication, utilisation ou diffusion, même partielle,
doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce
message, merci d'en avertir immédiatement l'expéditeur."

"This e-mail message is confidential, for the exclusive use of the
addressee and its contents shall not constitute a commitment by AXA,
except as otherwise specifically provided in writing by AXA. Any
unauthorized disclosure, use or dissemination, either whole or partial,
is prohibited. If you are not the intended recipient of the message,
please notify the sender immediately."

Reply via email to