Edit XML message from BI
Hi,
We have some errored XML messages, we need to correct these messages in SXMB_MONI and restart from BI. We are on BI 7 SP15.
I understand that SP19 has enabled this functionality in the editor. However we are on SP15 and we have to urgently fix the issue.
Any ideas ? Is there SAP note?
thank you
Umang
One option,
Use Runtime work bench and manually send the message from the runtime work bench with the corrected payload.
RWB --> Integration Engine --> Test Message.
Fill the sender details as is in the Receiver Determination of your interface, give the correct payload, user id and password and message should go through.
But like mentioned, if in production, make sure you know what you are doing and more importantly are authorized to do so.
Regards
Bhavesh
Similar Messages
-
We are currently receiving XML messages from a business partner that goes
through a transformation/parser first to make sure the xml document was
in MISMO form (Mortgage Industry Standard Message Organization). Then the
document is stored in a clob in a table. The document is stored Without
the tags. We are storing these XML messages into a CLOB datatype for
later processing. I want to read the CLOB and then parse out the
individual fields to store into a table. What is the best way to
accomplish this in PL/SQL? Here is one sample record:
<MORTGAGEDATA>
<APPLICATION LoanPurposeType="OTHER">
<LenderCaseIdentifier>3631681</LenderCaseIdentifier>
<LendersBranchIdentifier>2966448</LendersBranchIdentifier>
</APPLICATION>
<PROPERTY PropertyUsageType="Primary">
<Address1>1335 test</Address1>
<City>las cruces</City>
<State>NM</State>
<PostalCode>88001</PostalCode>
</PROPERTY>
<SUBJECTPROPERTY>
<SubjectPropertyEstimatedValueAmount>69000</SubjectPropertyEstimatedValueAmount>
</SUBJECTPROPERTY>
<BORROWERRECONCILEDLIABILITY LiabilityType="HelocSubjectProperty">
<LiabilityUnpaidBalanceAmount>0</LiabilityUnpaidBalanceAmount>
<LiabilityMonthlyPaymentAmount>0</LiabilityMonthlyPaymentAmount>
</BORROWERRECONCILEDLIABILITY>
<BORROWERRECONCILEDLIABILITY LiabilityType="MortgageLoanSubjectProperty">
<LiabilityUnpaidBalanceAmount>0</LiabilityUnpaidBalanceAmount>
</BORROWERRECONCILEDLIABILITY>
<BORROWER>
<FirstName>scooby</FirstName>
<MiddleName/>
<LastName>doo</LastName>
<NameSuffix/>
<MothersMaidenName>velma</MothersMaidenName>
</BORROWER>
</MORTGAGEDATA>
NOTE: I have tried to use DBMS_XMLQUERY and it comes out like this using a
stored procedure called printclob: When I do this the data is put into
one field called xml_app_msg. The problem is how do I reference the
individual fields like FirstName and so on to store in another table? Can
I apply a stylesheet and if so, how?
Or do I create an object type called xml_app_msg with the fields lastname
and so on?
-- The table is raw_xml_msg_tbl and the field with the stored infomation is
xml_app_msg.
set serveroutput on size 50000
declare
queryCtx DBMS_XMLquery.ctxType;
result CLOB;
begin
queryCtx := DBMS_XMLQuery.newContext('select xml_app_msg from raw_xml_msg_tbl where app_id = :APP_ID');
-- DBMS_XMLQuery.clearBindValue(queryCtx);
DBMS_XMLQuery.setBindValue(queryCtx,'APP_ID','LT1001');
-- get the result..!
result := DBMS_XMLQuery.getXML(queryCtx);
-- Now you can use the result to put it in tables/send as messages..
printClobOut(result);
DBMS_XMLQuery.closeContext(queryCtx); -- you must close the query handle..
end;
OUTPUT:
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<XML_APP_MSG><MORTGAGEDATA>
<BORROWER>
<FirstName>Falls</FirstName>
<MiddleName/>
<LastName>Water</LastName>
<NameSuffix/>
<SSN>123-45-6789</SSN>
</BORROWER>
</MORTGAGEDATA>
</XML_APP_MSG>
</ROW>
</ROWSET>
nullI parse the XML doc into a domdocument and then loop through using xpath.valueof to pull the individual values from the nodes and then build a generic insert. It works quite well with a small number of columns. I'm not sure how it would work with a lot of columns. You can get code examples from Steve Muench's book "Developing Oracle XML Applications".
-
How to get the XML messages from JMS Queue in BPM
I have one requirement in my application.we are sending XML messages to the JMS Queue.How to get the XML messages from JMS Queue and how to Extract the details from XMl.
can you please send me the code to get the XML messages from the JMS Queue.
Thank you,Hi,
Sure others will have some other ideas, but here's what I typically do to get the XML from a JMS queue. Inside the Global Automatic that pops the messages off the queue you'd have logic similar to this:
artifactInfoNodes as Any[]
xmlObject as Fuego.Xml.XMLObject = XMLObject()
load xmlObject using xmlText = message.textValue
. . . Once you have this, it's a matter of deciding what you want to do with the message. Most times you'll parse the XML (using XPATH statemens), set argument variables and create a work item instance.
Hope this helps,
Dan -
I want to use ODI to read XML messages from JMS queue and then process it..
I want to use oracle ODI (Oracle Data Integrator) to read XML messages from JMS queue and then process it.. i also want to process and validate the data in it....
Could anyone please tell me the steps to achieve the same. I tried some ways which i got on OTN, but not able to implement it exactly...
As i m very new to ODI, it will be great if you provide detailed steps..
Thanks in advance for your help....Hi,
Were you able to do it? We are facing this same issue now and, despite the fact the docs say otherwise, it does not seem to be a trivial task.
TIA,
Tedi -
How to remove XML messages from Integration Engine
Hi,
i had created file - XI -file scenario activated it and check messages using tcode SXMB_MONI .Error messages coming after every minute as i set polling intervals to 60 seconds .Now i had deleted related objects from IR and ID but still XML messages coming in ....please anyone can help to stop this scenario anyhow.Dear Jai ,
i had checked everything before this and even i have checked now and i had created that scenaio by my own userid and passwd. Checked sender interface, reciever interface in SXMB_MONI it's the same which i had given name to them . Even we people are surprised that after deleting all the things in IR and ID . i don't know exactly why it is coming but what i am guessing is that after activating the scenarios it might get executed from XI runtime cache and there is no dependency on IR and ID objects . so what i had done that i completely refreshed the XI Runtime Cache by using tcode SXI_CACHE but it's still not working that way also.
Message was edited by:
ashwin dhakne
Message was edited by:
ashwin dhakne -
Reading the XML message from Xi stored in XML format from a abap program.
Hi Gurus,
My requirement here is to read the data that will be coming from Xi from my custom abap program and updating 2 data base tables. The method is after the data mapping is done a class is generated in abap proxy in which a method is available. Inside the method i am writing the code for getting the Xi data stored as a payload message which can be seen in the transaction SXMB_MONI. My code is given below.
***begin code***
method ZII_PAYROLL_HEADER_IN~PAYROLL_HEADER_IN.
**** INSERT IMPLEMENTATION HERE **** ***
data: ln type i.
DATA: i_items TYPE TABLE OF ZPAYLOAD_WRAPPER_EMPLOYEE_REC3.
*DATA: wa_items type ZPAYLOAD_WRAPPER_EMPLOYEE_TAB5.
data: wa_items type ZPAYLOAD_WRAPPER_EMPLOYEE_REC3.
DATA:PERNR TYPE STRING.
*data: it_ZPAYLOAD_WRAPPER16 TYPE ZPAYLOAD_WRAPPER16.
I_ITEMS[] = INPUT-PAYLOAD_WRAPPER-BODY-XMLDOC-PAYROLL_PERIOD_OVERVIEW-EMPLOYEE_RECORD[].
*I_ITEMS = INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord.
describe table i_items[] lines ln.
endmethod.
**End code***
As per the logic the data stored in the XML message should be avaialble in INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord which i am assigning to a local internal table in the class.
But in my case there is no data coming in
INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord.
But i can see the data transffered from XI in the transaction SXMB_MONI->XML message->inbound message->payload.
Is there any way to read the data stored in the XML message in the transaction SXMB_MONI.
Also why the data is not coming in
INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord inside the class.
If there is any solution for this problem please post it.You can use function module SXMB_GET_MESSAGE_PAYLOAD.
Code snippet:
DATA: ls_mast TYPE sxmspmast,
ls_msgkey TYPE sxmsmkey,
lv_bin_xml TYPE xstring,
lv_str_xml TYPE string.
* select sxmspmast into ls_mast
ls_msgkey-msgid = ls_mast-msgguid.
ls_msgkey-pid = 'RECEIVER'.
CALL FUNCTION 'SXMB_GET_MESSAGE_PAYLOAD'
EXPORTING
im_msgkey = ls_msgkey
im_archive = ' '
im_version = ls_mast-vers
IMPORTING
ex_msg_bytes = lv_bin_xml
EXCEPTIONS
not_authorized = 1
no_message = 2
internal_error = 3
no_payload = 4
OTHERS = 5.
IF sy-subrc EQ 0.
lv_str_xml = cl_soap_moni_helper=>convert_xstring_to_string( xstring_in = lv_bin_xml ).
ENDIF. -
Need to Parse XML Message from my Message Driven Bean
Hi
I am using Message Driven Beans for listening to a Queue .
I am getting a Big XML file from my Queue in form of a TextMessage .
Now my task is to read / parse the XML Message .
Please tell me what is the appropiate parsing technique i need to use (Should i use SAX or DOM )
Please share your ideas .
Thank you .Generally you want to use SAX if the file is so big that loading it all in memory (as DOM does) will create memory problems.
Read about these methods on the wiki page for [JAXP.|http://en.wikipedia.org/wiki/Java_API_for_XML_Processing] -
Hi,
We have some errored XML messages, we need to correct these messages in SXMB_MONI and restart.
I understand that SP19 has enabled this functionality in the editor. However we are on SP15 and we have to urgently fix the issue.
Any ideas ? Is there SAP note?
thank you
UmangOne option,
Use Runtime work bench and manually send the message from the runtime work bench with the corrected payload.
RWB --> Integration Engine --> Test Message.
Fill the sender details as is in the Receiver Determination of your interface, give the correct payload, user id and password and message should go through.
But like mentioned, if in production, make sure you know what you are doing and more importantly are authorized to do so.
Regards
Bhavesh -
Trigger workflow by sending XML-Message from a servlet
Hi Developers,
I am currently evaluating WLPI and followed the tutorial provided by BEA. Now
I try to create a Workflow which is triggered by an XML-Message that is sent by
a servlet to WLPIs JMS. The 'Programming Client Applications' gave me a hint of
how to do it. But some parts are missing. Can you recommend a book or tutorial
which goes beyond the tutorial or give me a hint on that?
Regards,
[email protected]Looks like the problem is on the client side (MSXML) because I can flawlessly send half-megs XML files from a Servlet to a browser or a java.net.URL
-
Sending XML messages from server to client using POST method
Dear everyone,
I have a simple client server system - using Socket
class on the server side and URLConnection class on
the client side. The client sends requests to the
server in the form of an XML message using POST method.
The server processes the request and responds with
another XML message through the same connection.
That's the basic idea.
I have a few questions about headers and formats
especially with respect to POST.
1. In what format should the response messages from the
server be, for the client? Does the server need to
send the HTTP headers - for the POST type requests?
Is this correct?:
out.println("HTTP/1.1 200 My Server\r");
out.println("Content-type: text/xml\r");
out.println("Content-length: 1024\r");
out.println("\r");
out.println("My XML response goes here...");2. How do I read these headers and the actual message
in the client side? I figured my actual message was
immediately after the blank line. So I wrote
something like this:
String inMsg;
// loop until the blank line is through.
while (!"".equals(inMsg = reader.readLine()))
System.out.println(inMsg);
// get the actual message and process it.
inMsg = reader.readLine();
processMessage(inMsg);But the above did not work for me. Because I seem to
be receiving a blank line after each header! (I suppose
that was because of the "\r".) So what should I do?
3. What are the different headers I must pass from
server to the client to safeguard against every
possible problem?
4. What are the different exceptions I must be prepared
for this situation? How could I cope with them? For
example, time outs, IOExceptions, etc.
Thanks a lot! I appreciate all your help!
Georgehello,
1) if you want to develop a distributed application with XML messages, you can look in SOAP.
it's a solution to communicate objects distributed java (or COM or other) and it constructs XML flux to communicate between them.
2) if it can help you, I have developed a chat in TCP/IP and, to my mind, when you send datas it's only text, so the format isn't important, the important is your traitement behind.
examples :
a client method to send a message to the server :
public void send(String message)
fluxOut.println(message);
fluxOut.flush();
whith
connexionCourante = new Socket(lAdresServeur, noPort);
fluxOut= new PrintWriter( new OutputStreamWriter(connexionCourante.getOutputStream()) );
a server method in a thread to receive and print the message :
while(true)
if (laThread == null)
break;
texte = fluxIn.readLine();
System.out.println(texte);
that's all ! :)
If you want to use it for your XML communication, it could be a good idea to use a special message, for example "@end", to finish the server
ex :
while(true)
if (laThread == null)
break;
texte = fluxIn.readLine();
// to stop
if (texte.equals("@end"))
{break;}
processMessage(texte );
hope it will help you
David -
Xml message from XI to Siebel issue
Hi all,
I have an issue and I would need some help.
My scenario is R/3->BAPI->XI->Siebel and the communication channel between XI and Siebel it obviously http based.
The thing is that for some reason, Siebel it's not receiving the xml message XI sends complete, it is just receiving the 'header' of the xml message, this is:
<?xml version="1.0" encoding="UTF-8"?>
and not the rest of the content.
I have already check that the xml XI is sending is full and completly functional, and I have no clue where it's losing the info.
Any hint?Hi,
Are you using HTTP protocol get to receive the xml ? it may be possible that there are some length problem after submitting to siebel thru XI. just get confirmed about it. That is why it is getting truncated.
1 problem may be possible, can tou check the sender and receiver communication channel at RWB about the message payload they are sending. if everything is fine there then check the length of message received by siebel. Problem will be here sumwhere.
Regards
Aashish Sinha
PS ; reward points if helpful -
Validating an XML message from Outbound Interface.
Hi All,
I hav an xml generated from an outbound interface and is to be validated against a BC Schema that hav been specifically created from the sample XML docs.I'm strucked at how to validate the XML in XI against the xsd file. Can anyone pls help me out in this regard.It's a bit urgent.Hi Anil,
When you create a dataType by yourself, then XI generates the XSD.
Instead, you could create the dataType by importing a XSD. Two ways:
1. While creating a new dataType, Goto Tools->'Import XSD' and select your XSD file.
2. You can import your XSD as 'External Definitions'
In these 2 cases, the dataType will be as per your XSD. Then use this dataType for receiving the data into XI.
XI validates against that dataType XSD, which is your XSD.
Hope this helps!
regards,
Pops V -
Selecting xml-messages from ORABPEL-schema via SQL
Hi,
i want to select xml documents via SQL from the ORABPEL schema.
Can anybody help, how to do this?
There is the table xml_document, which has the columns:
DOCKEY
DOMAIN_REF
BIN_CSIZE
BIN_USIZE
BIN
MODIFY_DATE
BIN_FORMAT
Bin is of type blob...."Installation Monkey", did you ever find a solution or sample code to access and decipher the Audit_trail.LOG contents through a query or using SQL lob calls?
I have looked all over, tried decoding the hex code (into a second layer of gibberish), and found nothing other than pointers to the API bpels.
Thank you for any information. -
Editing XML documents from iFS WebUI
When I click on an XML document within the iFS WebUI, it opens the file and shows it to me within Internet Explorer.
I want the document to be opened on my workstation with Arbortext Epic Editor, but IE keeps trying to display it.
Has anyone had a problem like this? I don't want Internet Explorer to open the document, but what the XML file is associated with within Windows...
I have tried changing the MIME type for XML documents within JWS from default to application/octet-stream in an attempt to force IE to pass it to the operating system... but it didn't work.. unless I change the wrong mime.properties file...
Anyone have a solution?Did you change your settings in IE for that mimetype ?
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by David Thomas ([email protected]):
When I click on an XML document within the iFS WebUI, it opens the file and shows it to me within Internet Explorer.
I want the document to be opened on my workstation with Arbortext Epic Editor, but IE keeps trying to display it.
Has anyone had a problem like this? I don't want Internet Explorer to open the document, but what the XML file is associated with within Windows...
I have tried changing the MIME type for XML documents within JWS from default to application/octet-stream in an attempt to force IE to pass it to the operating system... but it didn't work.. unless I change the wrong mime.properties file...
Anyone have a solution?<HR></BLOCKQUOTE>
null -
Editing error message from server
Hai all,
i want to know whether it is possible to change the style of the error message. style means Font, Size, Color of the text that are validated in server and sent to browser using
FacesMessage message=new FacesMessage(......);With h:messages you cannot set individual message style classes. If you need that much control, you probably should be using h:message anyways.
What you can do with h:messages, is set a different style class for different error severities. Use the errorClass, fatalClass, warnClass, and infoClass attributes.
So say you were to throw a validation error in one of your custom validation classes. You could set the message severity to something reasonable, and use the appropriate attribute on h:messages to change the style class for it.
CowKing
Maybe you are looking for
-
Norton toolbar incompatible with Firefox 4. I need to use IE or Safari for my browser since I upgraded. I would prefer to use Firefox but to many things are no longer compatible.
-
Reciever comm channel configuration for ftp
Hi all I have configured the comm ch in reciever nfs content conversion parameters Name.fieldNames FIRSTNAME,LASTNAME,SALARY Name.fieldSeparator , Name.processConfiguraion FromConfiguration Name.endSeparator 'nl' sen
-
Recently, I accidentally closed the lid of my MBP before it shutdown completely. Usually, this would cause a problem on the startup the next time where I would push the power button and the only thing happening is the light on the latch button would
-
How to install animated themes in iphone 4s - S/w Upgraded to iOS6 now
Hi Apple team, Is there any way of downloading installing new themes (Animated themes) in iphone 4s. If so, can some one please recommend a good animated theme apps. Thanks
-
Migrazione da snow leopard a lion
Salve, qualcuno sa dirmi se passando dal snow leopard (Mac OS X-versione 10.6.8) a OSX Lion si possono perdere i propri software e lavori (ad esempio Suite di Adobe) e la cartella documenti, download etc etc? quale la procedura da seguire per non per