Xml:version error
I've stored a very simply stylesheet in to our database using the xmldoc.save() function which produces a stylesheet in the database that looks like this:
<?xml version = '1.0' encoding = 'ASCII'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://wwww.w3.org/1999/XSL/Transform">
<!-- This is a blank stylesheet -->
</xsl:stylesheet>
When I try to access the stylesheet in my PL/SQL package using the xslt.stylesheet() function I get keep getting the error message:
ORA-20100: Error occurred while processing: XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
I've tried several different things but I can get by this error, can anyone help?
Thanks.
null
Hi
If I change my document header from <?xml version="1.0" encoding="UTF-8"?> to <?xml version="1.0"?> then it parses without error. Will this situation change if I intall ORACLE_HOME? If so, why do I need to install ORACLE_HOME to get the XML Parser to work?
Thanks.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by xmlteam ([email protected]):
Hi,
Do you have your ORACLE_HOME set up correctly?
Thanks,
Oracle XML Team<HR></BLOCKQUOTE>
Similar Messages
-
Why does the header with encoding set to UTF-8 get rejected by the Oracle XML C++ V2 Parser when one of the features of this version is UTF-8 support?
Hi
If I change my document header from <?xml version="1.0" encoding="UTF-8"?> to <?xml version="1.0"?> then it parses without error. Will this situation change if I intall ORACLE_HOME? If so, why do I need to install ORACLE_HOME to get the XML Parser to work?
Thanks.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by xmlteam ([email protected]):
Hi,
Do you have your ORACLE_HOME set up correctly?
Thanks,
Oracle XML Team<HR></BLOCKQUOTE> -
Xml parsing error in JSP 1.2
Hi, everyone.
I'm getting an error trying precompile JSP code using a variable tag in my tag library to define a new scripting variable : Element "tag" does not allow "variable" here.
I also get the same error after deployng the JSP code on Sun One Application server 7.
Any idea?
Thanks a lot for any help.Here is the tag lib file that can't be parsed.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
<!-- a tag library descriptor -->
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>er</short-name>
<uri></uri>
<description>
A tab library for iteration tag used in Event Reminder application
</description>
<tag>
<name>loopEvent</name>
<tag-class>com.abnamro.na.net.reminder.servlet.IterateTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>collection</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<variable>
<name-given>mmdd</name-given>
<variable-class>String</variable-class>
<declare>true</declare>
<scope>NESTED</scope>
<description>month and day of event</description>
</variable>
<variable>
<name-given>type</name-given>
<variable-class>String</variable-class>
<declare>true</declare>
<scope>NESTED</scope>
<description>This variable contains type of event</description>
</variable>
<variable>
<name-given>name</name-given>
<variable-class>String</variable-class>
<declare>true</declare>
<scope>NESTED</scope>
<description>This variable contains name of event</description>
</variable>
<variable>
<name-given>period</name-given>
<variable-class>String</variable-class>
<declare>true</declare>
<scope>NESTED</scope>
<description>period over which a user get a email for</description>
</variable>
<variable>
<name-given>descr</name-given>
<variable-class>String</variable-class>
<declare>true</declare>
<scope>NESTED</scope>
<description>description</description>
</variable>
<variable>
<name-given>numyears</name-given>
<variable-class>String</variable-class>
<declare>true</declare>
<scope>NESTED</scope>
<description>number of years for particular event</description>
</variable>
<variable>
<name-given>address</name-given>
<variable-class>String</variable-class>
<declare>true</declare>
<scope>NESTED</scope>
<description>address of event</description>
</variable>
<variable>
<name-given>phone</name-given>
<variable-class>String</variable-class>
<declare>true</declare>
<scope>NESTED</scope>
<description>phone of event</description>
</variable>
</tag>
</taglib>
Thank you. -
XML Parse error while loading an XML file
HI Folks,
I was trying to load and XML file into BODS.. The XML file is well-formed and the same when tested in other tools is getting loaded without any issues..
I have created a XML-File format with the corresponding XSD..
But here in BODS it is giving - Parse error
1) when i try to view the data of the source XML in my dataflow ..it is giving "XML Parser Failed".. and not able to show data..
2) When I run my job i get the same pares error - with details as under..
---> Error here is "Unable to recognize element 'TAB' " or some time is say " Element TAB should be qualified"
Please guide with this if you have any info..thanks
I'm pasting the XML source file format here for your reference:--
<?xml version="1.0" encoding="iso-8859-1" ?>
- <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
- <asx:values>
- <TAB>
- <items>
+ <CUSTOMER_RECORD>
<CUSTOMER_NUMBER>1111111111</CUSTOMER_NUMBER>
<NAME_1>ABC</NAME_1>
<NAME_2>OFM/COMMERCIAL ACCOUNTS</NAME_2>
<STREET_1>31 CENTER DRIVE MCS2045</STREET_1>
<STREET_2 />
<CITY>BETHESDA</CITY>
<STATE_CODE>MD</STATE_CODE>
<POSTAL_CODE>20892-2045</POSTAL_CODE>
<COUNTRY_CODE>US</COUNTRY_CODE>
<ORDER_BLOCK />
<ERP_CREATE_DATE>20040610</ERP_CREATE_DATE>
<ERP_CREATED_BY>DGUPTA</ERP_CREATED_BY>
<ERP_MODIFY_DATE>20120201</ERP_MODIFY_DATE>
<ERP_MODIFIED_BY>LWOHLFEI</ERP_MODIFIED_BY>
<INDUSTRY_CODE>0103</INDUSTRY_CODE>
<ACCOUNT_GROUP_ID>0001</ACCOUNT_GROUP_ID>
<SALES_NOTE />
<ADDRESS_NOTE />
<CUSTOMER_CLASSIFICATION_CODE>02</CUSTOMER_CLASSIFICATION_CODE>
<GLN_NUMBER />
<PREVIOUS_ACCT_NO />
<ACCOUNT_TYPE />
<GAG />
<SDI_ID />
<HOSP_ID />
<HIN />
<DUNS />
<PO_BOX />
<POB_CITY />
<POB_ZIP />
<PHONE_NUMBER>77777</PHONE_NUMBER>
<EMAIL_DOMAIN />
<REQUESTER />
<ERP_SOURCE_SYSTEM>ECC</ERP_SOURCE_SYSTEM>
</CUSTOMER_RECORD>
- <SALES_ORG_DATA>
+ <item>
<CUSTOMER_NUMBER>1111111111</CUSTOMER_NUMBER>
<SALES_ORG>0130</SALES_ORG>
<CUSTOMER_GROUP>03</CUSTOMER_GROUP>
<ORDER_BLOCK_CODE />
<ERP_SOURCE_SYSTEM>ECC</ERP_SOURCE_SYSTEM>
</item>
+ <item>
<CUSTOMER_NUMBER>1111111111</CUSTOMER_NUMBER>
<SALES_ORG>0120</SALES_ORG>
<CUSTOMER_GROUP>11</CUSTOMER_GROUP>
<ORDER_BLOCK_CODE />
<ERP_SOURCE_SYSTEM>ECC</ERP_SOURCE_SYSTEM>
</item>
</SALES_ORG_DATA>
</items>
</TAB>
</asx:values>
</asx:abap>Pierre,
Depending on the object "myLastFile", the method openDlg might not even exist (if the myLastFile object is not a File object, for instance). And I do not see any need for the myLastFile anyhow, as you are presenting a dialog to select a file to open. I recommend using the global ChooseFile( ) method instead. This will give you a filename as string in full path notation, or null when no file was selected in the dialog. I am not sure what your ExtendScript documentation states about the return value for ChooseFile, but if that differs from what I am telling you here, the documentation is wrong. So, if you replace the first lines of your code with the following it should work:
function openXMLFile ( ) {
var filename = ChooseFile ( "Choose XML file ...", "", "*.xml", Constants.FV_ChooseSelect );
While writing this, I see that Russ has already given you the same advice. Use the symbolic constant value I indicated to use the ChooseFile dialog to select a single file (it can also be used to select a directory or open a file - but you want to control the opening process yourself). Note that this method allows you to set a start directory for the dialog (second parameter). The ESTK autocompletion also gives you a fifth parameter "helplink" which is undocumented and can safely be ignored.
Good luck
Jang -
since installing the latest update, Firefox first operated with some errors but now will not load at all; it gives me the following error --
XML Parsing Error: not well formed
locations chrome://browser/content/browser.xml
Line Number 1191, column 20:
utton id="back-forward-dropmarker" type="menu" chromedir="&locale.dir;"-------------------
please note that the words "utton ID" are exactly as the error message gives it; and at the end of the message there are exactly 19 hyphens.
I don't know why this faulty code is referencing things to do with "chrome"... the Chrome browser is not installed on this PC or anywhere on our network.
Also, this is not the first problem I had after clicking Firefox's prompt for the latest update. Before Firefox retreated into this error message, it was loading but running with some faults...
1. the bookmark symbol was not appearing on the right hand side of the URL line, so I had always to click on "bookmark this page", after which the bookmark symbol did appear; however I don't know if the bookmarking function worked properly.
2. the back and forward buttons were not highlighted, as if I had not come from a previous page; so once I clicked on a link to a new page I could not go back to where I came from because Fiefox thought I hadn't come from anywhere.
3. there may have been other errors, but I did not find them.
How do I reinstate my Firefox program to work properly please? do I have to download the latest version and reinstal? if so, do I have to remove the old version first? or is there a fix?
Even to write this message I have been forced to use (yuk -- I don't like to say this!!!) Internet Explorer. So please -- I need help urgently.
Thanks,
NOELSome how I solved my problem by opening a user account and downloading Firefox 4.0 beta and installing it, I did try it, worked fine, so I did close the user account and did go back to my own account(switched user), the main page that I had problem with Firefox which would not open, I dabble click on Firefox it start working again!! I hope that solves your problem too.
firefox will not open, it gives me this cod and would not turn off, Error on switching in renew: NS_ERROR_UNEXPECTED, Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] id: none -
I developed a Report which proces an XML document based on the following schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://palaciohierro.com.mx/mde/ebre"
xmlns="http://palaciohierro.com.mx/mde/ebre"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:phtypes="http://palaciohierro.com.mx/mde/phtypes"
elementFormDefault="qualified">
<xsd:import namespace="http://palaciohierro.com.mx/mde/phtypes"
schemaLocation="http://serreg2.palaciohierro.com.mx:8888/mdews/schema/services-types.xsd"/>
<xsd:annotation>
<xsd:documentation xml:lang="es">
Esquema de respuesta de busqueda de eventos para la Mesa de Eventos Web
Copyright 2002 palaciodehierro.com.mx. Todos los derechos reservados.
</xsd:documentation>
</xsd:annotation>
<xsd:element name="evento-busqueda-respuesta">
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="erType">
<xsd:attributeGroup ref="phtypes:servicioIdGroup"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:unique name="id_busqueda">
<xsd:selector xpath="busqueda"/>
<xsd:field xpath="@id_busqueda"/>
</xsd:unique>
</xsd:element>
<xsd:complexType name="erType">
<xsd:annotation>
<xsd:documentation>respuesta de busqueda de eventos</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="busqueda" type="busquedaType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="busquedaType">
<xsd:annotation>
<xsd:documentation>evento</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="evento" type="eventoType" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="id_busqueda" type="phtypes:identifierType" use="required"/>
<xsd:attribute name="encontrado" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="comentario" type="phtypes:comentarioType" use="optional"/>
</xsd:complexType>
<xsd:complexType name="eventoType">
<xsd:annotation>
<xsd:documentation>datos del evento</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="organizador" type="organizadorType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="entrega" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="domicilioType">
<xsd:sequence>
<xsd:element name="persona" type="phtypes:personaType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id_evento" type="phtypes:identifierType" use="required"/>
<xsd:attribute name="numero" type="phtypes:identifierType" use="optional"/>
<xsd:attribute name="envoltura" type="xsd:string" use="optional"/>
<xsd:attribute name="usuario" type="xsd:string" use="required"/>
<xsd:attribute name="tipo_evento" type="xsd:string" use="required"/>
<xsd:attribute name="tipo_cliente" type="xsd:string" use="required"/>
<xsd:attribute name="tienda" type="xsd:positiveInteger" use="required"/>
<xsd:attribute name="plan" type="xsd:string" use="optional"/>
<xsd:attribute name="fecha_evento" type="xsd:date" use="required"/>
<xsd:attribute name="fecha_registro" type="xsd:date" use="required"/>
<xsd:attribute name="fecha_lista" type="xsd:date" use="optional"/>
<xsd:attribute name="fecha_cierre" type="xsd:date" use="optional"/>
<xsd:attribute name="estado" type="phtypes:estadoEventoType" use="optional"/>
<xsd:attribute name="com_general" type="xsd:string" use="optional"/>
<xsd:attribute name="com_envio" type="xsd:string" use="optional"/>
<xsd:attribute name="NIP" type="xsd:string" use="optional"/>
<xsd:attribute name="VIP" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="organizadorType">
<xsd:annotation>
<xsd:documentation>datos del organizador</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="phtypes:personaType">
<xsd:attribute name="id_participante" type="phtypes:identifierType" use="required"/>
<xsd:attribute name="tipo" type="xsd:string" use="required"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="entregaType">
<xsd:annotation>
<xsd:documentation>domicilio de entrega de regalos</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="domicilio" type="domicilioType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="tipo" type="xsd:string" use="required"/>
<xsd:attribute name="nombre" type="xsd:string" use="required"/>
</xsd:complexType>
<xsd:complexType name="domicilioType">
<xsd:annotation>
<xsd:documentation>datos del domicilio</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="phtypes:domicilioType">
<xsd:attribute name="id_domicilio" type="phtypes:identifierType" use="required"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
after setting both the schema and the XML document I want the Report to be based on, I get the following error:
ERROR 63001: Invalid stream in the URL address of the data definition http://myserver:8888/myapp/evento-estadocuenta-respuesta.xsd eventoType.
Are there any restrictions on the schema that the XML Reports PDS can process?
Where could I find documentation on this isssues?
Thanks,
FedroIndeed, I have found that no xsd includes and complex types will work. There's a faint mention of this in the Report's Realease Notes, but nothing complete and thorough.
I have found that only the simpliest XML schemas with no custom types and (only a few elements of simple types will work). And also, a simple File-Row-column XML layout will work.
It seems to me that the XML PDS is still a newborn, and a lot of work still needs to be done to be practical and useful... long way to get something like FOP.
Well, the whole idea of having a web service which will feed XML docs to both parties and Report's services will have to stay in the oven a little longer (or may be not so little).
Thanks anyway,
Fedro -
SubTemplate call is failing with XML-22002 error
Hi,
I am using Oracle BI Publisher 10.1.3.4 in WebLogic Server 10.3.6.0.
Subtemplate reference is used in some reports. Whn we click on view of such report, below error is shown.
"The report cannot be rendered because of an error, please contact the administrator."
The patch 9017232 is also installed.
The detailed error log is below:
[111413_123806333][oracle.apps.xdo.common.xml.XSLTWrapper][ERROR] XSL error:
<Line 3, Column 71>: XML-22002: (Fatal Error) Error while processing include XSL file (xdoxsl:///FCReports/HeaderFooter_LandScape.xsb).
<Line 78, Column 312>: XML-22008: (Error) Namespace prefix 'ref' used but not declared.
@Line 3 ==> <xsl:import href="xdoxsl:///FCReports/HeaderFooter_LandScape.xsb"/>
[111413_123806337][oracle.apps.xdo.template.FOProcessor][EXCEPTION] java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at oracle.apps.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.java:91)
at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:276)
at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:554)
at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:257)
at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:97)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'ref' used but not declared.
at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:614)
... 38 more
Syntax used in Report is
<?import:xdoxsl:///Reports/HeaderFooter_LandScape.xsb?loc=en_US><?call@inlines:Header?><?with-param:PM_REPORT_NAME;string('Customer details report')?><?end call?>
XDO.CFG file contents
<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
<properties>
<property name="bursting-multithreading-on">false</property>
<property name="xdk-secure-io-mode">false</property>
<property name="xslt-scalable">true</property></properties>
</config>
Please suggest whether this issue is with BI report setup.
Thanks in Advance.
Regards,
Bala.Hi Surya,
Would you let us know from where you are calling web service and for what?
And if possible provide error log as screenshot or txt file. So that it will be easy to trace issue.
For gland your issue, go through below posts
Not able to execute MII Transaction as web service
Error calling BLS Transaction as Web service
Problem in generating wsdl ?
Create MII transaction & MII Web Service and consume them in ABAP
Regards,
Praveen Reddy -
XML-24521: (Error) Element not completed
I am trying to map a collection of information to a partnerlink's input variable, using a for-each xsl node in the transformation, however I receive this error during my testing:
Target XML is invalid for the target schema.
<Line 14, Column 38>: XML-24521: (Error) Element not completed: 'ExecuteGloviaSP4ProcessRequest'
At first I thought this was an issue related to the database adapter, now I'm thinking it has to do with the collection or the xsd? But we modled the xsd after the OrderBooking PO xsd...
Here's my Transformation_1.xml
<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
<!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
<mapSources>
<source type="WSDL">
<schema location="http://Comp3/RFPOTest.wsdl"/>
<rootElement name="invoiceCollection" namespace="http://199.244.49.95/NotesRFPOInvoice.xsd"/>
</source>
</mapSources>
<mapTargets>
<target type="WSDL">
<schema location="http://bpel.thomasnow.com:80/orabpel/default/ExecuteGloviaSP4/ExecuteGloviaSP4?wsdl"/>
<rootElement name="ExecuteGloviaSP4ProcessRequest" namespace="http://xmlns.oracle.com/ExecuteGloviaSP4"/>
</target>
</mapTargets>
<!-- GENERATED BY ORACLE XSL MAPPER 10.1.2.0.0(build 050504) AT [FRI MAR 24 08:49:55 CST 2006]. -->
?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://Comp3/RFPOTest.wsdl" xmlns:xsd1="http://199.244.49.95/NotesRFPOInvoice.xsd" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:ns1="http://xmlns.oracle.com/ExecuteGloviaSP4" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" exclude-result-prefixes="xsl ns0 soap tns xsd1 plnk ns1 wsa bpws ldap xp20 ora orcl">
<xsl:template match="/">
<xsl:for-each select="/xsd1:invoiceCollection">
<ns1:ExecuteGloviaSP4ProcessRequest>
<ns1:invCCN>
<xsl:value-of select="xsd1:invoice/xsd1:invCCN"/>
</ns1:invCCN>
<ns1:invVendorNbr>
<xsl:value-of select="xsd1:invoice/xsd1:invVendorNbr"/>
</ns1:invVendorNbr>
<ns1:invVendorApLoc>
<xsl:value-of select="xsd1:invoice/xsd1:invVendorApLoc"/>
</ns1:invVendorApLoc>
<ns1:invVendorInvoiceNbr>
<xsl:value-of select="xsd1:invoice/xsd1:invVendorInvoiceNbr"/>
</ns1:invVendorInvoiceNbr>
<ns1:invTotal>
<xsl:value-of select="xsd1:invoice/xsd1:invTotal"/>
</ns1:invTotal>
<ns1:invFreight>
<xsl:value-of select="xsd1:invoice/xsd1:invFreight"/>
</ns1:invFreight>
<ns1:invTax>
<xsl:value-of select="xsd1:invoice/xsd1:invTax"/>
</ns1:invTax>
<ns1:invDate>
<xsl:value-of select="xsd1:invoice/xsd1:invDate"/>
</ns1:invDate>
<ns1:invVendorTerms>
<xsl:value-of select="xsd1:invoice/xsd1:invVendorTerms"/>
</ns1:invVendorTerms>
<ns1:invUNID>
<xsl:value-of select="xsd1:invoice/xsd1:invUNID"/>
</ns1:invUNID>
<ns1:invGLDist>
<xsl:value-of select="xsd1:invoice/xsd1:invGLDist"/>
</ns1:invGLDist>
</ns1:ExecuteGloviaSP4ProcessRequest>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>Update:
By mapping static values to the last three elements in the target schema, I was able to make this error go away.
Here's the code:
<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
<!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
<mapSources>
<source type="WSDL">
<schema location="http://Comp3/RFPOTest.wsdl"/>
<rootElement name="invoiceCollection" namespace="http://199.244.49.95/NotesRFPOInvoice.xsd"/>
</source>
</mapSources>
<mapTargets>
<target type="WSDL">
<schema location="http://bpel.thomasnow.com:80/orabpel/default/ExecuteGloviaSP4/ExecuteGloviaSP4?wsdl"/>
<rootElement name="ExecuteGloviaSP4ProcessRequest" namespace="http://xmlns.oracle.com/ExecuteGloviaSP4"/>
</target>
</mapTargets>
<!-- GENERATED BY ORACLE XSL MAPPER 10.1.2.0.0(build 050504) AT [FRI MAR 24 11:02:02 CST 2006]. -->
?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://Comp3/RFPOTest.wsdl" xmlns:xsd1="http://199.244.49.95/NotesRFPOInvoice.xsd" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:ns1="http://xmlns.oracle.com/ExecuteGloviaSP4" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" exclude-result-prefixes="xsl ns0 soap tns xsd1 plnk ns1 wsa bpws ldap xp20 ora orcl">
<xsl:template match="/">
<xsl:for-each select="/xsd1:invoiceCollection/xsd1:invoice">
<ns1:ExecuteGloviaSP4ProcessRequest>
<ns1:invCCN>
<xsl:value-of select="xsd1:invCCN"/>
</ns1:invCCN>
<ns1:invVendorNbr>
<xsl:value-of select="xsd1:invVendorNbr"/>
</ns1:invVendorNbr>
<ns1:invVendorApLoc>
<xsl:value-of select="xsd1:invVendorApLoc"/>
</ns1:invVendorApLoc>
<ns1:invVendorInvoiceNbr>
<xsl:value-of select="xsd1:invVendorInvoiceNbr"/>
</ns1:invVendorInvoiceNbr>
<ns1:invTotal>
<xsl:value-of select="xsd1:invTotal"/>
</ns1:invTotal>
<ns1:invFreight>
<xsl:value-of select="xsd1:invFreight"/>
</ns1:invFreight>
<ns1:invTax>
<xsl:value-of select="xsd1:invTax"/>
</ns1:invTax>
<ns1:invDate>
<xsl:value-of select="xsd1:invDate"/>
</ns1:invDate>
<ns1:invVendorTerms>
<xsl:value-of select="xsd1:invVendorTerms"/>
</ns1:invVendorTerms>
<ns1:invUNID>
<xsl:value-of select="xsd1:invUNID"/>
</ns1:invUNID>
<ns1:invGLDist>
<xsl:value-of select="xsd1:invGLDist"/>
</ns1:invGLDist>
<ns1:invICN>
<xsl:value-of select="concat(0,"")"/>
</ns1:invICN>
<ns1:invCurrency>
<xsl:value-of select="concat("USD","")"/>
</ns1:invCurrency>
<ns1:invGLDistCode>
<xsl:value-of select="concat(" ","")"/>
</ns1:invGLDistCode>
</ns1:ExecuteGloviaSP4ProcessRequest>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
However I have a new error now, since I'm also mapping the Collection to the for-each XSL node.
Target XML is invalid for the target schema.
<Line 18, Column 1>: XML-20100: (Fatal Error) Expected 'EOF'.
Searching... -
XML Parsing Error: XML or text declaration not at start of entity
Location: https://evalue.internationaldelivers.com/service/SVCDOCS/Navistar/isisxsl.xsl
Line Number 2, Column 1:<?xml version='1.0'?>
^
That is the error I receive the page loads and half the content appears but the other half is blank and I receive that instead. I can attach a screenshot if needed.May be cookies issue try this
Reload the webpage while bypassing the cache
*Hold down the ''Shift'' key and click the ''Reload'' button with a left click.
*Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
*Press ''Command'' + ''Shift'' + ''R'' (Mac)
Clear the cache and the cookies from sites that cause problems.
'''Clear the Cache''': Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
'''Remove Cookies''' from sites causing problems:
*Tools > Options > Privacy > Cookies: "Show Cookies"
*https://support.mozilla.org/en-US/kb/websites-say-cookies-are-blocked-unblock-them -
XML Parser Error while creating Web service Client using JAX RPC
hello evryone,
Im facing XML Parser Error while creating web service client using JAX RPC. Im using Net Beans IDE for development purpose. I have wrote configuration file for client. Now i want to create Client stub. However i dont know how to do this in Net Beans. So i tried to do it from Command promt using command :
wscompile -gen:client -d build -classpath build config-wsdl.xml
here im getting Error:
error parsing configuration file: XML parsing error: com.sun.xml.rpc.sp.ParseException:10: XML declaration may only begin entities
Please help me out.
Many thanks in advance,
KaceeCan i use the client generated using jdeveloper 11g to import into the oracle forms 10g, i.e., form builder 10g. Currently this is the version we have in our office.
-
XML parsing error: web-jsptaglibrary_1_1.dtd not found
I'm getting the following Exception while Tomcat is parsing my welcome jsp page:
exception
org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/struts-template.tld: Internal Error: File /javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd not found
at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:227)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1170)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:765)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:125)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:534)
This is the reference to the dtd its not finding from the tld
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
Do you think this is a bug with the parser itself or an incompatablilty between it and the tag library?
Or am I missing something?
Thanks for any help..... AndyStore the web-jsptaglibrary_1_1.dtd to a directory and specify the file url.
<!DOCTYPE taglib SYSTEM "file://C:/dtds/web-jsptaglibrary_1_1.dtd"> -
Hello Experts,
I am passing a XML document form the Java to Flex using Remote Object. My XML is as follows
<root>
<dept ID="1" Name="RND"
<Emp ID="1" Name="Aj"/>
</dept>
<dept ID="2" Name="ENG">
<Emp ID="1" Name="Aj"/>
</dept>
<dept ID="3" Name="MECH">
<Emp ID="1" Name="Aj"/>
</dept>
</root>
In Flex i am trying to access using below code
treeData = event.result as XML;
deptTree.dataProvider = treeData;
I am getting the below exception and
[RPC Fault faultString="org.w3c.dom.DOMException : INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. " faultCode="Server.Processing" faultDetail="null"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at NetConnectionMessageResponder/statusHandler()
at mx.messaging::MessageResponder/status()
When i tried creating this XML locally and tried to access then i didn't faced any issue.
Please help me to resolve this issue.
Thanks in advance.
AjHi
I think this will help u
DOMException.INVALID_CHARACTER_ERR (Error Code 5)
W3C DOM Level 1
A DOMException.INVALID_CHARACTER_ERR is thrown whenever an invalid or illegal character is specified, such as in a name.
NOTE: Names in XML can contain English letters (of any case), numbers (0-9), underscores (_), periods(.) and hyphens (-). Names cannot begin with a number, period or hyphen. Names can also contain a colon, but the use of colons outside of namespaces should be avoided.
XML for <SCRIPT> uses the following regular expression to determin if a name is valid:
/^[a-zA-Z_:][a-zA-Z0-9\.\-_:]*$/
Example:
function xmljsDOMExample() {
var xml;
xml = ""
+ "<?xml version=\"1.0\"?>"
+ "<ROOT>"
+ "<TAG1>"
+ "Hello"
+ "</TAG1>"
+ "</ROOT>";
//instantiate the W3C DOM Parser
var parser = new DOMImplementation();
//load the XML into the parser and get the DOMDocument
var domDoc = parser.loadXML(xml);
//get the root node
var docRoot = domDoc.getDocumentElement();
//The following should raise a DOMException.INVALID_CHARACTER_ERR
//because element names cannot contain the "*" character
try {
domDoc.createElement("***");}
catch (e) {
if (e.code == DOMException.INVALID_CHARACTER_ERR) {
//display the error message
alert(parser.translateErrCode(e.code));
else {
alert("unexpected exception");
alert(e.code);
}// end function xmljsDOMExample -
XML Parsing error in PL/SQL
Hello,
I have some problem in parsing Mircrosoft OpenXML file using Oracle 10g Release2 XML Parser for PL/SQL.
I use dbms_xmlparser, dbms_xmldom, dbms_xslprocessor packages
OpenXML file use "w:" as namespace, so every element has prefix "w:" like
<w:wordDocument ..>
<w:body..>
<w:p..>
<w:r..>
<w:t..>
My job is to read OpenXML file inside PL/SQL code, parse it, and load it into the corresponding table.
Here is my PL/SQL code.
DECLARE
doc dbms_xmldom.DOMDocument;
node_list dbms_xmldom.DOMNodeList;
l_node dbms_xmldom.DOMNode;
one_element dbms_xmldom.DOMElement;
PROCEDURE p (msg VARCHAR2, nl BOOLEAN := TRUE) IS
BEGIN
dbms_output.put_line (msg);
IF nl THEN dbms_output.put(CHR(10)); END IF;
END:
BEGIN
doc := xml.parse(BFileName('XML_DIR','OpenXMLFile.xml'));
node_list := xpath.selectNodes(doc, '/w:wordDocument/w:body/w:p/w:r/w:t');
FOR j IN 0..dbms_xmldom.getLength(node_list)-1
LOOP
p( xpath.valueOf(dbms_xmldom.item(node_list, j), '.'), nl=>FALSE );
END LOOP;
Here is the error message.
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00601: Invalid token in: '/w:wordDocument/w:body/w:p/w:r/w:t
[starts-with(., "!")]'
ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 900
ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 928
ORA-06512: at "SYSTEM.XPATH", line 173
ORA-06512: at "SYSTEM.XPATH", line 179
ORA-06512: at line 38
I really don't know why I got this error message nor how to solve it. If I remove "w:" manually within open xml file, then parsing works well. I guess XML parser for PL/SQL doesn't recognize ":" or maybe doesn't support namespace?
My question is
1. In oracle 10g release2, XML Parser for PL/SQL can recognize ":" in the element name? or does it support namespace? If not, is there any workaround for solving this problem?
2. How can I make XML Parser recognize ":" in the element name in the xml file or How can I declare namespace in the PL/SQL code so that PL/SQL xml parser can recognize namespace like "w:"?
In fact, I don't use XML DB and what I want to do is just to load XML file into the relational table and some parts of whole XML file will be inserted into the CLOB in the table.
Should I really use XML DB to do the above job?
Any comment or suggestions will be greatly appreciated.This works correctly. I added prefixes to your extract path. (I had to add the xmlns:xsi to your root node also.)
declare
-- Local variables here
doc_in dbms_xmldom.DOMDocument;
aNodeList dbms_xmldom.DOMNodeList;
begin
-- Test statements here
doc_in := dbms_xmldom.newdomdocument(
'<?xml version="1.0" encoding="UTF-8"?>' ||
'<ap:Collection xmlns:ap="http://www.abc.com/ap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.abc.com/ap template.xsd"> ' ||
'<ap:info>' ||
'<ap:data name="Barbie" age="3">' ||
'</ap:data>' ||
'</ap:info>' ||
'</ap:Collection>');
aNodeList := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(doc_in),
'/ap:Collection/ap:info',
'xmlns:ap="http://www.abc.com/ap"');
dbms_output.put_line('length of aNodeList = '|| dbms_xmldom.getLength(aNodeList) );
end; -
XML-23002: (Error) internal xpath error while calling template
Hi,
I have used call-template named Chemloop in my xslt in the following way as attached in the xsl file. But when I am testing this xsl file through the bpel transformation, getting the error XML-23002: (Error) internal xpath error. Using this xslt I am converting a flat file into a xml file. My xslt except the call template part is working fine. Please suggest me if I m doing anything wrong.
XSLT:
<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
<mapSources>
<source type="WSDL">
<schema location="../ReadASNNAEbizAlcanFileAdapter.wsdl"/>
<rootElement name="SynchAdvancedShipmentNotice" namespace="http://oracle.com/EbizGateway/NA/SynchASN/V2"/>
</source>
</mapSources>
<mapTargets>
<target type="WSDL">
<schema location="../ReadASNNAEbizAlcanFileAdapter.wsdl"/>
<rootElement name="ShipNotice" namespace=""/>
</target>
</mapTargets>
<!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [TUE FEB 12 21:05:56 GMT+05:30 2013]. -->
?>
<xsl:stylesheet version="2.0"
xmlns:svcdoc="http://xmlns.oracle.com/Services/Documentation/V1"
xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:pc="http://xmlns.oracle.com/pcbpel/"
xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
xmlns:alcebo="http://oracle.com/EbizGateway/NA/SynchASN/V2"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
xmlns:med="http://schemas.oracle.com/mediator/xpath"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:alcabcs="http://xmlns.oracle.com/pcbpel/adapter/file/T2FJAN/CreateASNNAEBIZAlcanProvABCSImpl/ReadASNNAEbizAlcanFileAdapter"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
exclude-result-prefixes="xsi xsl pc alcebo plnk wsdl jca xsd alcabcs aia bpws xp20 bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref ldap">
<xsl:template match="/">
<ShipNotice>
<Header>
<BOLNo>
<xsl:value-of select="/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D1DP1_1000/alcebo:BILL_OF_LADING_1000"/>
</BOLNo>
<TripNo>
<xsl:value-of select="/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D1DP1_1000/alcebo:TRIP_NAME_1000"/>
</TripNo>
<Action>
<xsl:text disable-output-escaping="no"></xsl:text>
</Action>
<Attr1>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr1>
<Attr2>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr2>
<Attr3>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr3>
<Attr4>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr4>
<Attr5>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr5>
</Header>
<Shipment>
<ShipDate>
<xsl:value-of select="/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D1DP1_1000/alcebo:DEPARTURE_DATE_1000"/>
</ShipDate>
<RouteCode>
<xsl:value-of select="/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:SHIP_METHOD_CODE_EXT4_1010"/>
</RouteCode>
<xsl:choose>
<xsl:when test='/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:SHIP_METHOD_CODE_EXT1_1010 = "R"'>
<RateRouteCode>
<xsl:value-of select="/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:SHIP_METHOD_CODE_EXT3_1010"/>
</RateRouteCode>
</xsl:when>
<xsl:otherwise>
<RateRouteCode>
<xsl:value-of select="/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:SHIP_METHOD_CODE_EXT1_1010"/>
</RateRouteCode>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test='/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:SHIP_METHOD_CODE_EXT1_1010 = "R"'>
<CarrierCode>
<xsl:value-of select="/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:SHIP_METHOD_CODE_EXT3_1010"/>
</CarrierCode>
</xsl:when>
<xsl:otherwise>
<CarrierCode>
<xsl:value-of select="/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:SHIP_METHOD_CODE_EXT1_1010"/>
</CarrierCode>
</xsl:otherwise>
</xsl:choose>
<TransportModeCode>
<xsl:value-of select="substring(/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:SHIP_METHOD_CODE_EXT2_1010,1.0,1.0)"/>
</TransportModeCode>
<TransportModeType>
<xsl:value-of select="normalize-space(/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:RTIN1_1030/alcebo:ROUTING_INSTRUCTIONS1_1030)"/>
</TransportModeType>
<xsl:choose>
<xsl:when test='normalize-space(/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:SHIP_METHOD_CODE_EXT1_1010) = "R"'>
<TrailerNo>
<xsl:value-of select="concat(/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:A1DL1_3600[1]/alcebo:DELIVERY_ATTRIBUTE1_3600,/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:A2DL2_3610[1]/alcebo:DELIVERY_ATTRIBUTE5_3610)"/>
</TrailerNo>
</xsl:when>
<xsl:otherwise>
<TrailerNo>
<xsl:value-of select="normalize-space(/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:EQUIPMENT_NUMBER_1010)"/>
</TrailerNo>
</xsl:otherwise>
</xsl:choose>
<SealNo>
<xsl:value-of select="normalize-space(/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D2DP2_1010[1]/alcebo:EQUIPMENT_SEAL_1010)"/>
</SealNo>
<Quantity>
<xsl:value-of select='sum(/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:UnpackedOrder/alcebo:UnpackedItemDetail/alcebo:I3IT3_4520/alcebo:SHIPPED_QUANTITY_4520) + sum(format-number(/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:UnpackedOrder/alcebo:P1PO1_4000/alcebo:FREIGHT_TERMS_CODE_EXT3_4000,"##############0.00"))'/>
</Quantity>
<QuantityUOM>
<xsl:value-of select="normalize-space(/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:D3DP3_1015[1]/alcebo:DELIVERY_TARE_WEIGHT_UOM_EXT1_1015)"/>
</QuantityUOM>
<Attr1>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr1>
<Attr2>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr2>
<Attr3>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr3>
<Attr4>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr4>
<Attr5>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr5>
<ShipmentItems>
<xsl:for-each select="/alcebo:SynchAdvancedShipmentNotice/alcebo:AdvanceShipmentNotice/alcebo:ASNShipmentLevel/alcebo:UnpackedOrder">
<ShipmentItem>
<ShipListNo>
<xsl:value-of select='concat(substring("0000",1.0,4.0 - string-length(string(position()))),string(position()))'/>
</ShipListNo>
<OrderNo>
<xsl:value-of select="normalize-space(alcebo:P1PO1_4000/alcebo:PURCHASE_ORDER_NUMBER_4000)"/>
</OrderNo>
<LineNo>
<xsl:value-of select="normalize-space(alcebo:UnpackedItemDetail/alcebo:I2IT2_4510[1]/alcebo:CUST_PO_LINE_NUM_4510)"/>
</LineNo>
<ItemNoXref>
<xsl:value-of select="normalize-space(alcebo:UnpackedItemDetail/alcebo:I1IT1_4500[1]/alcebo:BUYER_PART_NO_4500)"/>
</ItemNoXref>
<AlcoaPartNo>
<xsl:value-of select="normalize-space(alcebo:UnpackedItemDetail/alcebo:I1IT1_4500[1]/alcebo:SUPPLIER_PART_NUMBER_4500)"/>
</AlcoaPartNo>
<Quantity>
<xsl:value-of select="sum(alcebo:UnpackedItemDetail/alcebo:I3IT3_4520/alcebo:SHIPPED_QUANTITY_4520)"/>
</Quantity>
<QuantityUOM>
<xsl:value-of select="normalize-space(alcebo:UnpackedItemDetail/alcebo:I3IT3_4520[1]/alcebo:ORDER_QUANTITY_UOM_INT_4520)"/>
</QuantityUOM>
<TareWeight>
<xsl:value-of select='format-number(alcebo:P1PO1_4000/alcebo:FREIGHT_TERMS_CODE_EXT3_4000,"##############0.##")'/>
</TareWeight>
<TareWeightUOM>
<xsl:value-of select="normalize-space(alcebo:UnpackedItemDetail/alcebo:I3IT3_4520[1]/alcebo:ORDER_QUANTITY_UOM_INT_4520)"/>
</TareWeightUOM>
<Attr1>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr1>
<Attr2>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr2>
<Attr3>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr3>
<Attr4>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr4>
<Attr5>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr5>
<xsl:for-each select="alcebo:UnpackedItemDetail">
<Bundle>
<LotNo>
<xsl:value-of select="alcebo:DeliveryDetail/alcebo:LSDET_5500[1]/alcebo:LOT_NUMBER_5500"/>
</LotNo>
<SubLotNo>
<xsl:value-of select="alcebo:DeliveryDetail/alcebo:EX02_5591[1]/alcebo:DSNO_LEV06_EXT09_5591"/>
</SubLotNo>
<Quantity>
<xsl:value-of select="alcebo:I3IT3_4520[1]/alcebo:SHIPPED_QUANTITY_4520"/>
</Quantity>
<QuantityUOM>
<xsl:value-of select="alcebo:I3IT3_4520[1]/alcebo:ORDER_QUANTITY_UOM_INT_4520"/>
</QuantityUOM>
<Pieces>
<xsl:value-of select="alcebo:DeliveryDetail/alcebo:EX02_5591[1]/alcebo:DSNO_LEV06_EXT10_5591"/>
</Pieces>
<Attr1>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr1>
<Attr2>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr2>
<Attr3>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr3>
<Attr4>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr4>
<Attr5>
<xsl:text disable-output-escaping="no"></xsl:text>
</Attr5>
<!-- User Defined Templates -->
<xsl:call-template name="Chemloop">
<xsl:with-param name="i">1</xsl:with-param>
</xsl:call-template>
</Bundle>
</xsl:for-each>
</ShipmentItem>
</xsl:for-each>
</ShipmentItems>
</Shipment>
</ShipNotice>
</xsl:template>
<xsl:template name="Chemloop">
<xsl:param name="i"/>
<xsl:variable name="ChemRow"
select="concat(/alcebo:DeliveryDetail[position()]/alcebo:EX01_5590[1]/alcebo:DSNO_LEV06_EXT01_5590,/alcebo:DeliveryDetail[position()]/alcebo:EX01_5590[1]/alcebo:DSNO_LEV06_EXT02_5590,/alcebo:DeliveryDetail[position()]/alcebo:EX01_5590[1]/alcebo:DSNO_LEV06_EXT03_5590,/alcebo:DeliveryDetail[position()]/alcebo:EX01_5590[1]/alcebo:DSNO_LEV06_EXT04_5590)"/>
<xsl:variable name="ChemBlock"
select="substring($ChemRow,1+($i-1)*33,33)"/>
<xsl:if test="$ChemBlock!=' '">
<ChemicalAnalysis>
<ElementName>
<xsl:value-of select="substring($ChemBlock,1,5)"/>
</ElementName>
<RNDValue>
<xsl:value-of select="substring($ChemBlock,6,15)"/>
</RNDValue>
<ValueQualifier>
<xsl:value-of select="substring($ChemBlock,21,2)"/>
</ValueQualifier>
<NumDecimals>
<xsl:value-of select="substring($ChemBlock,23,3)"/>
</NumDecimals>
<DropNo>
<xsl:value-of select="substring($ChemBlock,26,8)"/>
</DropNo>
</ChemicalAnalysis>
</xsl:if>
<xsl:if test="($ChemBlock=' ') and $i=1">
<xsl:message terminate="yes">No Chemical data found</xsl:message>
</xsl:if>
<xsl:if test="$i <= 26">
<xsl:call-template name="Chemloop">
<xsl:with-param name="i">
<!-- Increment index-->
<xsl:value-of select="$i + 1"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>I can't get what are you trying to achieve by a construction like bellow...
/alcebo:DeliveryDetail[position()]
Remember XSLT is not a procedural language... a selector like /alcebo:DeliveryDetail[position() = $var] or just /alcebo:DeliveryDetail[$var] would make more sense...
Cheers,
Vlad -
XML Serialization Error- While testing BAPI turned Web service
I have a requirement to create sales order in SAP R/3 from an e-commerce site. I went through many forums suggesting "exposing FMs into Web Service". I wrapped BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT into one FM and exposed as Web Service. I did a successful test-sequence.
When I tested the web service without giving values I got a response asking for "Sold-to Party or Ship-To Party". While testing the Web service with some values, I got the below error -
XML Serialization Error. Object content does not correspond to Schema restrictions of type [urn:sap-com:document:sap:rfc:functions][numeric4].
The e-commerce team tried to hit the Web service and got the below error-
IWAB0383E Error validating parameters
Note: Our servers does not have any ENHPacks. Only ECC 6.0.
Please suggest what might have gone wrong and how to resolve this.
Thanks!Hi Gourav Khare,
I have created WSDL file through function module in SAP-ECC 5.0v.
I have followed below steps:
Crated FM (SE37)
Crated Web-service (SE37)
Generated WSDL file using (WSADMIN)
And consumed WSDF file in SOAP UI (SOAP UI 4.5.2 Trailer version)
Problem is: while consuming WSDL file in SOAP UI I getting ‘Serialisation failed’
For your reference I have furnished xml string below.
SOAP UI Input:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:rfc:functions">
<soapenv:Header/>
<soapenv:Body>
<urn:YSDF_INV_PRINT_FINAL_RFC_WS_N>
<!--Optional:-->
<PWR_INVOICE>
<INVOICE_SHIPPED_LINE>
<!--Zero or more repetitions:-->
<item>
<POSITION1></POSITION1>
<SALES_PART></SALES_PART>
<PART_DESC></PART_DESC>
<PRICE></PRICE>
<QUANTITY></QUANTITY>
<CUSTOMER_TAX_NO></CUSTOMER_TAX_NO>
<PROD_NONINVENTORY></PROD_NONINVENTORY>
<PROD_TAXABLE></PROD_TAXABLE>
<TAX_LEVEL></TAX_LEVEL>
</item>
</INVOICE_SHIPPED_LINE>
<INVOICE_NO></INVOICE_NO>
<ORDER_NO></ORDER_NO>
<DATE_PRINTED></DATE_PRINTED>
<DIV_CD></DIV_CD>
<LAST_COST_INVOICE></LAST_COST_INVOICE>
<DELETE_ZERO_COST></DELETE_ZERO_COST>
<DELETE_NON_SHIPPED></DELETE_NON_SHIPPED>
<GLOBALREF></GLOBALREF>
<ORIGIN></ORIGIN>
<ORIGINID></ORIGINID>
</PWR_INVOICE>
</urn:YSDF_INV_PRINT_FINAL_RFC_WS_N>
</soapenv:Body>
</soapenv:Envelope>
SOAP UI Output:
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<soap-env:Fault>
<faultcode>soap-env:Client</faultcode>
<faultstring xml:lang="en">Serialisation failed</faultstring>
<detail>
<n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">
<MainName>/1BCDWB/WSS0130716111624448000</MainName>
<ProgName>/1BCDWB/WSS0130716111624448000</ProgName>
<Line>8</Line>
<Valid>X</Valid>
<ReferenceFault>
<DescriptionText>Error accessing the ref. node 'INVOICE_ID'</DescriptionText>
<RefName>INVOICE_ID</RefName>
</ReferenceFault>
<Caller>
<Class>CL_SRG_RFC_PROXY_CONTEXT</Class>
<Method>IF_SXML_PART~DECODE</Method>
<Positions>1</Positions>
</Caller>
</n0:SimpleTransformationFault>
</detail>
</soap-env:Fault>
</soap-env:Body>
</soap-env:Envelope>
And one more things are
I don't know the exact reason, but now the WSDL is working fine. No Idea, will it be consistent.
No changes in import and export parameters of RFC and no change in code, even if the logic is changed it should not affect the output on SOAP UI but in my case it does.
Wonder why all this happens, I cannot explain the exact reason technically because my RFC works fine every time, only issue is with SOAP UI.
From SAP point of view FM is working fine, and input parameter of FM is optional, validations are done by the programming logic and it will capture the message and its details with respect to input data.
I am not sure SOAP will work consistently and we are using ECC 5.0 most of the t-code not there like "SOAMANAGER" and all.
Kindly help me on this
Thanks & Regards,
Akshath.L.T
Maybe you are looking for
-
'UIComponent is null' error while opening a tab in ADF
Hi, I am using JDeveloper 11.1.1.5.0 I am navigating from one ADF page to other in my ADF task flow. 2nd ADF page is having multiple tabs with showDetailItem. My requirement is that i need to open a particular tab in 2nd page from 1st page (1st page)
-
Add New Screen Fields in Delievery Line Item
Hello All, We have a requiremnet where we should add 3 custom fields to delivery line item tabs, please let me know how I can add a new tab for delievry line item tabs and how to add new custom screen fields in that tab,. Thanks Add New Screen Fields
-
How To Split File In to Multiple Files With out using B.P.M
Hi Guys, How To Split File In to Multiple Files With out using B.P.M. Thanks in advance Regards's KIran.B
-
Is there a way to reference a variable name by the value of a String?
I realize my title may not be expressing the question accurately so... In perl I can do this: $varname = "nIterations"; ${$varname} = 27; which is the same thing as $nIterations = 27; Is there a way to do this in Java? eg I want something like String
-
Location of downloaded .jar files?
When I was using the java in the jre package, downloaded .jar files would go to ~/.java I have switched to the openjdk6 package and I have no idea where downloaded .jar files go now... it seems as though they are cached in memory and not saved to di