XML file 2 XML file
Hi all,
I have low experience with XI but I have created a scenario XML file to XML file (reference wiki.sdn.sap.com) where sender e receiver files are located into XI folders . The steps defined are :
product;
software component;
technical system (thirdy-part);
business system;
import sofware component into integration repository;
namespaces;
data type (sender/receiver);
message type;
message interface;
message mapping;
interface mapping;
configuration scenario into integration config.;
assign business system;
communication channel;
file adapter with source e destination directory (folder XI), file name e processing parameters;
receiver and interface determination
sender and receiver agreement.
When put the input file into sender folder I don't have output file and sxmb_moni is empty for XML message.
Thanks in advance.
Miki
Hi Maurizio,
you don't see anything entering inside your sxmb_monitoring: do you mean that the payload is empty or that you don't see any messages in the overview table?
If you don't see any messages, this means that in the message is not send from your adapter engine towards your integration engine.
Check wether:
1) your communication is set up properly and is active
2) your communication channel is functioning correctly via communication channel monitoring in the runtime workbench (goto the integration builder --> runtime workbench --> Component monitoring --> click on display --> click on adapter engine --> click on communication channel monitoring --> search for you communication channel and check for errors.
3) check your sender agreement
If you have an empty payload, check your payload in the first step of your message pipeline and check wether the payload has the expected layout.
Kind regards
Joris
Similar Messages
-
Generate a File XML in Forms with PL/SQL
Hi Friends!
I need to generate a file XML and validate it with a XSD schema!
I see some ways to generate a file with a QUERY.
But i cant generate a file with a Query because my datas existing in diferent tables and isn't possible to create in a query! I need to construct the XML step by step... creating the nodes and subnodes... setting values to the nodes and so on!
I see a class java called by Marshall and i created a bean to generate XML but it is so slow even in a powered server!
How can i do this in PL/SQL?????
Somebody can help me!!http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xmldom.htm#sthref10098
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb10pls.htm#sthref1389
Regards. -
I am installing OIM/OAM in a cluster configuration using release 11.1.1.7.
I looked at the EDG here:
http://docs.oracle.com/cd/E28280_01/core.1111/e12035/toc.htm
And its pointing me to the 11.1.1.5 version
http://docs.oracle.com/cd/E21764_01/core.1111/e12035/toc.htm
So that is the guide I am following.
I am at this step:
18.1.5.2 Integrating Oracle Access Manager with Oracle Identity Manager by Using idmConfigTool
http://docs.oracle.com/cd/E21764_01/core.1111/e12035/wiring.htm#sthref356
When I run the config tool I get SEVERE messages like this one:
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Any suggestions on how to fix this ?
Please note that I can see jps-config.xml under the domain configuration in the fmwconfig directory.
Here is the complete output
Enter sso access gate password :
Enter sso keystore jks password :
Enter sso global passphrase :
Enter mds db schema password :
Enter idstore admin password :
Enter admin server user password :
********* Seeding OAM Passwds in OIM *********
Completed loading user inputs for - CSF Config
Completed loading user inputs for - Dogwood Admin WLS
Connecting to t3://admin.mycompany.com:7001
Connection to domain runtime mbean server established
Seeding credential :SSOAccessKey
Seeding credential :SSOGlobalPP
Seeding credential :SSOKeystoreKey
********* Activating OAM Notifications *********
Completed loading user inputs for - MDS DB Config
Jun 6, 2013 1:46:05 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:06 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Initialized MDS resources
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:06 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:07 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Upload to DB completed
Releasing all resources
Notifications activated.
********* Seeding OAM Config in OIM *********
Completed loading user inputs for - OAM Access Config
Validated input values
Initialized MDS resources
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:08 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Download from DB completed
Releasing all resources
Updated /oracle/product/fmw/Oracle_IAM/server/oamMetadata/db/oim-config.xml
Initialized MDS resources
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:08 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:09 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Upload to DB completed
Releasing all resources
OAM configuration seeded. Please restart oim server.
********* Configuring Authenticators in OIM WLS *********
Completed loading user inputs for - LDAP connection info
Connecting to t3://admin.mycompany.com:7001
Connection to domain runtime mbean server established
Starting edit session
Edit session started
Connected to security realm.
Validating provider configuration
Validated desired authentication providers
OAM Asserter already exists in the security realm
OAMIDAsserter is already configured to support 11g webgate
OIM Signature Authenticator already exists in the security realm
A type of LDAP Authenticator already exists in the security realm. Please create authenticator manually if different LDAP provider is required.
Control flags for authenticators set sucessfully
Reordering of authenticators done sucessfully
Saving the transaction
Transaction saved
Activating the changes
Changes Activated. Edit session ended.
Connection closed sucessfully
The tool has completed its operation. Details have been logged to automation.logi found this task :
JDev 11.1.1.1.0 + ADF+ BC4J application on Tomcat6 -
XML and XSD file to an internal table
I had read a lot of thread but i don't understand how to deal with xml/xsd in R3.
I need someone that have a definite example for this escenary please.
With OPEN DATASET took from the server XML and XSD file, and put it in two internal tables type string.
What functions or method have to use, and how to use them, to charge the XML file in an internal table?
This is an example of XML and XDS:
XML
AND CONTINUE
Best Regards,I just tried to interpret your question, it was not obvious what you wanted.
I guess what you mean is that you have defined (statically) a deep structure, and you want to decode the XML into it. That is called a transformation (transaction STRANS, statement CALL TRANSFORMATION). You have the choice between 2 transformation languages: XSLT and ST. Of course, it depends what release you are running.
I advise you to play first with the ID transformation, to convert an ABAP deep structured data object into XML, so that you see what XML is generated, this one is called asXML. If you create your own transformation, when you call it, it will first convert automatically the data object to asXML, and the transformation has to do the rest of the job.
You can do the opposite, i.e. converting from XML to a data object, according to the same principle (intermediate asXML).
Well, there are lots of things to say, I recommend you to read articles and documentation on XSLT and ST (search on SDN).
About XSD, it won't help (and I did never see any possibility to use it) to decode the XML, as you must anyway define the target data object statically (and there's no tool to generate the ABAP code of the data object definition from the XSD).
Note that you may also use iXML libraries to parse the XML.
Please tell us more.
BR
Sandra -
How to populate target directory from the source XML in Receiver File Adap?
Hi All,
Our scenario is IDoc - XI -(Receiver File adapter) File. Is it possible to populate complete "Target Directory" from the source XML message??
Lets say we added field to maintain target directory in Idoc structure and some how populated value to it, then grab this target directory from the IDoc-XML and pass in Comunication Channel. I think its possible through Variable Substitation ...just want to make sure and if sombody has done the similar scenario their inputs would be great.
Thanx
NavinHi,
Please see the belowlinks
/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
/people/sriram.vasudevan3/blog/2005/11/21/effective-xsl-for-multimapping-getting-source-filenames-in-legacy-legacy-scenarios
Re: Dynamic File Name for Receiver File Adapter
Variable Substitution
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
try with adapter specific
Example code...
String newfilename="";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
// Get Sourcefilename
String oldfilename=conf.get(key);
//extract first 3 chars of source filename
newfilename=oldfilename.substring(0,2);
//get the date
java.text.SimpleDateFormat dateformat = new java.text.SimpleDateFormat( "yyyyMMdd" );
dateformat.format( new java.util.Date() );
//append sourcedateL
newfilename=newfilenamedateformat"L";
// determine if prod/ dev / qa
map = container.getTransformationParameters();
senderService = (String) map.get("SenderService");
if(senderServcie.equald("Prod"){
newfilename=newfilename+"P";
// change to new file name
conf.put(key, newfilename+".tmp");
Change it according to your requirement
Regards
Chilla.. -
Special character in XML causing the file to hit worng folder.
I am facing program, while sending a data to a repository using SOAP XML. The file path which is needed has a special character and this is not getting identified at the target.
here is the brief descriptio.
1) We generate the PDF using the XML report in ERP.
2) Using the same data, we generate SOAP XML file and send to a respoitory.
3) Here using this SOAP XML, the PDF is generated and stored in a location which is sent in the file.
we are sending the target path as "PO's from Customer" as below:
'<target_folder_path>'||'/Documents/'||TO_CHAR(SYSDATE,'YYYY')||'/PO's from Customer'||'</target_folder_path>';
The path needed is '/Documents/2012/PO's from Customer' , but due the apostrophe, the file is hit /adadmin path.
I have tried replcaing the special character by ' , but still no luck. If i remove the special characters, then the file is hitting correct path.
But the requirement is to have '/Documents/2012/PO's from Customer' .
Is there is a way this can be achived. Please advice.Is it as simple as using two single quotes between PO and s?
'/PO''s from Customer'I can't tell from what you wrote how you are generating the value in the first place so if not correct provide more details related to whatever builds the path. -
XML datasource: dynamic file name and location
I have an RDF file that uses an XML file as its datasouce. I have supplied it a valid DTD file location and a valid XML file location, via the report wizard. I would like to programatically change the name of the XML file at runtime. What are my options...use an XML customization? I would like to do it in an after parameter form trigger. Is this possible?
If I have to use an XML customization, is it possible to only customize part of the datasource tag. For example, here is my datasource tag (not from an RDF, but an XML report definition)
=====================================================
<dataSource name="QP_1">
<plugin factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
majorVersionNumber="1" minorVersionNumber="2"
signOnParameter="XML_HTTPS">
<![CDATA[<xmlpds DTDVersion=" 1.0">
<dtd>file:C:/downloads/LVB.dtd</dtd>
<schema>null</schema>
<XSQLschema>null</XSQLschema>
<XSQLWithDTD>false</XSQLWithDTD>
<type>false</type>
<xmlWritten>true</xmlWritten>
<validate>false</validate>
<xml>file:C:/test/175.xml</xml>
<xsl>null</xsl>
<select>
<element name = "typef" type = "string" s_simpleTypeMapping = "string" /> <element name = "Volume" type = "string" s_simpleTypeMapping = "string" /> <element name = "Trades" type = "string" s_simpleTypeMapping = "string" /> <element name = "Percent_Total_Vol" type = "string" s_simpleTypeMapping = "string" /> <element name = "Percent_Total_Trd" type = "string" s_simpleTypeMapping = "string" /> </select>
<simpleTypesInfo></simpleTypesInfo></xmlpds>]]>
</plugin>
<displayInfo x="1.65002" y="1.00000" width="0.69995" height="0.19995"/>
<group name="G_1">
<displayInfo x="1.30188" y="1.94995" width="1.39624" height="0.77246"
/>
<dataItem> ...stuff here... </dataItem>
</group>
</dataSource>
==================================================
How can I only customize the <xml>file:C:/test/175.xml</xml>?
I only want to change the name of 175.xml to something like 176.xml.
I have to put in a valid XML when I create the report via Reports Builder, but once it is in there I need to change it.Hello Danny,
I am trying to pass a user parameter into the xml location <xml></xml> tags like you did but am having problems. If it's not too much trouble, would you please send me a sample of your source code so I can check my syntax? Below is my code and the error message I am getting. Any help would be greatly appreciated, I've been stuck on this for days! Thanks!
<rw:report id="recoveryCenterScheduleReport" parameters="server=myreportserver&userid=ssstage/ssstage@DEVL&p_xmlDataURL=http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet">
<rw:objects id="objects">
<?xml version="1.0" encoding="WINDOWS-1252" ?>
<report name="XMLscheduleReport" DTDVersion="9.0.2.0.0">
<xmlSettings xmlTag="XMLSCHEDULEREPORT" xmlPrologType="text">
<![CDATA[<?xml version="1.0" encoding="&Encoding"?>]]>
</xmlSettings>
<data>
<userParameter name="XML_HTTPS" datatype="character"
pluginClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
width="255" defaultWidth="0" defaultHeight="0" display="no"/>
<userParameter name="p_xmlDataURL" datatype="character" width="100"
precision="10" defaultWidth="0" defaultHeight="0"/>
<dataSource name="QP_1">
<plugin
factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
majorVersionNumber="1" minorVersionNumber="2"
signOnParameter="XML_HTTPS">
<![CDATA[<xmlpds DTDVersion=" 1.0">
<dtd>null</dtd>
<schema>file:///C:/Practic Workspace/Practice/WEB-INF/xsd/scheduleReport.xsd</schema>
<XSQLschema>null</XSQLschema>
<XSQLWithDTD>false</XSQLWithDTD>
<type>false</type>
<xmlWritten>true</xmlWritten>
<validate>true</validate>
<xml>&<[b]p_xmlDataURL></xml>
<xsl>null</xsl>
javax.servlet.jsp.JspException: rwlib-1: REP-0002: Unable to retrieve a string from the report builder message file.
REP-0069: Internal error
XMLPDS-63004:Generic error while parsing the URL stream name instead of <.
REP-4111: Fail to create pluggable data source 'QP_1'
at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
at jsp.reports._schedule._XMLscheduleReport._jspService(_XMLscheduleReport.java:87)
.... -
Special charactors found in out put file of .xml file in file adapter
Hi ,
Dear all,
I am working on Sender File adapter picking files from the multiple Directories which are specified in a single CC and these files are placed in the different receiver directories in different CC's metained paths of the receivers
The Souce is XML.
When I use the receiver format as .csv,.txt it the out put is as excepted,when i give the receiver format as .XML the output file contents:PK (An invalid character was found in text content. Error processing resource 'file:).
Pl let me know how to tackle thsi situation.
Thanks,
SriniHi
Also try with the following UDF.
public class XmlUtil {
char[] specialCharacters = { '&', '<'>', '\'' };
String[] replacementStrings = { "&", "<">", "'" };
public static String sanitizeText( String text ) {
StringBuffer buffer = new StringBuffer( text );
for( int i = 0; i < buffer.length(); i++ ) {
for( int k = 0; i < specialCharacters.length; k++ ) {
if( buffer.charAt(i) == specialCharacters[k] ) ) {
buffer.replace( i, i + 1, replacementString[k] );
i += replaceString[k].length;
} else if( (int)buffer.charAt(i) > 128 ) {
String replacement = "&#" + (int)buffer.charAt(i) + ";";
buffer.replace( i, i + 1, replacement );
i += replacement.length();
return buffer.toString();
Regards
Abhishek Mahajan -
Urgent, Help on conversion: xml to flat file
Dear experts,
Here is the scenario, XML FILE ->XI-> JMS
In JMS recevier side, we use localejbs/AF_Modules/MessageTransformBean to convert xml to flat file.
Transform.Class: com.sap.aii.messaging.adapter.Conversion
Transform.ContentType: text/plain;charset=utf-8
xml.conversionType: SimpleXML2Plain
xml.fieldFixedLengths: 5,20,5,8
When input source xml file contents are non-unicode, it works fine.
But when the contents contain unicode characters such as Chinese word, it works but with wrong length in the output flat file. It seems xi treat one Chinese word length is 1. Actually, one chinese word should take 2 bytes.
My question is how to make XI handle unicode characters with correct lengths while conversing to flat file.
Thanks in advance.Jai Shankar
Thanks for your response.
I am already using the standard adapter modules provided by SAP:
localejbs/AF_Modules/MessageTransformBean
Transform.Class: com.sap.aii.messaging.adapter.Conversion
My input file's encoding is UTF-8
"You need to change the encoding scheme according to your input file" , do you mean change the output file's encoding or else?
I can't find the article you mentioned: "Encoding schemes in XI", Would you please give me the link?
Thanks a lot. -
J2SE XML to Flat File Content Conversion
Hi
I've currently got a scenario which sends a flat file to the integration server, it gets mapped and sent to a receiver adapter on a deployed j2se engine.
I'm now trying to convert the xi-xml structured file to a flat file again on the j2se side (the same flat file format it originally had).
My original flat file looks like this -
477
477=AA1
My xml file looks like this -
<?xml version="1.0" encoding="UTF-8"?>
<ns0:ResultMessage xmlns:ns0="urn:xxxx-com:a_test_j2se_filetofile">
<Item>
<field1>477</field1>
</Item>
<Item>
<field1>477</field1>
<field2>AA1</field2>
</Item>
</ns0:ResultMessage>
I am using these content conversion parameters:
xml.addHeaderLine=0
xml.fieldSeparator==
xml.endSeparator='nl'
I get this error on the integration engine (sxmb_moni):
Error while sending by HTTP (error code: 500, error text: Internal Server Error:java.lang.NullPointerException) (See attachment HTMLError for details)
and the j2se adpater log says this:
17:16:32 (4120): Message "13b9d644-54c9-4ffb-0c40-db4c14458d77" of type "application/xml", kind "B" received
17:16:32 (4124): Parsing XML message
17:16:32 (4131): ERROR: Message processing failed with "java.lang.NullPointerException"
What am i missing?So, now... I did a test configuration in XI and sent your test-payload...it worked.
The J2SE adapter configuration:
File adapter java class
classname=com.sap.aii.messaging.adapter.ModuleXMB2File
version=30
mode=XMB2FILEWITHCONVERSION
#Adress for XMB endpoint -
XI.httpPort=8111
XI.httpService=/file/receiver
#File Adapter specific parameters -
file.createDir=1
file.targetDir=c:/transfer/inbound
file.targetFilename=xmboutput.txt
#file.writeMode=append
#file.writeMode=overwrite
file.writeMode=addCounter
file.counterMode=immediately
#file.counterMode=afterFirst
file.counterSeparator=_
file.counterFormat=00000
file.counterStep=1
#File Content Conversion specific parameters -
xml.addHeaderLine=0
xml.fieldSeparator==
xml.endSeparator='nl'
And here the configuration of the receiver communication channel in the integration directory:
Adapter Type: XI
Receiver
Transport-Protocol: HTTP 1.0
Message-Protocol: XI 3.0
Adapter-Engine: Integration Server
Adressing-Type: URL Address
Target Host: <yourJ2SEip>
Service Number: 8111
Path Prefix:http://<yourJ2SEip>:8111/file/receiver
Authentication Data
Logon data for non-SAP systems
User
Password
That's it... sent your payload and got the wished result:
477
477=AA1
Regards,
Heinrich -
I create several file name entities in an external DTD.
It used to work sometimes back but I don't remember now when it begun to fail.
typical document for eg., is given below:
<!DOCTYPE PURANA SYSTEM "purana.dtd" [ <!ENTITY CHAPTER_1 SYSTEM "./chapter_1.xml"> ]>
<?xml-stylesheet type="text/xsl" href="purana.xsl"?> <PURANA>
<TITLE>
</TITLE>
&CHAPTER_1;
</PURANA>)
the abbreviation used to work by loading the file using XSL script,
but now it does not even work when the entity is defined within the XML document itself.Too difficult???
Please helped me.
Thank you, Theo -
Problem in converting XML to XML file
Hi,
I am trying to convert xml file to another xml through command-line interface but failed.
java oracle.xml.parser.v2.oraxsl data.xml data.xsl data_new.xml
My xml and xsl files are:
1. XML file
<employee_data>
<employee_row>
<employee_number>7950</employee_number>
<employee_name>ABC</employee_name>
<employee_title>PRESIDENT</employee_title>
<manager>1111</manager>
<date_of_hire>20-JAN-93</date_of_hire>
<salary>65000</salary>
<commission>1000</commission>
<department_number>10</department_number>
</employee_row>
</employee_data>
2-1 XSL file
<?xml version="1.0" ?>
<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="*">
<xsl:copy>
<xsl:apply-templates>
<xsl:sort select=".//employee_name"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
2-2 XSL file
<?xml version = "1.0"?>
<ROWSET xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:for-each select="employee_data/employee_row">
<ROW>
<EMPNO><xsl:value-of select="employee_number"/></EMPNO>
<ENAME><xsl:value-of select="employee_name"/></ENAME>
<JOB><xsl:value-of select="employee_title"/></JOB>
<MGR><xsl:value-of select="manager"/></MGR>
<HIREDATE><xsl:value-of select="date_of_hire"/></HIREDATE>
<SAL><xsl:value-of select="salary"/></SAL>
<COMM><xsl:value-of select="commission"/></COMM>
<DEPTNO><xsl:value-of select="department_number"/></DEPTNO>
</ROW>
</xsl:for-each>
</ROWSET>
I used two xsl file to test but received same error message:
Error occurred while processing data.xsl: Error in expression: '*|/'.
Does anyone know how to fix the problem? I'll appreciate it very much for your help.
Thanks.
YiHi,
I have only tried it out with XML Spy, but anyway:
there seems to be an error in your 2-1 XSl file in line 2:
the correct stylesheet declaration is:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
You had an empty namespace and a wrong version attribute...
HTH,
Bernhard -
Facing problem in xml schema xsd file registration
Hi,
i am facing problem in xml schema xsd file registration when
the number of column is more. It is showing persing error.
if i am deleting few column from xsd file . It is working otherwise
showing error. Is there any solution for that please suggest me.
The Error is
ORA-31011:XML parsing failed
ORA_19202: Error occurred in XML processing
LPX-00230 : (message vary time to time-like invalid tag ending etc.)
Regards
Manoranjan
and thanks in advanceWhere is you XML coming from. Are you sure it's valid. If you are hard coding it as a SQL String constant are you hitting the 4k / 32K limit on the size of SQL / PL/SQL constant. Have you tried loading the content from a bfile..
-
How I can read an xml file with SAX or DOM into a war file?. I have WLS 6.1 SP4
with WLI2.1 SP2.
I can read a xml file, but when I create a war file, the aplication does not find
the xml file. When it tries to find it, it looks on the path but not on the war
which contains the xml file needed.
This is the instruction given:
String uri = "Menu.xml";
DocumentBuilderFactory factory =DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse( uri );
And the error message displayed is:
File "file:///c:/bea/wli21/Memu.xml" not found
Coments please!!
EdyThe error is calss org.xml.sa.SAXParseException: File "localhost:7001/Menu.xml"
not found
I change localhost by the correct IP.
Tks.
Edy
"Karthik V" <[email protected]> wrote:
What error message are you getting now?
Can you produce the trace?
Try using File or InputStream while Parsing.
That will help you to narrow down the error.
/k
"Edith Barra" <[email protected]> wrote in message
news:3ea594cc$[email protected]..
The error persist.
Help me!!
Tks.
Edy
"Karthik V" <[email protected]> wrote:
Try modifying your uri value to http://localhost:7001/Menu.xml
Substitute correct port and docroot for the xml location.
/k
"Edith Barra" <[email protected]> wrote in message
news:3ea572aa$[email protected]..
How I can read an xml file with SAX or DOM into a war file?. I haveWLS
6.1 SP4
with WLI2.1 SP2.
I can read a xml file, but when I create a war file, the aplicationdoes
not find
the xml file. When it tries to find it, it looks on the path but
not
on
the war
which contains the xml file needed.
This is the instruction given:
String uri = "Menu.xml";
DocumentBuilderFactory factory =DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse( uri );
And the error message displayed is:
File "file:///c:/bea/wli21/Memu.xml" not found
Coments please!!
Edy -
"encoding = UTF-8" missing while writing XML file using file Adapter
Hi,
We are facing an unique problem writing xml file using file adapter. The file is coming without the encoding part in the header of xml. An excerpt of the file that is getting generated:
<?xml version="1.0" ?>
<customerSet>
<user>
<externalID>51017</externalID>
<userInfo>
<employeeID>51017</employeeID>
<employeeType>Contractor</employeeType>
<userName/>
<firstName>Gail</firstName>
<lastName>Mikasa</lastName>
<email>[email protected]</email>
<costCenter>8506</costCenter>
<departmentCode/>
<departmentName>1200 Corp IT Exec 8506</departmentName>
<businessUnit>1200</businessUnit>
<jobTitle>HR Analyst 4</jobTitle>
<managerID>49541</managerID>
<division>290</division>
<companyName>HQ-Milpitas, US</companyName>
<workphone>
<number/>
</workphone>
<mobilePhone>
<number/>
</customerSet>
</user>
So if you see the header the "encoding=UTF-8" is missing after "version-1.0".
Do we need to configure any properties in File Adapter?? Or is it the standard way of rendering by the adapter.
Please advice.
Thanks in advance!!!System.out.println(nodeList.item(0).getFirstChild().getNodeValue());
-
File to file mapping without xml
Hello,
is there a possible way to use a PI7.1 file to file mapping (one static-positioned field must be mapped) without storing the file in xml format ?
We are having a flatfile and have to send this flatfile through our jms receiver adapter(as flatfile structure) but there is one important field which has to be mapped/changed(static value for all files).
Our SAP Applikation (File sender) would avoid to change this during or after creating the flatfiles in the R/3 System.
Thanks,
GordonHi Gordon,
>- Do you have an example for that abap mapping ?
DATA g_str TYPE string.
CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
EXPORTING
im_xstring = source
im_encoding = 'UTF-8'
IMPORTING
ex_string = g_str.
REPLACE 'ABC' WITH 'XYZ' INTO g_str.
CALL FUNCTION 'ECATT_CONV_STRING_TO_XSTRING'
EXPORTING
im_string = g_str
im_encoding = 'UTF-8'
IMPORTING
ex_xstring = result.
>I think i have to use some entry parameters for my interface right ?
?? no..
>- Is it possible to use that within the integrated configuration ?
?? yes..
Regards,
Udo
Maybe you are looking for
-
When sharing my 60 minutes iMovie project with iDVD inmediately message 'The project could not be prepared for publishing because an error occurred (Error in user parameter list)' appears. Could not find the user parameter list, so I've no more info
-
How do I transfer HD video from my itouch 4 to my pc?
I have a new itouch. I've created some home videos. How do I get those videos copied over to my Windows 7 PC? I tried to use the 'sync folder' button for pictures and checked the box for videos as well but all that appears is a "iPod Photo Cache" fo
-
IPod Touch 2nd gen. audio dropouts
I just received my 2nd gen 8GB touch. Transferred one album to it for testing. The sound every now and then drops out for a split second. Never in the same spot in music though- so it's not a bad rip or faulty transfer. The dropouts also occur when l
-
I have an ipod connection into my car stereo in my Infiniti. I was hoping to replace my ipod with my Blackberry Storm and be able to play it through my stereo system. Is there a cable that will fit my car connection and the Storm?
-
I am running out of room so quickly on my laptop. My degree is in classical music so I have about 160 g on my lappy. I uploaded everything into itunes match and have started to delete a few things and keep them in the cloud. Of course they are all al