ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message Broker V8 Message Map namespace issue

Post new topic  Reply to topic
 Message Broker V8 Message Map namespace issue « View previous topic :: View next topic » 
Author Message
seeknee
PostPosted: Tue Nov 06, 2012 6:37 pm    Post subject: Message Broker V8 Message Map namespace issue Reply with quote

Apprentice

Joined: 08 Aug 2002
Posts: 41
Location: Melbourne, Australia

Hi

Can anyone please help me with this issue.
How do I create on global alias for a namespace

I'm using the WMB V8 message map tool and it seems to create many alias for the same values.

<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<tns:MessageVerification xmlns:tns="http://xxxx/service/1.0/">
<abc:MessageHeader xmlns:abc="http://xxx/schema/1.2.1/">
<abc:MessageCategory>Request</abc:MessageCategory>
<abc:MessageService>Land Title Reference Verification</abc:MessageService>
<abc:MessageId>MessageId</abc:MessageId>
<abc:TransmissionTimestamp>2001-12-31T12:00:00</abc:TransmissionTimestamp>
<abc:MessageOrigin>bbbb</abc:MessageOrigin>
<abc:MessageDestination>aaaa</abc:MessageDestination>
<abc:Environment>Development</abc:Environment>
<abc:OriginalMessageId>OriginalMessageId</abc:OriginalMessageId>
<abc:OriginalMessageStatus>
<abc:MessageStatusCode>0 OK</abc:MessageStatusCode>
<abc:MessageStatusReason>MessageStatusReason</abc:MessageStatusReason>
</abc:OriginalMessageStatus>
</abc:MessageHeader>
<abc:Jurisdiction xmlns:abc="http://xxx/schema/1.2.1/">VIC</abc:Jurisdiction>
<abc:MessageReference xmlns:abc="http://xxx/schema/1.2.1/">
<abc:Component>
<abc:Name>abc</abc:Name>
<abc:Value>90001</abc:Value>
</abc:Component>
<abc:Component>
<abc:Name>def</abc:Name>
<abc:Value>950</abc:Value>
</abc:Component>
</abc:MessageReference>
</tns:MessageVerification>
</soapenv:Body>
</soapenv:Envelope>
_________________
IBM Certified Specialist MQSeries
IBM Certified Specialist WebSphere MQ Integrator
IBM Certified Solution Designer WebSphere Business Integration Message Broker V5

"Good judgement comes from experience, and experience comes from poor judgement"
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 07, 2012 4:03 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why does this represent a problem?
Back to top
View user's profile Send private message
goffinf
PostPosted: Wed Nov 07, 2012 8:57 am    Post subject: Re: Message Broker V8 Message Map namespace issue Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

seeknee wrote:

How do I create on global alias for a namespace


Whats the problem with namespace prefix bindings that have been created here. Yes they are repeated in a couple of places so that each significant content type structure within the 'MessageVerification' element declare an in-scope prefix binding, but this (a) does no harm and (b) in many quarters is regarded as a best practice since it enables fragments of that document to be processed independently and still remain 'well formed'.

You could declare a single abc: prefix binding on the SOAP Envelope element but it makes absolutely no difference as far as the XML infoset is concerned whether it is declared once or on every element and uses different prefixes each time.

Unless it is *really* causing you an issue (and if it is its more likely to be because your processing approach is flawed), then why not just let the tooling do the 'right thing' ?

HTHs

Fraser.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message Broker V8 Message Map namespace issue
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.