| Author | 
		  Message
		 | 
		
		  | sweety176 | 
		  
		    
			  
				 Posted: Wed Sep 07, 2005 6:00 pm    Post subject: Transformation fail | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 24 Aug 2005 Posts: 30
  
  | 
		  
		    
			  
				Hi
 
I tried modifyinf the adapter. To test my code I used the same namespace both for input n output so i set the attributes and name spaces as it is.
 
I tried putting message at home.SO I copy-pasted the input XML in cmd.
 
Though the message reaches target Q it is not transformed.The input message is as it is.
 
Could someone help me identifying the cause.
 
Thanks in advance
 
Sweety | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | JT | 
		  
		    
			  
				 Posted: Thu Sep 08, 2005 5:48 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Padawan
 
 Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT. 
  | 
		  
		    
			  
				| Help us, to help you by posting the relevent code. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Meetraj | 
		  
		    
			  
				 Posted: Thu Sep 08, 2005 6:39 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Novice
 
 Joined: 02 Jul 2005 Posts: 18 Location: India. 
  | 
		  
		    
			  
				Hi,
 
     Send me the error which it displaying. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sweety176 | 
		  
		    
			  
				 Posted: Thu Sep 08, 2005 7:45 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 24 Aug 2005 Posts: 30
  
  | 
		  
		    
			  
				Hi JT 
 
Thanks for your patience and willingness to help me,I really need it.
 
My input XML is
   
	| Code: | 
   
  
	
 
<?xml version = "1.0" encoding = "UTF-8"?>
 
<SOAP-Env:Envelope  xmlns:hrq="http://xmlcoe.jpmorganchase.com/header/v1_3" xmlns:dqrq="http://xmlcoe.jpmorganchase.com/CHF/DocumentQueryRequest" xmlns:jpmc="http://xmlcoe.jpmorganchase.com/mismo/extensions" xmlns:SOAP-Env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 
xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/
 
http://xmlcoe.jpmorganchase.com:8000/CHF/DocumentQry/Schemas/DocumentQryRqSOAP.xsd">
 
<!--xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ DocumentQryRqSOAP.xsd">-->
 
   <SOAP-Env:Body>
 
      <dqrq:DocumentQryRqMsg>
 
         <hrq:HdrOrigRqRmmMsgGrp>
 
            <hrq:hdrRqFrmInstGrp>
 
               <hrq:hdrTmstmp>2005-01-01T13:20:00-05:00</hrq:hdrTmstmp>
 
               <hrq:hdrCIGrp>
 
                  <hrq:hdrClntId>HELOS</hrq:hdrClntId>
 
               </hrq:hdrCIGrp>
 
               <hrq:hdrMsgIdGrp>
 
                  <hrq:hdrUUId/>
 
               </hrq:hdrMsgIdGrp>
 
            </hrq:hdrRqFrmInstGrp>
 
            <hrq:hdrRqToServGrp>
 
               <hrq:hdrServPrvdBusId>RFS</hrq:hdrServPrvdBusId>
 
               <hrq:hdrServPrvdBusUntId>CHF</hrq:hdrServPrvdBusUntId>
 
               <hrq:hdrServNm>IMAGE</hrq:hdrServNm>
 
               <hrq:hdrServAction>QryDocRq</hrq:hdrServAction>
 
               <hrq:hdrServVer>1.0</hrq:hdrServVer>
 
            </hrq:hdrRqToServGrp>
 
            <hrq:hdrOrigFrmWhoGrp>
 
               <hrq:hdrBusUntId>RFS</hrq:hdrBusUntId>
 
               <hrq:hdrBusServUntId>CHF</hrq:hdrBusServUntId>
 
               <hrq:hdrUsrGrp>
 
               <hrq:hdrPtySysLogId>U542345</hrq:hdrPtySysLogId>
 
               </hrq:hdrUsrGrp>
 
            </hrq:hdrOrigFrmWhoGrp>
 
            <hrq:hdrActnRqstGrp>
 
                  <hrq:hdrRplyInd>N</hrq:hdrRplyInd>
 
            </hrq:hdrActnRqstGrp>
 
         </hrq:HdrOrigRqRmmMsgGrp>
 
         <dqrq:DOCUMENT_QUERY_REQUEST>
 
            <IMAGE>
 
               <ORIGINAL_LOAN LoanOriginationSystemLoanIdentifier="123456789"/>
 
               <EMBEDDED_FILE jpmc:EmbeddedDocumentIdentifier="1234567"/>
 
            </IMAGE>   
 
         </dqrq:DOCUMENT_QUERY_REQUEST>
 
      </dqrq:DocumentQryRqMsg>
 
   </SOAP-Env:Body>
 
</SOAP-Env:Envelope> | 
   
 
 
and output XML is
   
	| Code: | 
   
  
	
 
<?xml version="1.0" encoding="UTF-8"?>
 
<SOAP-Env:Envelope xmlns:hrq="http://xmlcoe.jpmorganchase.com/header/v1_3" xmlns:jpmc="http://xmlcoe.jpmorganchase.com/mismo/extensions" xmlns:SOAP-Env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dqrqfn="http://xmlcoe.jpmorganchase.com/CHF/DocumentQueryRequest/FN" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 
xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://xmlcoe.jpmorganchase.com:8000/CHF/DocumentQry/Schemas/DocumentQryRqFNSOAP.xsd">
 
<!--xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ DocumentQryRqFNSOAP.xsd">-->
 
   <SOAP-Env:Body>
 
      <dqrqfn:DocumentQryRqMsg>
 
         <hrq:HdrOrigRqRmmMsgGrp>
 
            <hrq:hdrRqFrmInstGrp>
 
               <hrq:hdrTmstmp>2005-01-01T13:20:00-05:00</hrq:hdrTmstmp>
 
               <hrq:hdrCIGrp>
 
                  <hrq:hdrClntId>HELOS</hrq:hdrClntId>
 
               </hrq:hdrCIGrp>
 
               <hrq:hdrMsgIdGrp>
 
                  <hrq:hdrUUId/>
 
               </hrq:hdrMsgIdGrp>
 
            </hrq:hdrRqFrmInstGrp>
 
            <hrq:hdrRqToServGrp>
 
               <hrq:hdrServPrvdBusId>RFS</hrq:hdrServPrvdBusId>
 
               <hrq:hdrServPrvdBusUntId>CHF</hrq:hdrServPrvdBusUntId>
 
               <hrq:hdrServNm>ImageSvc</hrq:hdrServNm>
 
               <hrq:hdrServAction>AddDoc</hrq:hdrServAction>
 
               <hrq:hdrServVer>1.0</hrq:hdrServVer>
 
            </hrq:hdrRqToServGrp>
 
            <hrq:hdrOrigFrmWhoGrp>
 
               <hrq:hdrBusUntId>RFS</hrq:hdrBusUntId>
 
               <hrq:hdrBusServUntId>CHF</hrq:hdrBusServUntId>
 
               <hrq:hdrUsrGrp>
 
                  <hrq:hdrPtySysLogId>U542345</hrq:hdrPtySysLogId>
 
               </hrq:hdrUsrGrp>
 
            </hrq:hdrOrigFrmWhoGrp>
 
         </hrq:HdrOrigRqRmmMsgGrp>
 
         <dqrqfn:DOCUMENT_QUERY_REQUEST>
 
            <CRITERIA>
 
               <PARAM_NAME>Doc_Number</PARAM_NAME>
 
               <DATA_TYPE>Number</DATA_TYPE>
 
               <OPERATION>equal</OPERATION>
 
               <VALUE1>1234123423</VALUE1>
 
               <VALUE2>Val2</VALUE2>
 
            </CRITERIA>
 
            <CRITERIA>
 
               <PARAM_NAME>First_Name</PARAM_NAME>
 
               <DATA_TYPE>String</DATA_TYPE>
 
               <OPERATION>Like</OPERATION>
 
               <VALUE1>Tejas</VALUE1>
 
               <VALUE2>Val2</VALUE2>
 
            </CRITERIA>
 
            <CRITERIA>
 
               <PARAM_NAME>Last_Name</PARAM_NAME>
 
               <DATA_TYPE>String</DATA_TYPE>
 
               <OPERATION>Like</OPERATION>
 
               <VALUE1>Shah</VALUE1>
 
               <VALUE2>Val2</VALUE2>
 
            </CRITERIA>
 
            <CRITERIA>
 
               <PARAM_NAME>Soc_Sec_Number</PARAM_NAME>
 
               <DATA_TYPE>Number</DATA_TYPE>
 
               <OPERATION>between</OPERATION>
 
               <VALUE1>30230303</VALUE1>
 
               <VALUE2>2334567</VALUE2>
 
            </CRITERIA>
 
            <CRITERIA>
 
               <PARAM_NAME>LOS_Record_Number</PARAM_NAME>
 
               <DATA_TYPE>String</DATA_TYPE>
 
               <OPERATION>Like</OPERATION>
 
               <VALUE1>JPMC2343356</VALUE1>
 
               <VALUE2>Val2</VALUE2>
 
            </CRITERIA>
 
            <CRITERIA>
 
               <PARAM_NAME>Svc_Loan_Number</PARAM_NAME>
 
               <DATA_TYPE>String</DATA_TYPE>
 
               <OPERATION>Like</OPERATION>
 
               <VALUE1>1234566778</VALUE1>
 
               <VALUE2>Val2</VALUE2>
 
            </CRITERIA>
 
            <CRITERIA>
 
               <PARAM_NAME>Document_Type</PARAM_NAME>
 
               <DATA_TYPE>String</DATA_TYPE>
 
               <OPERATION>Like</OPERATION>
 
               <VALUE1>w-2</VALUE1>
 
               <VALUE2>Val2</VALUE2>
 
            </CRITERIA>
 
            <CRITERIA>
 
               <PARAM_NAME>Document_Category</PARAM_NAME>
 
               <DATA_TYPE>String</DATA_TYPE>
 
               <OPERATION>Like</OPERATION>
 
               <VALUE1>Financial</VALUE1>
 
               <VALUE2>Val2</VALUE2>
 
            </CRITERIA>
 
            <CRITERIA>
 
               <PARAM_NAME>Sender_Fax_Number</PARAM_NAME>
 
               <DATA_TYPE>Number</DATA_TYPE>
 
               <OPERATION>equal</OPERATION>
 
               <VALUE1>123412342</VALUE1>
 
               <VALUE2>Val2</VALUE2>
 
            </CRITERIA>
 
         </dqrqfn:DOCUMENT_QUERY_REQUEST>
 
      </dqrqfn:DocumentQryRqMsg>
 
   </SOAP-Env:Body>
 
</SOAP-Env:Envelope>
 
 | 
   
 
 
 
Now when there is ORIGINAL_LOAN in input XML then a CRITERIA block should be created in o/p with PARAM_NAMe LOS_Record_Number and VALUE1 value of the attribute of ORIGINAL_LOAN.
 
Same when there is EMBEDDED_FILE. PARAM_NAME should be set to F_DOCNUMBER.
 
 
I wrote the following ESQL code in compute node but doesnt seem to work.
 
I assigned the namespace dqrqfn in o/p to dqrq in input. I think thats one of the problems.to check my code I put the namespace in o/p dqrq instead of dqrqfn then the message doesnt transform et all.
 
I am really unable to identify the problem or solve it.
 
Kindly help me
 
Regards
 
Sweety | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | JT | 
		  
		    
			  
				 Posted: Thu Sep 08, 2005 7:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Padawan
 
 Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT. 
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	I wrote the following ESQL code in compute node but doesnt seem to work. 
 
I assigned the namespace dqrqfn in o/p to dqrq in input. I think thats one of the problems.to check my code I put the namespace in o/p dqrq instead of dqrqfn then the message doesnt transform et all. 
 
I am really unable to identify the problem or solve it.  | 
   
 
 
"Where's the beef ?" (popular phrase from an American hamburg commercial). | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sweety176 | 
		  
		    
			  
				 Posted: Thu Sep 08, 2005 8:17 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 24 Aug 2005 Posts: 30
  
  | 
		  
		    
			  
				ESQL COde
   
	| Code: | 
   
  
	
 
DECLARE C INTEGER;
 
SET C = CARDINALITY(InputRoot.*[]);
 
DECLARE I INTEGER;
 
SET I = 1;
 
WHILE I < C DO
 
   SET OutputRoot.*[I] = InputRoot.*[I];
 
   SET I=I+1;
 
END WHILE;
 
-- Enter SQL below this line.  SQL above this line might be regenerated, causing any modifications to be lost.
 
--map input declarations to output declarations
 
SET OutputRoot.XML.(XML.XmlDecl) = InputRoot.XML.(XML.XmlDecl);
 
 
CREATE FIELD OutputRoot.XML."SOAP-Env:Envelope";
 
--assign XML namaspaces and other attributes
 
 
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:hrq" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:hrq";
 
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:dqrqfn" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:dqrq"; 
 
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:jpmc" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:jpmc";
 
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:SOAP-Env" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:SOAP-Env";
 
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:xsi" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:xsi";
 
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xsi:schemaLocation" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xsi:schemaLocation";
 
 --Map input header to output header
 
CREATE FIELD 
 
OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrqfn:DocumentQryRqMsg"."hrq:HdrOrigRqRmmMsgGrp" FROM InputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."hrq:HdrOrigRqRmmMsgGrp";
 
 
 
DECLARE cursor1 REFERENCE TO InputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST"."IMAGE"."ORIGINAL_LOAN".(XML.Attribute)LoanOriginationSystemLoanIdentifier;
 
DECLARE cursor2 REFERENCE TO InputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST"."IMAGE"."EMBEDDED_FILE".(XML.Attribute)"jpmc:EmbeddedDocumentIdentifier";
 
 
IF (
 
InputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".IMAGE.* = 'ORIGINAL_LOAN')
 
THEN
 
SET OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".CRITERIA."PARAM_NAME" = 'LOS_Record_Number';
 
SET OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".CRITERIA."VALUE1" = FIELDVALUE(cursor1);
 
SET OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".CRITERIA."DATA_TYPE" = 'STRING';
 
SET OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".CRITERIA."OPERATION" = 'String';
 
SET OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".CRITERIA."VALUE2" = NULL;
 
 
 
END IF;
 
 
IF (InputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".IMAGE.* = 'EMBEDDED_FILE') 
 
THEN
 
SET OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".CRITERIA."PARAM_NAME" = 'F_DOCNUMBER';
 
SET OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".CRITERIA."VALUE1" = FIELDVALUE(cursor2);
 
SET OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".CRITERIA."DATA_TYPE" = 'string';
 
SET OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".CRITERIA."OPERATION" = 'string';
 
SET OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentUpdRqMsg"."dqrqfn:DOCUMENT_QUERY_REQUEST".CRITERIA."VALUE2" = NULL;
 
END IF;
 
 
 
 
 | 
   
 
 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | JT | 
		  
		    
			  
				 Posted: Thu Sep 08, 2005 8:49 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Padawan
 
 Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT. 
  | 
		  
		    
			  
				
   
	| JeffLowrey, in your previous post on the topic, wrote: | 
   
  
	|  I think the problem is either that you are trying to use 2.1 with namespaces - which is poorly supported at best, or you are using the XML domain when you should obviously be using XMLNS (XML with NameSpaces). | 
   
 
 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sweety176 | 
		  
		    
			  
				 Posted: Fri Sep 09, 2005 11:12 am    Post subject: SOlved | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 24 Aug 2005 Posts: 30
  
  | 
		  
		    
			  
				Hi
 
I was able to solve the problem.My ESQL code is working now.
 
Thanks for all your help.
 
Regards
 
Sweety | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | recallsunny | 
		  
		    
			  
				 Posted: Fri Sep 09, 2005 12:16 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 15 Jun 2005 Posts: 163 Location: Massachusetts 
  | 
		  
		    
			  
				Ain't it sweet....
 
 
   | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |