Extracting the tag value sent from PCo
Hi,
Can anybody explain how to extract the tag value hidden in a PCo notification, which is sent to a BLS transaction as an XML parameter. Appreciate it.
Chanti.
Guess that document only shows how to setup the communication between PCo and MII.
Anyway I was able to extract the values once the notification is received into the BLS.
Never mind.
Chanti.
Similar Messages
-
How to read the tag values sent by PCo to MII transaction
Hi everybody,
I have an Agent created inside PCo and its listening to a data server. I have also created a notification object which triggers my MII Transaction (after certain condition is getting fulfilled).
Now, I want to pass certain values from PCo to MII using the notification object. For this I have tried 2 options:
1. I defined one input parameter in transaction of type 'XML'. But this did not work. When I used 'Tracer' to check the received values, it showed empty.
2. Since XML variable did not work, I tried with 'String' variable. It worked but the entire input data was in 'String' format.
Actually I used XML_Saver to save the string and given filename as '.xml'. When I opened that xml file, it was looking like this:
<<unable to write XML here>>
Considering the above 2nd option, how can I extract the particular 'Tag' values from XML string. Since the string is not in the format of 'Rowset/Row/Row', I cannot specifically assign/map those tag values to any other variable inside MII transaction.
===========Hi, I was trying to post the xml string. It was not possible yesterday (because, SDN editor has converted xml part into some irregular string).
Now, I am trying to post the string by removing the special characters. Please try to understand it.
Now, my question is how to retrieve the CDATA value 5599999999 using xpath. Please help.
NotificationMessage
Body
Values
Expression1 type xsd string
CDATA 5599999999
/Expression1
/Values
/Body
Faults /
/NotificationMessage -
How to extract the date value of IBOR date="12/12/2009"
I have the following query, but do not get the date value out:
WITH ibors AS (
SELECT xmltype('<?xml version="1.0" encoding="utf-8"?>
<IBOR date="12/12/2009">
<LIBOR currency="USD">
<OneYear>1.38875</OneYear>
</LIBOR>
</IBOR>
') ibor_xml
FROM dual
SELECT i.ibor_date, i.ibor_oneyear
FROM ibors,
XMLTABLE(
'//IBOR'
PASSING ibors.ibor_xml
COLUMNS ibor_date VARCHAR2(20) PATH '/IBOR/date',
ibor_oneyear VARCHAR2(20) PATH '/IBOR/LIBOR/OneYear'
) i;
How to extract the date value of <IBOR date="12/12/2009">?Hi,
The date is an attribute of element IBOR. So you must use "@date" in the xpath expression :
WITH ibors AS (
SELECT xmltype('<?xml version="1.0" encoding="utf-8"?>
<IBOR date="12/12/2009">
<LIBOR currency="USD">
<OneYear>1.38875</OneYear>
</LIBOR>
</IBOR>
') ibor_xml
FROM dual
SELECT i.ibor_date, i.ibor_oneyear
FROM ibors,
XMLTABLE(
'//IBOR'
PASSING ibors.ibor_xml
COLUMNS
ibor_date VARCHAR2(20) PATH '/IBOR/@date',
ibor_oneyear VARCHAR2(20) PATH '/IBOR/LIBOR/OneYear'
) i; -
How to extract the license plate region from the image of cars
HI, I want to extract the license plate region from the image of cars with vision assistant. I try to adjust the threshold value, remove small objects. But i still cannot get the perfect license plate region. I have attached 4 images that i am working now. I hope someone can help me to extract that region. Really thanks.
Attachments:
IMG_2029.JPG 150 KB
IMG_2031.JPG 155 KB
IMG_2089.JPG 130 KBHi, I have attached my extrated images.. Please check them...
Attachments:
35.PNG 17 KB
36.PNG 12 KB
37.PNG 13 KB -
HTML Tags. Not able to store all the tag value
Hi Guys,
I am not able to Store the tag values with the program below. When it goes to read the second TAG the first TAG value is null or lost.
<html>
<head>
<META NAME="name1" CONTENT="content1">
<META NAME="name2" CONTENT="content2">
<META NAME="name3" CONTENT="content3">
<META NAME="name4" CONTENT="content4">
</head>
<body>
Hello world.
</body></html>
import javax.swing.text.html.parser.*;
import javax.swing.text.html.*;
import javax.swing.text.*;
import java.io.*;
public class ParseTest extends HTMLEditorKit.ParserCallback {
public void handleText(char[] data, int pos){
System.out.println(new String(data));
public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos){
System.out.println("start: " + t);
public void handleEndTag(HTML.Tag t, int pos){
System.out.println("end: " + t);
public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos){
if (t == HTML.Tag.META){
String name1=(String)a.getAttribute(HTML.Attribute.NAME);
if (name1 != null){
System.out.println("META name1: " + name1);
String content1 = (String)a.getAttribute(HTML.Attribute.CONTENT);
if (content1 != null){
System.out.println("META content1: " + content1);
public static void main(String argv[]) {
try {
Reader r = new FileReader("test.html");
ParserDelegator parser = new ParserDelegator();
HTMLEditorKit.ParserCallback callback = new ParseTest();
parser.parse(r, callback, false);
} catch (IOException e) {
e.printStackTrace();
Thanks for your HElp.Hi,
it took me some time to understand what the code should do.
First of all please let me say, that wiring trough the error cluster is immanent for debugging. One problem I see is that the refnum from the document element is zero, so that all other calls for childs are failing. You will only notice this by debugging or execution highlighting (see James hint). You will also see a hint for a problem in this region of the code when you look at your indicator loadXml. This once was always False.
I have changed two things:
LoadXml.vi -> Read from Text File instead of binary
Main.vi -> Using the read text for input of the LoadXml invoke method and not the pretty printed one.
Now LoadXml performs the action and your 2D array is filling in some stuff. My advice would be to carefully debug your code and look, where references get lost and where errors occur.
Good Luck
Tyler
Certified LabVIEW Architect -
Extracting the Attributes values of an XML Element
Dear Forum Members
Please tell me any XML Function which is used to extract the Attribute value of an XML Element.
Given below
<BRKCD_STREDSWTINVIN_C Key="6708">
is an Element With some Key value.
I want to have that Key value.
Using Extract and Extractvalue I am not able to get the Attribute value.
Is there any way..
Regards
Madhu KYour xml is not really complete ;), but this should get you started:
michaels> with t as
(select xmltype('<BRKCD_STREDSWTINVIN_C Key="6708"></BRKCD_STREDSWTINVIN_C>') xml from dual)
select d.xml, d.xml.extract('//BRKCD_STREDSWTINVIN_C/@Key') key
from t d
XML KEY
<BRKCD_STREDSWTINVIN_C Key="6708"></BRKCD_STREDSWTINVIN_C> 6708 -
How do I get rid of the auto signature "sent from my iPhone" when I create a new message?
how do I get rid of the auto signature "sent from my iPhone" when I create a new message?
Settings -> Mail -> Signature and edit it to whatever you'd like.
-
How to extract the actual XML document from soap message?
My problem is " how to extract the actual XML document from soap message? "
i just want to extract the attachment i.e. (pure XML document without any soap header or envolope).
i could be ver thank full if u could solve my problem.
[email protected]Hi,
This is some skeleton code for extracting an attachment from a SOAPMessage.
import javax.activation.DataHandler.;
import javax.xml.soap.*;
import javax.xml.message.*;
Iterator allAttachments = message.getAttachments();
AttachmentPart ap1 = null;
while(allAttachments.hasNext()){
ap1 = (AttachmentPart)allAttachments.next();
//Check that the attachment is correct one. By looking at its mime headers
//Convert the attachment part into its DOM representation:
if(ap1.getContentType() == "text/xml"){
//Use the activation dataHandler class to extract the content, then create a StreamSource from
//the content.
DataHandler attachmentContent = ap1.getDataHandler();
StreamSource attachmentStream = new StreamSource(attachmentContent.getInputStream());
DOMResult domAttachment = getDOMResult(attachmentStream);
domAttachment holds an xml representation of the attachment.
Hope this helps. -
How to extract the date n time from images
can anybody help me...what function/ method that i can use to extract the date an time from images
thanksHi norazanita,
Please give clear idea what you want so one can proceed.
And if i am not wrong and get you correctly than i think you need to read about OCR for JAVA.
Regards,
Joshi Shirin. -
How can you start the tag config editor from a vi or when labview starts?
how can you start the tag config editor from a vi or when labview starts?
Hi,
There is a VI called "dsc_TagEditorLauncher.vi" under "C:\Program Files\National Instruments\LabVIEW 7.1\project\lvdsc" folder that can be used to launch the TCE programmatically. I hope this helps.
Best Regards,
Remzi A.
Applications Engineering
National Instruments -
Sales order prod costing error and extracting the cost $ value
We are doing sales order product costing via custom program which internally calls FM CKKA_Costing_Process, CK_F_SD_ORDER_CALC and all other std processes and calculates the cost. In the event of error, the calculated dollar value is getting cleared. Is there any way we can find and extract the cost $ value in case of costing error?
Owen,
That's fine. Not worried about the error. But business needs the cost calculated with the error. Is there anyway we can get the cost $ while error. VA02 costing returns error too, but we have the cost updated.
Regards
Gopi -
Someone sent me a recurring calendar appointment to my IPhone 4. I accepted it but now I would like to delete it since I am no longer attending. The planner was sent from Outlook. I cannot hit "edit" and "delete" on the IPhone. How can I delete this?
Try reading this forum post for suggested solutions as a start.
http://discussions.apple.com/message/7606191#7606191 -
just received a suspicious email requesting information about my checking account. The email was sent from my mac email account. Was my email hacked and how do I fix it?
Sound like a pfishing email rather than your account being hacked. See http://support.apple.com/kb/HT4933.
-
I can't extract the msi and files from the 11.0.02.exe it is asking for a password!!!! Help
From where did you download the exe?
How exactly are you trying to extract it? -
where is the set value come from, can the value come from Servlet
create or replace
PACKAGE BODY TRIGGER_test as
function setStudentNum(sn in varchar2) return varchar2 as
Begin
staff_num := sn;
return ('Success');
Exception
When OTHERS then
return ('Error');
End setStudentNum;
function getStudentNum return varchar2 as
Begin
if (staff_num is not null) then
return (staff_num);
else
return ('undefine');
end if;
End getStudentNum;
end TRIGGER_test;Hjava wrote:
>i am assuming that the function trigger_test.setStudentNum() gets executed first which will initialize the staff_num variabl
when and how?
Some 'other' bit of code somewhere. How do we know, as we don't have your application/process code. There will be something somewhere that calls the setStudentName function, so that when the getStudentName function is called it can return a value. Values don't just magically appear.
The only time there may be some code that initializes a value (other than in the declaration of the variable itself) is in a package body execution section e.g.
SQL> create or replace PACKAGE TRIGGER_test as
2 function setStudentNum(sn in varchar2) return varchar2;
3 function getStudentNum return varchar2;
4 end TRIGGER_test;
5 /
Package created.
SQL> create or replace PACKAGE BODY TRIGGER_test as
2 staff_num varchar2(30);
3 function setStudentNum(sn in varchar2) return varchar2 as
4 Begin
5 staff_num := sn;
6 return ('Success');
7 End setStudentNum;
8
9 function getStudentNum return varchar2 as
10 Begin
11 return (staff_num);
12 End getStudentNum;
13 begin
14 staff_num := 'undefined';
15 end TRIGGER_test;
16 /
Package body created.
SQL> select trigger_test.getStudentNum() from dual;
TRIGGER_TEST.GETSTUDENTNUM()
undefined
SQL> select trigger_test.setStudentNum('1234') from dual;
TRIGGER_TEST.SETSTUDENTNUM('1234')
Success
SQL> select trigger_test.getStudentNum() from dual;
TRIGGER_TEST.GETSTUDENTNUM()
1234
As you can see, the first time the package is instantiated in memory (the first time we call any function in it), the package body execution section is called which sets the variable to "undefined" in this example, before the function itself is called to return what the value is.
Maybe you are looking for
-
Native SQL "Table does not exist in database"
Hi Developers, I'm doing a database connection to an Oracle db and trying to read data using native SQL - I keep getting the runtime error "table does not exist in database" on the statement Fetch Next Cursor. The following is the code snippet (I've
-
Export Control /Legal control: need user exit to customize
I have a situation where I want to determine the export control license for a sales order. SAP uses the function module RV_EXPORT_CONTROL to carry out the required check. The FM uses the country defined for the ship-to-party as the destination countr
-
What kind of cord do I buy to hook up my MacPro to my television monitor? And where does it plug in?
-
Oracle BI Answers Accessing Error
Hi while accessing to answers from oracle SH schema... Iam getting the error.. I can access with colums "Calendar Month Desc", "calendar Month Name", "Prod Category", "Amount Sold(000)" ... its fine... But when adding another column "Amount Sold(000)
-
Should i store my OCR in OCFS or RAW
Hi as general question should i store my OCR in OCFS or RAW ? how many OCR disks usually is the best , i have red we should multiplex and do 3 OCR , is the normal redundancy can give me 3 copy of OCR? Thanks for any contribution