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 » SOAP Header Problem unable to add to SOAP envelop to Body

Post new topic  Reply to topic
 SOAP Header Problem unable to add to SOAP envelop to Body « View previous topic :: View next topic » 
Author Message
raghug
PostPosted: Thu Apr 26, 2007 10:16 am    Post subject: SOAP Header Problem unable to add to SOAP envelop to Body Reply with quote

Acolyte

Joined: 19 Jul 2006
Posts: 60
Location: NJ

Hi All Please help me
SOAP Header Problem unable to add to SOAP envelop to Body(in put body)
I am trying to add SOAP envelop to Body (XML _input )

Here my Input

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <myproject:C3DocumentStoreNotification xmlns:cmheader="http://cmheader.contentmanager.wiit.ts.acbbank.net/" xmlns:myproject="http://body.myproject.retail.acbbank.net/">
- <cmheader:ContentManagerHeader>
  <cmheader:TopicInfo>C3/IC/iIC_CommLoan/301</cmheader:TopicInfo>
  <cmheader:ItemType>iIC_CommLoan</cmheader:ItemType>
  <cmheader:EventCode>301</cmheader:EventCode>
  <cmheader:EventTimeStamp>2004-06-21-10.37.33.139521</cmheader:EventTimeStamp>
  <cmheader:EventUserID>A243815</cmheader:EventUserID>
  <cmheader:ItemID>A1001001A05I26B01041A28277</cmheader:ItemID>
  <cmheader:VersionID>1</cmheader:VersionID>
  <cmheader:ExpirationDate>2007-06-21</cmheader:ExpirationDate>
  <cmheader:CreateTimeStamp>2004-06-21-10.37.33.139520</cmheader:CreateTimeStamp>
  <cmheader:CreateUserID>A243815</cmheader:CreateUserID>
  </cmheader:ContentManagerHeader>
- <myproject:LOBInfo>
  <myproject:Bank>001</myproject:Bank>
  <myproject:Obligor>1234567890</myproject:Obligor>
  <myproject:Obligation>1234567890</myproject:Obligation>
  <myproject:DocType>CNOTE</myproject:DocType>
  <myproject:DocStateCD>Active</myproject:DocStateCD>
  <myproject:BundleID>Something up to 50 characters long</myproject:BundleID>
  <myproject:GroupID>123</myproject:GroupID>
  <myproject:DealID>1234567890</myproject:DealID>
  <myproject:FacilityID>1234567890</myproject:FacilityID>
  <myproject:FacilityNum>1234567890</myproject:FacilityNum>
  <myproject:WorkType>Trailing</myproject:WorkType>
  <myproject:RescanID>A1001001A05I26B01041A28277</myproject:RescanID>
  <myproject:OCRLine>RPCI1XXXXXXXXXX001 CDCNOTEXXX</myproject:OCRLine>
  <myproject:BegImgAdd>07121A001234</myproject:BegImgAdd>
  <myproject:EndImgAdd>07121A001236</myproject:EndImgAdd>
<myproject:Cap_Rsrch_Data>LOP_SS_SGD-D3-20060905-172446-3986-0-816</myproject:Cap_Rsrch_Data>
  </myproject:LOBInfo>
  </myproject:C3DocumentStoreNotification>


OUTPUT


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Header>
- <p7:acbbankRequestHeader xmlns:p7="http://v1x1.requestheader.wbxml.ts.acbabnk.net/">
  <p7:SendingTimeStamp>2007-04-17T13:03:55.054Z</p7:SendingTimeStamp>
  <p7:DestinationSystem>TF</p7:DestinationSystem>
  <p7:OriginationSystem>JS</p7:OriginationSystem>
  <p7:MessageID>940a133e58 75c8b1:4722d65f:111ffa4576a:-7ffe</p7:MessageID>
  </p7:WachoviaRequestHeader>
  </soapenv:Header>
- <soapenv:Body>
- <myproject:C3DocumentStoreNotification xmlns:cmheader="http://cmheader.contentmanager.riit.ts.acbbank.net/" xmlns:myproject="http://body.myproject.retail.acbbank.net/">
- <cmheader:ContentManagerHeader>
  <cmheader:TopicInfo>C7/PC/iIB_CommLoan/301</cmheader:TopicInfo>
  <cmheader:ItemType>i1B_CommLoan</cmheader:ItemType>
  <cmheader:EventCode>301</cmheader:EventCode>
  <cmheader:EventTimeStamp>2004-06-21-10.37.33.139521</cmheader:EventTimeStamp>
  <cmheader:EventUserID>A243815</cmheader:EventUserID>
  <cmheader:ItemID>A1001001A05I26B01041A28277</cmheader:ItemID>
  <cmheader:VersionID>1</cmheader:VersionID>
  <cmheader:ExpirationDate>2007-06-21</cmheader:ExpirationDate>
  <cmheader:CreateTimeStamp>2004-06-21-10.37.33.139520</cmheader:CreateTimeStamp>
  <cmheader:CreateUserID>A243815</cmheader:CreateUserID>
  </cmheader:ContentManagerHeader>
- <myproject:LOBInfo>
  <myproject:Bank>001</myproject:Bank>
  <myproject:Obligor>1234567890</myproject:Obligor>
  <myproject:Obligation>1234567890</myproject:Obligation>
  <myproject:DocType>CNOTE</myproject:DocType>
  <myproject:DocStateCD>Active</myproject:DocStateCD>
  <myproject:BundleID>Something up to 50 characters long</myproject:BundleID>
  <myproject:GroupID>123</myproject:GroupID>
  <myproject:DealID>1234567890</myproject:DealID>
  <myproject:FacilityID>1234567890</myproject:FacilityID>
  <myproject:FacilityNum>1234567890</myproject:FacilityNum>
  <myproject:WorkType>Trailing</myproject:WorkType>
  <myproject:RescanID>A1001001A05I26B01041A28277</myproject:RescanID>
  <myproject:OCRLine>RPCI1XXXXXXXXXX001 CDCNOTEXXX</myproject:OCRLine>
  <myproject:BegImgAdd>07121A001234</myproject:BegImgAdd>
  <myproject:EndImgAdd>07121A001236</myproject:EndImgAdd>
  <myproject:Cap_Rsrch_Data>LOP_SS_SGD-D3-20060905-172446-3986-0-816</myproject:Cap_Rsrch_Data>
  </myproject:LOBInfo>
  </myproject:C3DocumentStoreNotification>
  </soapenv:Body>
  </soapenv:Envelope>

In My Message Flow I used like below
MQInput-> SOAP_EXTRACT_node->Compute node ->trace_node->Soapenvelp->Mqoutput

DECLARE soapenc NAMESPACE 'http://schemas.xmlsoap.org/soap/encoding/';
DECLARE soapenv NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';

...

SET OutputRoot.XMLNS.soapenv:Envelope.(XML.NamespaceDecl)xmlns:soapenv = soapenv;
SET OutputRoot.XMLNS.soapenv:Envelope.(XML.NamespaceDecl)xmlns:soapenc = soapenc;

Please give me ESQl.Please help me

Thanks


 


Last edited by raghug on Fri Apr 27, 2007 5:22 am; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger
marcin.kasinski
PostPosted: Thu Apr 26, 2007 10:33 am    Post subject: Re: SOAP Header Problem unable to add to SOAP envelop to Bod Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Here you have little example (without testing)

Code:
DECLARE mySoapNS NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE q0 NAMESPACE 'http://www.server.com';

   
-- Add an XML declaration to the message
SET OutputRoot.XMLNS.(XML.XmlDecl) = '';
SET OutputRoot.XMLNS.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XMLNS.(XML.XmlDecl).(XML.Encoding) = 'UTF-8';
-- Create the SOAP Envelope
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:"SOAP-ENV" =
'http://schemas.xmlsoap.org/soap/envelope/' ;
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:xsi =
'http://www.w3.org/2001/XMLSchema-instance' ;
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:q0 =
q0 ;
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:xsd =
   'http://www.w3.org/2001/XMLSchema' ;
 

SET OutputRoot.XMLNS.soapenv:Envelope.soapenv:Body = InputRoot.XMLNS;

_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
raghug
PostPosted: Thu Apr 26, 2007 12:04 pm    Post subject: Please giveme an Ideato creat msg_flow using only SOAPnodes Reply with quote

Acolyte

Joined: 19 Jul 2006
Posts: 60
Location: NJ

Hey
your Code is good Thanks for u r replay .Please give me Idea creat flow using SOAP nodes only


Thanks for you help
Back to top
View user's profile Send private message Yahoo Messenger
marcin.kasinski
PostPosted: Thu Apr 26, 2007 12:07 pm    Post subject: Re: Please giveme an Ideato creat msg_flow using only SOAPno Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

raghug wrote:
Hey
your Code is good Thanks for u r replay .Please give me Idea creat flow using SOAP nodes only

Thanks for you help


What do you mean ?

The simplest HTTP scenario is :

HTTPInput -> Compute -> HTTPReply
_________________
Marcin


Last edited by marcin.kasinski on Thu Apr 26, 2007 12:50 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
ashoon
PostPosted: Thu Apr 26, 2007 12:36 pm    Post subject: Reply with quote

Master

Joined: 26 Oct 2004
Posts: 235

hmmm... looking at your input message and what you want for your output I think you need your flow to be like this...

MQInput-> Compute node ->trace_node->Soapenvelp->Mqoutput

The compute node has to create the information for the SOAP header... the Soapenvelp will merge the header and body to form your output...

so looking at the ia9o pdf you need to create this in some tree structure placeholder... default is $LocalEnvironment/SOAP/Envelope

<?xml version="1.0"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://ws3.st.mqsi.ibm.com/App/DocLiteral1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<p7:acbbankRequestHeader xmlns:p7="http://v1x1.requestheader.wbxml.ts.acbabnk.net/">
<p7:SendingTimeStamp>2007-04-17T13:03:55.054Z</p7:SendingTimeStamp>
<p7:DestinationSystem>TF</p7:DestinationSystem>
<p7:OriginationSystem>JS</p7:OriginationSystem>
<p7:MessageID>940a133e58 75c8b1:4722d65f:111ffa4576a:-7ffe</p7:MessageID>
</p7:WachoviaRequestHeader>
</soapenv:Header>
</soapenv:Envelope>

HTH
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 » SOAP Header Problem unable to add to SOAP envelop to Body
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.