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 » XMLNS navigation problem

Post new topic  Reply to topic
 XMLNS navigation problem « View previous topic :: View next topic » 
Author Message
Gama
PostPosted: Fri Jan 12, 2007 7:28 am    Post subject: XMLNS navigation problem Reply with quote

Centurion

Joined: 11 Jan 2005
Posts: 103
Location: Portugal

Hello all,

Please can any one of you cam help-me navigating on my XMLNS message, I need to retreive the values of SendCampaignDeliveryResult and intCampaignId

My code
DECLARE xsi NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE xsd NAMESPACE 'http://www.w3.org/2001/XMLSchema';
DECLARE soapenc NAMESPACE 'http://schemas.xmlsoap.org/soap/encoding/';
DECLARE tns NAMESPACE 'http://smspro.optimus.pt/smspro/';
DECLARE types NAMESPACE 'http://smspro.optimus.pt/smspro/';
DECLARE soap NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE encodingStyle NAMESPACE 'http://schemas.xmlsoap.org/soap/encoding/';

SET OutputRoot.XML.MSG_STATUS.strHTTPStatus = '200';
SET OutputRoot.XML.MSG_STATUS.SendCampaignDeliveryResult = InputRoot.XMLNS.soap:Envelope.soap:Body.types:SendCampaignDeliveryResponse.(XMLNSC.Attribute)SendCampaignDeliveryResult.(XMLNSC.Value);
SET OutputRoot.XML.MSG_STATUS.intCampaignId = InputRoot.XMLNS.soap:Envelope.soap:Body.types:SendCampaignDeliveryResponse.(XMLNSC.Value)intCampaignId;


My XML

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://smspro.optimus.pt/smspro/" xmlns:types="http://smspro.optimus.pt/smspro/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<types:SendCampaignDeliveryResponse>
<SendCampaignDeliveryResult xsi:type="xsd:int">0</SendCampaignDeliveryResult>
<intCampaignId xsi:type="xsd:int">1243022</intCampaignId>
</types:SendCampaignDeliveryResponse>
</soap:Body>
</soap:Envelope>



XML parsed.
soap:Envelope.(XML.attr)xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
soap:Envelope.(XML.attr)xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
soap:Envelope.(XML.attr)xmlns:tns='http://smspro.optimus.pt/smspro/'
soap:Envelope.(XML.attr)xmlns:types='http://smspro.optimus.pt/smspro/'
soap:Envelope.(XML.attr)xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
soap:Envelope.(XML.attr)xmlns:xsd='http://www.w3.org/2001/XMLSchema'
soap:Envelope
soap:Envelope.soap:Body.(XML.attr)soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'
soap:Envelope.soap:Body
soap:Envelope.soap:Body.types:SendCampaignDeliveryResponse
soap:Envelope.soap:Body.types:SendCampaignDeliveryResponse.SendCampaignDeliveryResult.(XML.attr)xsi:type='xsd:int'
soap:Envelope.soap:Body.types:SendCampaignDeliveryResponse.SendCampaignDeliveryResult='0'
soap:Envelope.soap:Body.types:SendCampaignDeliveryResponse.intCampaignId.(XML.attr)xsi:type='xsd:int'
soap:Envelope.soap:Body.types:SendCampaignDeliveryResponse.intCampaignId='1243022'


My code only return
<MSG_STATUS>
<strHTTPStatus>200</strHTTPStatus>
</MSG_STATUS>


Thanks.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 12, 2007 7:34 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Don't use OutputRoot.XML.

Don't use (XMNLSC.xxxxx) to access fields in the XMLNS domain.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Gama
PostPosted: Fri Jan 12, 2007 8:23 am    Post subject: Reply with quote

Centurion

Joined: 11 Jan 2005
Posts: 103
Location: Portugal

jefflowrey wrote:
Don't use OutputRoot.XML.

Don't use (XMNLSC.xxxxx) to access fields in the XMLNS domain.


jefflowrey, you are the best.....


It works...

Tanks...
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 » XMLNS navigation problem
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.