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 » Accessing SOAP/XMLNSC input data (namespace issue?)-SOLVED

Post new topic  Reply to topic
 Accessing SOAP/XMLNSC input data (namespace issue?)-SOLVED « View previous topic :: View next topic » 
Author Message
Sandman
PostPosted: Tue Dec 23, 2008 10:34 am    Post subject: Accessing SOAP/XMLNSC input data (namespace issue?)-SOLVED Reply with quote

Centurion

Joined: 16 Oct 2001
Posts: 134
Location: Lincoln, RI

I've searched this site and combed the Info Center. Hoping someone here can help me please.

I'm trying to take in a SOAP message, parsing as XMLNSC in the MQInput node. My goal is to transform this SOAP/XML message into a non-SOAP/XML format that we use in-house.

But whenever the SET statement below executes (or I try to access any other part of the input message in this way), my OutputRoot.XMLNSC element is still empty?

Here is my code:
Code:
CREATE FIELD OutputRoot.XMLNSC;
DECLARE soapenv NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope';
DECLARE msg NAMESPACE 'http://www.amica.com/amica_messaging';
SET OutputRoot.XMLNSC.msg:Body = InputRoot.XMLNSC.soapenv:Envelope.soapenv:Body;

Here's the input message:
Code:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:msg="http://www.amica.com/amica_messaging">
 <soapenv:Header></soapenv:Header>
 <soapenv:Body>
  <msg:InquiryPartyResponse id="ID000025" cmdType="response" refidRequest="alwaysRespond" refidMsg="" cmdStatus="ok"></msg:InquiryPartyResponse>
 </soapenv:Body>
</soapenv:Envelope>

Thank you in advance for your help.


Last edited by Sandman on Tue Dec 23, 2008 12:50 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
mgk
PostPosted: Tue Dec 23, 2008 11:55 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

just remove the CREATE FIELD OutputRoot.XMLNSC; as it is not needed here and is causing you to create an element without a parser
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
Sandman
PostPosted: Tue Dec 23, 2008 12:29 pm    Post subject: Reply with quote

Centurion

Joined: 16 Oct 2001
Posts: 134
Location: Lincoln, RI

Thanks mgk. You're right. But that didn't solve my problem.

A coworker found it... I needed to add the trailing '/' to this:
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Accessing SOAP/XMLNSC input data (namespace issue?)-SOLVED
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.