Posted: Tue Dec 23, 2008 10:34 am Post subject: Accessing SOAP/XMLNSC input data (namespace issue?)-SOLVED
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;
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.
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