Posted: Tue Nov 10, 2009 11:12 pm Post subject: How to change the namespace for complex type
Centurion
Joined: 27 Mar 2007 Posts: 142
Hi,
I have a very large complex message which have one parent and 10 child elements.. and each of these 10 child elements have 10 more child elements with unique name space assigned to it. I want send the same message to target with different name space....
how can I do that...? please help me out....
but here I am saying 10 as anxample... in 10 might be 100 or 1000 so I want proper way to do that... please help me out....
This has been discussed several times before. You are hoping that somebody will say 'Just set this attribute on the root node, and the namespace will be inherited by all of the child nodes'.
I don't blame you for asking the question, but I'm afraid the answer is the same as it has always been - there is no shortcut. You have to assign the correct namespace to each and every element in the message tree. The best way to do that is to walk the message tree recursively and set the namespace on each element.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum