Fields of .xml file sent to Device Controller
Hi all,
Does anybody know how we can specify more fields in the .xml file that is sent to the device controller?
At this moment, when we do Comission Tag action, the .xml file only contains EPC data as we show you here below:
<?xml version="1.0" encoding="UTF-8" ?>
- <Command xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xsi:noNamespaceSchemaLocation="Command.xsd">
- <WriteTagData readerID="D_WRITER_02">
- <Item>
- <FieldList>
<Field name="EPC">311604295400000114000000</Field>
</FieldList>
</Item>
</WriteTagData>
</Command>
We would like to indicate in this .xml fields like:
DOCUMENT_NO, DOCUMENT_TYPE, EPC_TYPE, EPC_URN, EPC_URN_NO_HEADER, GTIN, PRODUCT, PRODUCT_DESCRIPTION.
How we can achieve this?
Thanks in advance.
Kind regards,
Xavier
Hi Mitesh,
Thank you for indicating us the documentation. It is indicated the different fields that can be included in the WriteTagData command with configuration and how to make it.
Thank you very much!!
Kind regards,
Xavier
Message was edited by: Xavier Ester Duxans
Similar Messages
-
How to Suppress Empty Field in XML File
My xml file sometimes has fields that are empty. No problem
in ie, but in Firefox the Spry tabbed panel displays the data as
"undefined".
Any suggestions would be helpful.
Thanks!You can check for it:
<span spry:if=" '{your_dataref}' !=
undefined">{your_dataref}</span>
You may have to put 'undefined' in single quotes. I can never
remember... -
Hi Friends,
I have a requirement where in I have to create an XML file using deep structure. Now some fields of the structure may have data and some fields may not. But the XML file generated should contain both blank fields as well as fields with data.
To create it, I am using:
g_ixml = cl_ixml=>create ( ).
m_document = g_ixml->create_document( ).
Then with the function modules, the XML file gets created.
SDIXML_DATA_TO_DOM
SDIXML_DOM_TO_XML
But the fields without values are not added in the XML file.
Please help .. It is very urgent ..
Rdgs,
Namita.Hi Tony,
We just released a new version 1.1.0 of XMLSQL utility which
takes care of empty tags. i.e. leaving out the tag would be the
same as having an empty <name></name> field for scalars.
Thx
Murali
Tony (guest) wrote:
: Hi:
: It seems to me that in xml file, if there is a blank field,
such
: as <name/> or <name></name>, then OracleXMLSave.insertXML
wound
: not work. I know that you may try use dummy values or if the
: field is blank, then leave the field out of the xml file. Any
: other work around? Is my claim that <name/> and <name></name>
: wound not work righ?
: Please help!
: Thanks.
: Tony
Oracle Technology Network
http://technet.oracle.com
null -
Exporting fields to XML file in SAP 4.6c
Hi
Has anyone been able to export data from SAP 4.6c into an XML file.
What are the options in 4.6c?
Any example code would be appreciated.
Many thanks
Danielhai sharan,
iam also facing the same problem of activating cl_ixml. if u received any coding regarding activating that class plz send me my mail id is [email protected]
anil. -
How to read elements in a xml file sent as a string
Hi,
I am new to BPEL and i am working on a requirement where i receive the XML message as a String from an AQ. And I am not able parse the xml to read the individual elements of it. Appreciate your help on this.
The (sample)input message from Q is which i am able to see in the BPEL console:
<BUGINFO_XML>
<XML_MESSAGE>
<?xml version="1.0"?>
<BUGINFO>
<SR_ID>3-29OU7OF</SR_ID>
<OBJECT_TYPE>UPDATE_PREBUG</OBJECT_TYPE>
<RESERVED_BUG_NUM>8221084</RESERVED_BUG_NUM>
<TYPE>Predefect Update</TYPE>
<AUDIENCE>INTERNAL</AUDIENCE>
<COMMENT>TEST activity by Sireesha</COMMENT>
</BUGINFO>
</XML_MESSAGE>
</BUGINFO_XML>
and the corresponding xsd file is:
<schema targetNamespace="http://xmlns.oracle.com/xdb/ORIONCC"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ORIONCC="http://xmlns.oracle.com/xdb/ORIONCC"
elementFormDefault="unqualified" attributeFormDefault="qualified">
<complexType name="BUGINFO_XML">
<sequence>
<element name="XML_MESSAGE" type="string" nillable="true" minOccurs="0"/>
</sequence>
</complexType>
<element name="BUGINFO_XML" type="ORIONCC:BUGINFO_XML" />
</schema>
i have created a variable(called VariableXML) of element type of the above xsd type({http://xmlns.oracle.com/xdb/ORIONCC}BUGINFO_XML) and using ora:parseEscapedXML method, i copied the input data to this variable and i can see the data copied fine to this variable, but after that i am not able to traverse to the individual element of it say i want the value of SR_ID which i am not able to get.
<VariableXML>
<BUGINFO_XML>
<SR_ID>3-29OU7OF</SR_ID>
<OBJECT_TYPE>UPDATE_PREBUG</OBJECT_TYPE>
<RESERVED_BUG_NUM>8221084</RESERVED_BUG_NUM>
<TYPE>Predefect Update</TYPE>
<AUDIENCE>INTERNAL</AUDIENCE>
<COMMENT>TEST activity by Sireesha</COMMENT>
</BUGINFO_XML>
</VariableXML>
When i see the structure of this variable in the Assign activity i can see only up to '/ns2:BUGINFO_XML/XML_MESSAGE' but not the individual elements.
Please let me know how can i parse this xml to read the elements of it.
I am using jdev 11.1.1.4 and weblogic 10.3
Thanks,
Sireesha
Edited by: user12217808 on Jul 27, 2012 7:10 AMThanks for replying Tarak,
I have taken the XML generated by VariableXML variable and generated a XSD out of it and that looks like below.
<?xml version="1.0" encoding="windows-1252" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org"
targetNamespace="http://www.example.org"
elementFormDefault="qualified">
<xsd:element name="BUGINFO_XML">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="SR_ID" type="xsd:string"/>
<xsd:element name="OBJECT_TYPE" type="xsd:string"/>
<xsd:element name="RESERVED_BUG_NUM" type="xsd:integer"/>
<xsd:element name="TYPE" type="xsd:string"/>
<xsd:element name="AUDIENCE" type="xsd:string"/>
<xsd:element name="COMMENT" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Then I have created a variable called VariableBugInfo of this element type ({http://www.example.org}BUGINFO_XML) and tried parsing it as below.
<assign name = 'Assign2'>
<copy>
<from expression="oraext:parseXML(bpws:getVariableData('VariableXML','/ns2:BUGINFO_XML'))"/>
<to variable="VariableBugInfo" query="/ns4:BUGINFO_XML"/>
</copy>
</assign>
then i got the below error in the bpel console when im testing my bpel process.
The following exception occurred while attempting to execute operation copy at line 118
<?xml-stylesheet href="chrome://global/locale/intl.css" type="text/css"?>
-<parsererror>
XML Parsing Error: junk after document element
Location: http://slce26vm164.us.oracle.com:7001/em/ai/sca/share/audit/nfdg/displayInstance.jsp?locatorobjkey=Farm_mosbpelmosbpelsoa_server1soa-infra&instanceid=bpel%3A70555
Line Number 7, Column 1:
<sourcetext>
<root class="javax.xml.xpath.XPathExpressionException">internal xpath error<stack><f>oracle.xml.xpath.JXPathExpression.evaluate#242</f><f>com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate#240</f><f>com.collaxa.cube.engine.ext.bpel.common.BPELWMPHelper.evalFromValue#339</f><f>com.collaxa.cube.engine.ext.bpel.v1.wmp.BPEL1AssignWMP.__executeStatements#137</f><f>com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform#158</f><f>com.collaxa.cube.engine.CubeEngine._performActivity#2463</f><f>com.collaxa.cube.engine.CubeEngine.performActivity#2334</f><f>com.collaxa.cube.engine.CubeEngine.handleWorkItem#1115</f><f>com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal#73</f><f>com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage#220</f><f>com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory#328</f><f>com.collaxa.cube.engine.CubeEngine.endRequest#4350</f><f>com.collaxa.cube.engine.CubeEngine.endRequest#4281</f><f>com.collaxa.cube.engine.CubeEngine.createAndInvoke#679</f><f>com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke#654</f><f>com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke#293</f><f>...</f></stack></root>
^
</sourcetext>
</parsererror>
but when i tried a normal copy from VariableXML BUGINFO to VariableBugInfo as below, i am not getting any error but its not actually copying the contents to individual tags, because after this Assign i created a simple string variable(objTypeVar) and when i tried to copy TYPE element value to it, it says 'The result is empty for the XPath expression : "/ns4:BUGINFO_XML/ns4:TYPE".'
<assign name="Assign2">
<copy>
<from variable="VariableXML" query="/ns2:BUGINFO_XML"/>
<to variable="VariableBugInfo" query="/ns4:BUGINFO_XML"/>
</copy>
</assign>
<assign name="Assign3">
<copy>
<from variable="VariableBugInfo"
query="/ns4:BUGINFO_XML/ns4:TYPE"/>
<to variable="objTypeVar"/>
</copy>
</assign>
Result in console for VariableBugInfo for Assign2:
<VariableBugInfo>
<BUGINFO_XML>
<SR_ID>3-29OU7OF</SR_ID>
<OBJECT_TYPE>UPDATE_PREBUG</OBJECT_TYPE>
<RESERVED_BUG_NUM>8221084</RESERVED_BUG_NUM>
<TYPE>Predefect Update</TYPE>
<AUDIENCE>INTERNAL</AUDIENCE>
<COMMENT>TEST activity by Sireesha</COMMENT>
</BUGINFO_XML>
</VariableBugInfo>
For Assign 3:
Error in evaluate <from> expression at line "141". The result is empty for the XPath expression : "/ns4:BUGINFO_XML/ns4:TYPE".
I feel there is something i am missing in the XSD and the target namespace which is causing the issue. I am not sure what i should provide in the target namesapce in the new xsd which i created based on the value of VariableXML , so that it actually parses the xml and copies exact elements of it.
Please let me know if i am doing something wrong anywhere.
Thanks,
Sireesha -
How to read an xml file from headers
Hi ,
I am not getting how to read an xml file sent by client device in header to server.
Thankx.There is a getHeader() in HttpServletRequest interface
String locationURL=request.getHeader("Location");If URL of your file was set in Location attribute of header.
Edited by: ngpgeeta on Dec 19, 2008 8:03 AM -
How to read the contents of XML file from my java code
All,
I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
However I want to email to different people other then me. My email addresses are in the XML file.
From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
Thank You,
PadmaIke,
Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
Please help me.
Thank you for your posting.
Padma. -
XML file not getting transferred to archive folder once upload is done!!
Hi all,
I am working on a scenario where SAP R/3 sends data to SAP MDM 5.5 (SP04 PATCH 2) with XI as middleware.The XML file sent by XI is getting uploaded from the FTP folder using Manual Import (Import Manager).
But after importing for the first time, the XML file does not go automatically to the
Archive folder.
Any suggestions would be appreciated.
Regards,
Ravi VermaHi Ravi,
it's possible that this was a bug in SP4 Patch 2. I know that it worked with Patch 3 because this was the first time I used this feature. Is it possible for you to upgrade to the latest SP4 Patch?
Fact is that this should work with IM automatically. But I'm afraid that, if you report this in a OSS ticket, you'll get exactly the same reply as I've given to you above...
Kind regards
Michael -
Reading XML file from package!!
HI,
I have an xml file with two HIERARCHY levels with Global and local
<global1> company</global1>
<global2> address </global2>
<global3>name </global3>
<global4>position</global4>
and
-- *<loca1l/>*
<local2> CEO</local2>
-- *<local3/>*
<local4> supervisior</local4>
Now i have a package which reads this file and loads into the table.
My Question :- In the unknown Local depth 1 and local Depth 3 i want to display company(global depth 1). So when package reads the XML file, if there is any unknown tags then it should load company or read company of the gloabl depth 1 into the table. Any idea or logic would be great helpful.
I appricate it thank you so much!!If i get any unknown field in XML file of Local depth 1 and local Depth 3 i want to replace with global depth 1 and depth 3 fieldWhats wrong if you do it like this:
SQL> with t as (
select xmltype('<data>
<global1>company</global1>
<global2> address </global2>
<global3>name </global3>
<global4>position</global4>
<local1/>
<local2> CEO</local2>
<local3/>
<local4> supervisior</local4>
</data>') xml from dual
select x.column_value.getstringval()
from t,
xmltable('for $i in data/*
return
if (contains($i/name(), "local") and empty($i/text()))
then
element {$i/name()} {$i/../*[name()=concat("global",ora:replace($i/name(),"local",""))]/text()}
else $i' passing xml) x
X.COLUMN_VALUE.GETSTRINGVAL()
<global1>company</global1>
<global2> address </global2>
<global3>name </global3>
<global4>position</global4>
<local1>company</local1>
<local2> CEO</local2>
<local3>name </local3>
<local4> supervisior</local4>
8 rows selected.? -
How to rename the XML file generated during payment run
Hi,
We have a requirement to rename the XML file during payment run, format some fields of XML file and upload it onto Application server with the new XML file name. All these activities need to be performed during payment run F110.
Please let know if there is any User exit or Enahancement to achieve these functionalities.
Thanks !
Regards,
RavinderHi,
We have achieved the second functionality also i.e. populating the additional nodes or custom nodes of an extended tree.
This is what we have done...
We have copied the standard exit FM: DMEE_EXIT_TEMPLATE_EXTEND_ABA into a custom one and assigned it to each (custom) node in 'Source' tab. Line item text FPAYP-SGTXT will not be returned via this FM, so we fetched it explicitly from BSEG table using the input FPAYP-DOC2R (this field will have the company code, document number, fiscal year and item no, all concatenated).
Thanks,
/Ravinder -
Hi,
I've made a scenario using XI 3.0. I use a file adapter with an inbound synchronous interface to send a xml file to XI. XI consumes a function from CRM using a RFC adapter and an outbound synchronous interface. I've setted "Best Effort" as quality of service too.
The xml file arrives correctly to CRM and CRM returns the BAPI result to XI correctly too. The problem is XI doesn't return the xml file which it should, that's to say, the xml file sent by XI isn't in the specified target directory (using an inbound synchronous interface and a XI adapter).
Could someone explain me what happens?
Thanks in advance,
Samantha.Hi Samantha,
bad news: File Adapter is always asynchronous, cant get any response. And if you use an interface to send data it is an outbound interface.
To realize your business logic you must use BPM like
file (outbound asynchronous) -> BP (abstract asynchronous)
BP (abstract synchronous) <-> CRM (inbound synchronous)
BP (abstract asynchronous) -> file (inbound asynchronous)
Regards,
Udo -
How to retrive data from .XML file to JMS
hi friends.. this is vamsi from india.. i have been working on jsp, java bean, xml, jms, message driven bean , ejb and database from last couple of days. but i am not able to retrieve data from fields in xml file to jms. can any one help me out in retrieving the data from xml to jms..
thanking you,
vamsi.Database but we are not able to retrieve the values
from XML to JMS."We are not able to" is too vague a statement. An answer to this could well be "Did you turn your computer on?"
So again, please post formatted code showing what you have done and where you are stuck.
Perhaps an error message and/or a stack trace if appropriate. -
Hi Y'all,
I'd like the XML file name being submitted with "Submit via Email" button be value entered in one of the required text fields.
In current case name of the field is ClubNumber. For xample if user entered 22155 in the field, the XML file would be named 22155.xml.
How can I do that?
Thanks,You can set the subject line using the ?subject= parameter in the mailto target. For example:
if (SCODAchievementsData.rawValue != null)
var oSubmitTarget = this.resolveNode("#event.#submit").target;
var nLoc = oSubmitTarget.indexOf("?subject=");
if (nLoc > -1)
var target = oSubmitTarget.substring(0, nLoc);
this.resolveNode("#event.#submit").target = target + "?subject=" + SCODAchievementsData.rawValue; -
Converting CSV file coming as string in one of the field of xml to XML
Hi ,
we have the below requirement where the dat type is :
DT_MESSAGE
field1 Data
field2 DataString
the csv file of the below format will be sent in the DataString field of xml .
Source;EIX3;Date;080526;Charge;70199;Si;.42 ;Fe;.20 ;Cu;.00 ;Mn;.027 ;Mg;.49 ;Cr;.0007 ;Ni;0 ;Zn;.01 ;Ti;.01 ;Ag;0 ;B;0 ;Ba;0 ;Be;0 ;Bi;0 ;Ca;0 ;Cd;0 ;Co;0 ;Ga;0 ;Na;0 ;Nb;0 ;Pb;0 ;Sb;0 ;Sn;0 ;Sr;0 ;V;0 ;Zr;0 ;Al;0 ;P;0 ;Hg;0 ;Li;0 ;Alloy;606044;Alloy_Hy;AC10;Diametre;152;Client;IMPOL
Source;EXF3;Date;080811;Charge;71460;Si;.04 ;Fe;.10 ;Cu;.002 ;Mn;.003 ;Mg;.002 ;Cr;.0006 ;Ni;.003 ;Zn;.014 ;Ti;.000 ;Ag;0 ;B;0 ;Ba;0 ;Be;0 ;Bi;0 ;Ca;0 ;Cd;0 ;Co;0 ;Ga;0 ;Na;0 ;Nb;0 ;Pb;.0010 ;Sb;0 ;Sn;.000 ;Sr;0 ;V;.001 ;Zr;0 ;Al;99.8 ;P;0 ;Hg;0 ;Li;0 ;Alloy;400101;Alloy_Hy;831B9901;Diametre;PFA;Client;DANFOSS
Source;EXF3;Date;080813;Charge;71535;Si;9.55 ;Fe;.12 ;Cu;1.05 ;Mn;.01 ;Mg;.38 ;Cr;.0008 ;Ni;.00 ;Zn;.01 ;Ti;.01 ;Ag;0 ;B;0 ;Ba;0 ;Be;0 ;Bi;0 ;Ca;.0011 ;Cd;0 ;Co;0 ;Ga;0 ;Na;.0006 ;Nb;0 ;Pb;.0010 ;Sb;.0003 ;Sn;.00 ;Sr;.0002 ;V;0 ;Zr;0 ;Al;0 ;P;.0008 ;Hg;0 ;Li;.0001 ;Alloy;444205;Alloy_Hy;Al AS9C1;Diametre;PFA;Client;TEKSIDPL
Source;EXF3;Date;080813;Charge;71538;Si;9.57 ;Fe;.12 ;Cu;1.01 ;Mn;.01 ;Mg;.39 ;Cr;.0008 ;Ni;.00 ;Zn;.01 ;Ti;.01 ;Ag;0 ;B;0 ;Ba;0 ;Be;0 ;Bi;0 ;Ca;.0007 ;Cd;0 ;Co;0 ;Ga;0 ;Na;.0004 ;Nb;0 ;Pb;.0010 ;Sb;.0004 ;Sn;.00 ;Sr;.0002 ;V;0 ;Zr;0 ;Al;0 ;P;.0007 ;Hg;0 ;Li;.0001 ;Alloy;444205;Alloy_Hy;Al AS9C1;Diametre;PFA;Client;TEKSIDPL
Source;EIX3;Date;080813;Charge;71539;Si;.06 ;Fe;.19 ;Cu;.00 ;Mn;.00 ;Mg;.00 ;Cr;0 ;Ni;0 ;Zn;.01 ;Ti;.01 ;Ag;0 ;B;0 ;Ba;0 ;Be;0 ;Bi;0 ;Ca;0 ;Cd;0 ;Co;0 ;Ga;0 ;Na;0 ;Nb;0 ;Pb;0 ;Sb;0 ;Sn;0 ;Sr;0 ;V;0 ;Zr;0 ;Al;99.71 ;P;0 ;Hg;0 ;Li;0 ;Alloy;107070;Alloy_Hy;AC99.7;Diametre;152;Client;ARO TUBI
where the starting field is Sorce of each row .
I need to parse the above csv using xslt or java mapping .
The target structure xml is
DT_Target
row 0 to unbounded
field 1 Source
field2 Date
field3 Charge
field n Client
can anyone help me how to parse and map to the target.what could be the better method to do it.
Thanks and Regards,
RajeshYou can use xsl mapping to retrieve that payload ina single field and map it to target
Please check these links
String to XML using XSLT..
Re: String to XML using XSLT
/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
regards
Ninad -
How to obtain an updated Device Profile List xml file
Hi,
I would like to update the Device profile List used by the WLC to categorize WiFi devices.
I found in documentation how to upload the file to the controller,but where can I get a newer xml file?
Thanks.Hi Terry,
Have you tried the procedures layed out in this 12.2.15 doc?
Working with Software Images
http://www.cisco.com/en/US/products/hw/wireless/ps4570/products_configuration_guide_chapter09186a0080209240.html#wp1035507
You could also contact Cisco Tac, I'm sure they could get you a copy of the image. I do have one still but I'm sure there are legal ramifications to posting it here.
Let me know,
Rob
Maybe you are looking for
-
FCE will not capture PAL footage
Hi, I'm trying to make a video for some English friends with footage they sent to me which is in PAL format. Normally I use HDV, so I changed the setting under "Easy Setup" to DV-PAL, but FCE will not let me capture it. The camera reads it and displa
-
Hi, In mssql i am using following things. I have two database D1 and D2, i am using snapshot isolation (ALTER DATABASE MyDatabase SET ALLOW_SNAPSHOT_ISOLATION ON) in both database. Following is the situation. 1) There is one SP sp1 (
-
BLS Error Checking has Stopped!
Hi Whenever my BLT encounters an error, instead of telling me this it goes off for a couple of minutes then gives this message [ERROR]: Error executing transaction: java.net.SocketTimeoutException: Read timed out This happens regardless of the error,
-
S_P00_07000136 Transfer deffered tax Thailand
Hello All, I am trying to transfer tax amount using S_P00_07000136. When i enter the amount on tax amount difference manually. i am getting a error message which says "Actual Tax difference 10,00- exceed the tolerance limit "1,00 1,00"" . I am not ab
-
Singles sales order shipping from multiple plants in different lega entiti
We are a global Mfg and distributor of scientific instruments. Due to the complexity and delicate nature of these instruments we may need to ship product from as many a three different shipping points / plants that are each owned by a different legal