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 » Important and urgent.

Post new topic  Reply to topic
 Important and urgent. « View previous topic :: View next topic » 
Author Message
mrgate
PostPosted: Mon Oct 08, 2007 9:21 am    Post subject: Important and urgent. Reply with quote

Centurion

Joined: 28 Feb 2007
Posts: 141
Location: India

Hello All,
I am working on message broker 6.0 with windows 2000 as platform.

I am working on a scenario where my flow includes:

mqinput node---->compute node------->mqoutput node.

now I am getting input from jtext adapter and it gives soap request message as input for my message flow. The compute node is used to insert data into database and the same input message was sent as output
to mqoutput node.

For the input I have used one Jtext connector and for the output I have used another Jtext connector. but for both connectors, I have used the same data handler which is nothing but passthrough data handler(custom data handler) so that file content can be given as string input. Here , as I am sending the same input as output, but in the target connector, I am getting different output.

Here you can see the input data,code for compute node and output data.

The soap request message input was:

<?xml version="1.0" encoding="utf-8" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<create xmlns="urn:MySoapServices">
<PurchaseOrder>
<BuyerDetails>
<Organization>University of Washington</Organization>
<Authorized_Person>Cease Wayne</Authorized_Person>
<Street>Savery Hall</Street>
<City>Seattle</City>
<State>Wa</State>
<Zip>98195</Zip>
<Phone>206-111-2345</Phone>
<Fax>206-111-2346</Fax>
<Email>hideki@u.washington.edu</Email>
</BuyerDetails>
<SupplierDetails>
<Organization>Thomas Industrial Network</Organization>
<Authorized_Person>Lowry Phillip</Authorized_Person>
<Street>5 Penn Plaza, 10th Floor</Street>
<City>New York</City>
<State>NY</State>
<Zip>10001</Zip>
<Phone>888-846-6638</Phone>
<Fax>212-629-1158</Fax>
</SupplierDetails>
<PurchaseOrderInformation>
<Order_Number>4556</Order_Number>
<Order_Delivery_Date>10-10-2006</Order_Delivery_Date>
<PO_Type>Finished</PO_Type>
<status>PO sent</status>
</PurchaseOrderInformation>
<Address>
<Shipping_Address>
<Organisation>University of Washington</Organisation>
<Authorized_Person>Cease Wayne</Authorized_Person>
<Street>Savery Hall</Street>
<City>Seattle</City>
<State>Wa</State>
<Zip>98195</Zip>
<Phone>206-111-2345</Phone>
<Fax>206-111-2346</Fax>
<Email>hideki@u.washington.edu</Email>
</Shipping_Address>
<Billing_Address>
<Organisation>University of Washington</Organisation>
<Authorized_Person>Cease Wayne</Authorized_Person>
<Street>Savery Hall</Street>
<City>Seattle</City>
<State>Wa</State>
<Zip>98195</Zip>
<Phone>206-111-2345</Phone>
<Fax>206-111-2346</Fax>
<Email>hideki@u.washington.edu</Email>
</Billing_Address>
</Address>
<Payment_Terms>
<Purchase_Order>
<PO_Number>456</PO_Number>
<Payment_Type>Bank</Payment_Type>
<Payment_Type_PO>
<Bank>
<BankName>Citibank</BankName>
<AccountNumber>654987456</AccountNumber>
<BranchCode>564</BranchCode>
</Bank>
<Credit_Card>
<Payment_Type_CC>VISA</Payment_Type_CC>
<CC_Number>1234 4567 7890 0123</CC_Number>
<CC_Expire_Date>10-12-2012</CC_Expire_Date>
</Credit_Card>
</Payment_Type_PO>
</Purchase_Order>
<Amount>1000 USD</Amount>
</Payment_Terms>
<Purchase_Items>
<Item>
<Part_Name>6 foot wide 5 foot high cabinet</Part_Name>
<Quantity>9</Quantity>
<Description>Cabinets of systems</Description>
</Item>
<Item>
<Part_Name>6 foot wide shelves</Part_Name>
<Quantity>6</Quantity>
<Description>Shelves for books</Description>
</Item>
</Purchase_Items>
</PurchaseOrder>
</create>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


code for compute node in main function is:

CALL CopyEntireMessage();
SET OutputRoot.MRM."version"='3.0.0';
SET OutputRoot.MRM."delta"=false;
SET OutputRoot.MRM."verb"='Create';

DECLARE sFileContent CHARACTER;
DECLARE Src NAMESPACE 'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/Source';
DECLARE Tgt NAMESPACE 'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/Target';
SET sFileContent = InputRoot.MRM.Src:FileContent;
INSERT INTO Database.ADMIN.AUDIT_MESSAGE (MESSAGE) VALUES (sFileContent);

Output Data:
&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envel
ope/&quot; SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding
/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xs
d=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
&lt;SOAP-ENV:Body&gt;
&lt;create xmlns=&quot;urn:MySoapServices&quot;&gt;
&lt;PurchaseOrder&gt;
&lt;BuyerDetails&gt;
&lt;Organization&gt;University of Washington&lt;
/Organization&gt;
&lt;Authorized_Person&gt;Cease Wayne&lt;/Authori
zed_Person&gt;
&lt;Street&gt;Savery Hall&lt;/Street&gt;
&lt;City&gt;Seattle&lt;/City&gt;
&lt;State&gt;Wa&lt;/State&gt;
&lt;Zip&gt;98195&lt;/Zip&gt;
&lt;Phone&gt;206-111-2345&lt;/Phone&gt;
&lt;Fax&gt;206-111-2346&lt;/Fax&gt;
&lt;Email&gt;hideki@u.washington.edu&lt;/Email&g
t;
&lt;/BuyerDetails&gt;
&lt;SupplierDetails&gt;
&lt;Organization&gt;Thomas Industrial Network&lt
;/Organization&gt;
&lt;Authorized_Person&gt;Lowry Phillip&lt;/Autho
rized_Person&gt;
&lt;Street&gt;5 Penn Plaza, 10th Floor&lt;/Stree
t&gt;
&lt;City&gt;New York&lt;/City&gt;
&lt;State&gt;NY&lt;/State&gt;
&lt;Zip&gt; 10001&lt;/Zip&gt;
&lt;Phone&gt;888-846-6638&lt;/Phone&gt;
&lt;Fax&gt;212-629-1158&lt;/Fax&gt;
&lt;/SupplierDetails&gt;
&lt;PurchaseOrderInformation&gt;
&lt;Order_Number&gt;4556&lt;/Order_Number&gt;
&lt;Order_Delivery_Date&gt;10-10-2006&lt;/Order_
Delivery_Date&gt;
&lt;PO_Type&gt;Finished&lt;/PO_Type&gt;
&lt;status&gt;PO sent&lt;/status&gt;
&lt;/PurchaseOrderInformation&gt;
&lt;Address&gt;
&lt;Shipping_Address&gt;
&lt;Organisation&gt;University of Washin
gton&lt;/Organisation&gt;
&lt;Authorized_Person&gt;Cease Wayne&lt;
/Authorized_Person&gt;
&lt;Street&gt;Savery Hall&lt;/Street&gt;

&lt;City&gt;Seattle&lt;/City&gt;
&lt;State&gt;Wa&lt;/State&gt;
&lt;Zip&gt;98195&lt;/Zip&gt;
&lt;Phone&gt;206-111-2345&lt;/Phone&gt;
&lt;Fax&gt;206-111-2346&lt;/Fax&gt;
&lt;Email&gt;hideki@u.washington.edu&lt;
/Email&gt;
&lt;/Shipping_Address&gt;
&lt;Billing_Address&gt;
&lt;Organisation&gt;University of Washin
gton&lt;/Organisation&gt;
&lt;Authorized_Person&gt;Cease Wayne&lt;
/Authorized_Person&gt;
&lt;Street&gt;Savery Hall&lt;/Street&gt;

&lt;City&gt;Seattle&lt;/City&gt;
&lt;State&gt;Wa&lt;/State&gt;
&lt;Zip&gt;98195&lt;/Zip&gt;
&lt;Phone&gt;206-111-2345&lt;/Phone&gt;
&lt;Fax&gt;206-111-2346&lt;/Fax&gt;
&lt;Email&gt;hideki@u.washington.edu&lt;
/Email&gt;
&lt;/Billing_Address&gt;
&lt;/Address&gt;
&lt;Payment_Terms&gt;
&lt;Purchase_Order&gt;
&lt;PO_Number&gt;456&lt;/PO_Number&gt;
&lt;Payment_Type&gt;Bank&lt;/Payment_Typ
e&gt;
&lt;Payment_Type_PO&gt;
&lt;Bank&gt;
&lt;BankName&gt;Citibank
&lt;/BankName&gt;
&lt;AccountNumber&gt;654
987456&lt;/AccountNumber&gt;
&lt;BranchCode&gt;564&lt
;/BranchCode&gt;
&lt;/Bank&gt;
&lt;Credit_Card&gt;
&lt;Payment_Type_CC&gt;V
ISA&lt;/Payment_Type_CC&gt;
&lt;CC_Number&gt;1234 45
67 7890 0123&lt;/CC_Number&gt;
&lt;CC_Expire_Date&gt;10
-12-2012&lt;/CC_Expire_Date&gt;
&lt;/Credit_Card&gt;
&lt;/Payment_Type_PO&gt;
&lt;/Purchase_Order&gt;
&lt;Amount&gt;1000 USD&lt;/Amount&gt;
&lt;/Payment_Terms&gt;
&lt;Purchase_Items&gt;
&lt;Item&gt;
&lt;Part_Name&gt;6 foot wide 5 foot high
cabinet&lt;/Part_Name&gt;
&lt;Quantity&gt;9&lt;/Quantity&gt;
&lt;Description&gt;Cabinets of systems&l
t;/Description&gt;
&lt;/Item&gt;
&lt;Item&gt;
&lt;Part_Name&gt;6 foot wide shelves&lt;
/Part_Name&gt;
&lt;Quantity&gt;6&lt;/Quantity&gt;
&lt;Description&gt;Shelves for books&lt;
/Description&gt;
&lt;/Item&gt;

&lt;/Purchase_Items&gt;
&lt;/PurchaseOrder&gt;
&lt;/create&gt;
&lt;/SOAP-ENV:Body&gt;
&lt;/SOAP-ENV:Envelope&gt;

can anyone give me the solution for this problem.
Back to top
View user's profile Send private message
vk
PostPosted: Mon Oct 08, 2007 12:05 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Hi mrgate,

Did you check the data that the adapter is writing to the queue? Is it an exact copy of the data present in the file? I think the custom data handler is replacing the '<' and '>' with '&lt;' and '&gt;'.

I use BLOB data handler support pac provided by IBM for reading file content as such using JText adapter. I never had any issues with reading XML messages.

Regards,
VK.
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 » Important and urgent.
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.