Author |
Message
|
Luke |
Posted: Mon Aug 31, 2009 1:09 pm Post subject: |
|
|
Centurion
Joined: 10 Nov 2008 Posts: 128 Location: UK
|
This is kind of an aside, but does it actually make any difference what the prefix is? I know previously you'd ended up with two different URIs with the same prefix, which didn't look right. But in this case, if the NS1: prefix resolves to the same URI as the tns: prefix did in the input message, isn't that in effect the same?
That's definitely a question more than a statement, so I'd be grateful if Vitor or mqjeff could clarify ...
Thanks |
|
Back to top |
|
 |
Luke |
Posted: Mon Aug 31, 2009 1:35 pm Post subject: |
|
|
Centurion
Joined: 10 Nov 2008 Posts: 128 Location: UK
|
P.S. Why do people always put the namespace declarations in the SOAP envelope even when they're used in the body of the message? Surely the idea of an envelope is that you can take the 'letter' out and read it properly independently of the envelope?
I think if there was a namespace declaration in the body of the input message you wouldn't have to explicitly declare it again ... ? As it is, when you take the body out, the declaration is left in the envelope ... |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 31, 2009 1:57 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Luke wrote: |
That's definitely a question more than a statement, so I'd be grateful if Vitor or mqjeff could clarify ... |
It does resolve as you say so should parse. Depending on exactly how it's parsed and what exactly the message tree is in the application, the lack of an xmlns declaration can be problematic. It's also not especially descriptive as prefixes go.
I'd welcome other views (especially those of my esteemed associate) on this. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Sep 01, 2009 5:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
As long as the prefix is declared, it should not matter what it actually is.
At least, AFAIK. |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Tue Sep 01, 2009 5:58 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
mqjeff wrote: |
As long as the prefix is declared, it should not matter what it actually is.
At least, AFAIK. |
I agree, although I have seen code written that looks for specific prefixes. Very naughty  |
|
Back to top |
|
 |
SOLOHERO |
Posted: Wed Sep 02, 2009 2:36 pm Post subject: |
|
|
Centurion
Joined: 01 Feb 2007 Posts: 107
|
since you said you are going to use soap nvelope and soap extrat here after to your project...
I would advise you to create a subflow and construct the soap headers in the sub flow.in that way you can declare the namespaces and you dont have to store in any queues...and it can applied any where.w/o rework..
I hope this helps...if you want more info please let me know..
Thanks _________________ Thanks |
|
Back to top |
|
 |
mqxplorer |
Posted: Sun Sep 06, 2009 8:40 pm Post subject: |
|
|
 Master
Joined: 22 Jun 2009 Posts: 206
|
Hi SOLOHERO,
Thanks for your reply. I was bit busy with othet stuff, I haven't checked my post. Could you give me some more info regarding the subflow you are talking about? I would be more happy, if I can use this subflow anywhere without any rework. Please let me know what I should do to proceed further.
Thanks in advance |
|
Back to top |
|
 |
|