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 » Converting SOAP domain to XMLNSC domain message

Post new topic  Reply to topic
 Converting SOAP domain to XMLNSC domain message « View previous topic :: View next topic » 
Author Message
visasimbu
PostPosted: Fri Nov 21, 2014 10:15 am    Post subject: Converting SOAP domain to XMLNSC domain message Reply with quote

Disciple

Joined: 06 Nov 2009
Posts: 171

Hi all,
I tried to convert SOAP domain message to XMLNSC domain message to send the message in MQ protocol.

Flow Skeleton:
SoapInputNode -> FlowOrderNode

FromFirstTerminal of flowordernode -> computeNode1 -> MQOutputNode
FromSecondTerminal of flowoderNode-> ComputerNode2 -> SoapReplyNode

ComputeNode1 contains below code snipet :
Code:

      DECLARE inCCSID INT InputProperties.CodedCharSetId;                     
      DECLARE inEncoding INT InputProperties.Encoding;                       
      DECLARE inBitStream BLOB ASBITSTREAM(InputRoot.SOAP, inEncoding, inCCSID);
      CREATE LASTCHILD OF OutputRoot DOMAIN('XMLNSC')                           
        PARSE(inBitStream, inEncoding, inCCSID, '',         
             '', '', FolderBitStream );


After executing this statement, I can see "SOAP_Domain_Msg" after MQRFH2 headers. Still my message is in soapDomain format and it throws an error when we propagate to MQoutput node. Please help me to change this to XMLNSC domain.

Error message in eventviewer :
The element with name ''soap[http://schemas.xmlsoap.org/soap/envelope/]'' and field type ''namespaceDeclType'' is not valid as the child of Root.XML or Root.XMLNSC.

Each child of Root.XMLNSC must represent a valid XML construct for the top level of an XML document. The only field types that are valid in this position are XMLNSC.Comment or XMLNSC.ProcessingInstruction.


Last edited by visasimbu on Fri Nov 21, 2014 10:41 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Fri Nov 21, 2014 10:38 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

How do you have a SOAPRequest node and a SOAPReply node wired together and why?

Why do you need to manually extract the payload of a SOAP message rather than letting the SOAP node do it?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
visasimbu
PostPosted: Fri Nov 21, 2014 10:43 am    Post subject: Reply with quote

Disciple

Joined: 06 Nov 2009
Posts: 171

Vitor wrote:
How do you have a SOAPRequest node and a SOAPReply node wired together and why?


It is typo error. I have corrected it in my original post.


Vitor wrote:

Why do you need to manually extract the payload of a SOAP message rather than letting the SOAP node do it?

My requirement is to send soap header and body as MQ message. I dont want to strip my soap headers using soap extract node.
Or please let me know how can I do it by using soap node ?
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Fri Nov 21, 2014 11:44 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

visasimbu wrote:
My requirement is to send soap header and body as MQ message.


So why try and parse it into XMLNSC? Why not simply put the input bitstream into the MQ message as a BLOB?
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Converting SOAP domain to XMLNSC domain message
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.