Parsing error:Element "process" must have no character [children]
hi,
Please does any1 know how to fix this error ?
when deploying the poroject i got :
XML parsing failed because Element "process" must have no character [children], because the types content type is element-only......"
when double clicking on the above error, Jdevelopper takes me to the end of the process that is closed normally with the BPEL element </process>
Sorry i guess i'm flodding the Forum with my msgs, but am a beginner in the OraBPELPM.
Thanks,
Rana
Rana,
You'll probably get better answers for BPEL related questions if you post them on the BPEL forum here:
BPEL
Similar Messages
-
Error parsing! Element "process" must have no character [children],
hi,
Please does any1 know how to fix this error ?
when deploying the poroject i got :
XML parsing failed because Element "process" must have no character [children], because the types content type is element-only......"
when double clicking on the above error, Jdevelopper takes me to the end of the process that is closed normally with the BPEL element </process>
Sorry i guess i'm flodding the Forum with my msgs, but am a beginner in the OraBPELPM.
Thanks,
RanaSorry Ng for the delay,
Below is the simple .bpel cod eam trying to test:
"<process name="BpelDemoExample"
targetNamespace="http://xmlns.oracle.com/BpelDemoExample"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:IssuesWorkGroup="http://xmlns.oracle.com/BpelDemoExample"
xmlns:client="http://xmlns.oracle.com/BpelDemoExample">
-->
<partnerLinks>
<partnerLink name="IssuesWorkGroup" partnerLinkType="IssuesWorkGroupBPELDemoE" partnerRole="BpelDemoExampleProvider"/>
<partnerLink name="client" partnerLinkType="clientBPELDemoE" partnerRole="BpelDemoExampleRequester"/>
</partnerLinks>
<variables>
<variable name="AnnouceIssues_ProcessData" messageType="AnnouceIssues_ProcessDataMessage"/>
<variable name="outputVariable" messageType="BpelDemoExampleResponseMessage"/>
<variable name="Issueslistready" messageType="BpelDemoExampleRequestMessage"/>
</variables>
<sequence name="main" >
<receive partnerLink="IssuesWorkGroup" portType="processPort" operation="AnnouceIssues" variable="Issueslistready" createInstance="yes"/>
<wait name="HoldSixDays" for="6 days" until="38698"/>
<switch name="ReceivedEmail">
<case condition="Yes">
<sequence>
<invoke partnerLink="internal" name="CheckAgain" portType="processPort" operation="CheckAgain" inputVariable="outputVariable"/>
<empty/>
</sequence>
</case>
<otherwise>
<sequence>
<invoke partnerLink="client" name="PublishTheList" portType="processPort" operation="PublishTheList" inputVariable="outputVariable"/>
<empty/>
</sequence>
</otherwise>
</switch><!-- The detailed Mapping of all subProcesses -->
</sequence >
</process>
Thanks
Rana -
BAPI_ALM_ORDER_MAINTAIN error "BAPI call must have a SAVE or DIALOG method"
I have this test code below that I have written to update the work duration on a work order to 5 hours using the BAPI BAPI_ALM_ORDER_MAINTAIN. I however keep getting the error "BAPI call must have a SAVE or DIALOG method". Can someone tell me what I am doing wrong
data: begin of it_methods occurs 0.
include structure bapi_alm_order_method.
data: end of it_methods.
data: begin of it_operation occurs 0.
include structure bapi_alm_order_operation.
data: end of it_operation.
data: begin of it_operation_up occurs 0.
include structure bapi_alm_order_operation_up.
data: end of it_operation_up.
data: begin of it_return occurs 0.
include structure bapiret2.
data: end of it_return.
data: begin of it_et_numbers occurs 0.
include structure bapi_alm_numbers.
data: end of it_et_numbers.
it_methods-refnumber = '0000040000020010'.
it_methods-objecttype = 'OPERATION'.
it_methods-method = 'CHANGE'.
it_methods-objectkey = '0000040000020010'.
append it_methods.
it_operation-duration_normal = '5'.
append it_operation.
it_operation_up-duration_normal = 'X'.
append it_operation_up.
call function 'BAPI_ALM_ORDER_MAINTAIN'
tables
it_methods = it_methods
it_operation = it_operation
it_operation_up = it_operation_up
return = it_return
et_numbers = it_et_numbers.
call function 'BAPI_TRANSACTION_COMMIT'
IMPORTING
RETURN = it_return.
Edited by: Martin Kay on Mar 5, 2009 2:17 PMhello martin
u have to use the save method for saving the contents
in mehtod tabel u have to add method as save
if ur method internal table is it_method then
it_method-method = 'save'.
append it_method .
and also in ur bapi code u have assigned wrong reference number
reference number always should start from 1
it_methods-refnumber = '0000001'
not '0000000400123' which u have used for order number
and after call of bapi u have to call
bapi_transaction_commitn which u have used
hope it solves ur problem -
[solved] "Error - all files must have permissions of 644 or 755"
Hello,
when I try to update an AUR package, I get the error message:
Error - all files must have permissions of 644 or 755.
How can I find out which file in the tree is causing that problem?
And what is the cleanest way to change that? Change permissions via chmod in the pkg dir?
Last edited by Carl Karl (2015-04-02 07:55:56)A right there! (I thought INSIDE the phg...) Thanks, solved.
Last edited by Carl Karl (2015-04-02 07:55:31) -
Bursting Error : ZIP file must have at least one entry
Hai All,
I am trying to Burst report in 11.5.10.2 instance. When tried bursting it the it got the following error.
XML Publisher: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XDOBURSTREP module: XML Publisher Report Bursting Program
Current system time is 04-JUN-2009 12:40:16
XML/BI Publisher Version : 5.6.3
Request ID: 387463
All Parameters: ReportRequestID=387460:DebugFlag=Y
Report Req ID: 387460
Debug Flag: Y
Updating request description
Updated description
Retrieving XML request information
Node Name:ERP
Preparing parameters
null output =/d02/appluat/uatcomn/admin/out/UAT_erp/o387463.out
inputfilename =/d02/appluat/uatcomn/admin/out/UAT_erp/o387460.out
Data XML File:/d02/appluat/uatcomn/admin/out/UAT_erp/o387460.out
Set Bursting parameters..
Temp. Directory:/tmp
[060409_124018651][][STATEMENT] Oracle XML Parser version ::: Oracle XDK Java 9.0.4.0.0 Production
[060409_124018653][][STATEMENT] setOAProperties called..
Bursting propertes.....
{user-variable:cp:territory=US, user-variable:cp:ReportRequestID=387460, user-variable:cp:language=en, user-variable:cp:responsibility=50352, user-variable.OA_MEDIA=http://erp.adgs.ae:8030/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=387460, user-variable:cp:locale=en-US, user-variable:cp:user=GVU, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=387463, user-variable:cp:org_id=103, user-variable:cp:reportdescription=Pension Fund}
Start bursting process..
Bursting process complete..
Generating Bursting Status Report..
--Exception
ZIP file must have at least one entry
java.util.zip.ZipException: ZIP file must have at least one entry
at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:292)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:534)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
Can anyone please help me on this..
RegardsPl help me is there any way to overcome this error, when supplier email address is present then , bursting file works fine, if supplier address is null , then it is giving me error , please find the error also.........
Bursting XML File ...........
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:request select="/XXDBD_POPRPOP_SA/LIST_G_INIT_INFO/G_INIT_INFO/LIST_G_HEADERS/G_HEADERS">
<xapi:delivery>
<xapi:email server="mailgate.XXX.com" port="25" from="[email protected]">
<xapi:message id="emailpo" to="${CP_VENDOR_EMAIL}" cc="[email protected],[email protected]" attachment="true"
subject="Purchase Order No: ${POH_PO_NUM}">
Please find attached PO ${POH_PO_NUM}.
Regards,
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output="Purchase Order ${POH_PO_NUM}" output-type="pdf" delivery="emailpo">
<xapi:template type="rtf" location="xdo://XXDBDPO.XXDBD_POXPRPOP_SA1.en.US/?getSource=true" filter=".//G_HEADERS[CP_VENDOR_EMAIL !='']"></xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
ERROR Generated from bursting file ............Pl help me...........its urgent .............
XML/BI Publisher Version : 5.6.3
Updating request description
Retrieving XML request information
Preparing parameters
Set Bursting parameters..
Bursting propertes.....
{user-variable:cp:territory=US, user-variable:cp:ReportRequestID=529232, user-variable:cp:language=en, user-variable:cp:responsibility=20707, user-variable.OA_MEDIA=http://usncx054.XXX.com:8015/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=N, user-variable:cp:parent_request_id=529232, user-variable:cp:locale=en-US, user-variable:cp:user=RAJULAT, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=529233, user-variable:cp:org_id=84, user-variable:cp:reportdescription=DBD Printed Purchase Order Report English, user-variable:cp:Dummy for Data Security=Y}
Start bursting process..
Bursting process complete..
Generating Bursting Status Report..
--Exception
ZIP file must have at least one entry
java.util.zip.ZipException: ZIP file must have at least one entry
at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:534)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Thanks -
Parsing error : Element already declared
Hi
I am facing problem while using namespace.
In a prototype, while using xml and dtd I tried to use namespace in using parameter entity. Despite using namespace I am getting error element already declared.
If I don't use parameter entity then the prototype works.
In the following prototype, poNmSpace.xml makes use of poNmSpace.dtd which in turn makes use of xhtml.dtd
I am trying to parse poNameSpace.xml using oracle parser and I am getting following error
Am I doing something wrong ?
** Parsing error, line 19, uri file:/D:/Users/Anup/work/Event/xml/Oracle/sa
x/paraEntyNmSpace/xml/poNmSpace.dtd
Element 'title' already declared.
file:/D:/Users/Anup/work/Event/xml/Oracle/sax/paraEntyNmSpace/xml/poNmSpace
.dtd<Line 19, Column 16>: XML-0131: (Error) Element 'title' already declare
d.
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java, C
ompiled Code)
at oracle.xml.parser.v2.XMLError.flushErrors(XMLError.java:216)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValida
tingParser.java:247)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:151)
at Echo.main(Echo.java:58)
poNmSpace.xml
=============
<?xml version='1.0' encoding='us-ascii'?>
<!-- A SAMPLE purchase order -->
<!DOCTYPE purchaseorder SYSTEM "poNmSpace.dtd" [
<!ENTITY ponumber "1">
<!ENTITY copyright SYSTEM "copyright.xml">
]>
<!-- SUBSTITUTIONS WORK IN ATTRIBUTES, TOO -->
<purchaseorder
author="Anupam Vaval"
>
<!-- Makes use of the dynamic entity &ponumber; and ©right; from other XML file
copyright.xml -->
<title nsprefix:a1 = "v1"> This is sample title</title>
<ref refno="&ponumber;"></ref>
<message>©right;</message>
<message>purchase order &ponumber; generated</message>
</purchaseorder>
poNmSpace.dtd
=============
<?xml version='1.0' encoding='us-ascii'?>
<!--
DTD for a simple "purchase order".
-->
<!-- Defines the %inline; declaration -->
<!ENTITY % xhtml SYSTEM "xhtml.dtd">
%xhtml;
<!ELEMENT purchaseorder (title, ref, message*)>
<!ATTLIST purchaseorder
author CDATA "unknown"
>
<!ELEMENT title (%inline)*>
<!ATTLIST title nsprefix:a1 CDATA #IMPLIED>
<!ELEMENT ref (#PCDATA)>
<!ATTLIST ref
refno CDATA #IMPLIED
>
<!ELEMENT message (#PCDATA)>
xhtml.dtd
=========
<?xml version='1.0' encoding='us-ascii'?>
<!--
This DTD does some of what the W3C is getting ready to do with its
"XHTML" work (nee "Voyager"). It differs from the current WG draft
because it uses namespaces correctly (!), and it isn't as complete
even for HTML 3.2 support (much less 4.0) or, probably, correct.
Note that what XHTML needs to do is become modular enough that XHTML
can be used as a mixin with other document types, including either
"the whole megillah" or just selected modules (e.g. omitting tables).
That must work both ways ... other things as mixins to XHTML, and
XHTML as a mixin to other things.
THIS WILL BE REPLACED WITH A BETTER DTD AT SOME POINT.
-->
<!ELEMENT html (head, body)>
<!ATTLIST html
xmlns CDATA #FIXED "http://www.example.com/xhtml"
>
<!ELEMENT head (title,style*)>
<!ELEMENT title (#PCDATA)>
<!ATTLIST title nsprefix:a2 CDATA #IMPLIED>
<!ELEMENT style (#PCDATA)>
<!ATTLIST style
type CDATA #IMPLIED
>
<!ENTITY % content "p|h1|h2|h3|h4|h5|h6|ul|ol|table|center">
<!ENTITY % inline "#PCDATA|em|b|a|img|br">
<!ELEMENT em (#PCDATA|a|b|img|br)*>
<!ELEMENT b (#PCDATA|a|em|img|br)*>
<!ELEMENT a (#PCDATA|b|em|img|br)*>
<!ATTLIST a
href CDATA #IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT br EMPTY>
<!ELEMENT img EMPTY>
<!ATTLIST img
alt CDATA #IMPLIED
border CDATA #IMPLIED
height CDATA #IMPLIED
src CDATA #REQUIRED
width CDATA #IMPLIED
>
<!ELEMENT body (%content;)+>
<!ATTLIST b ody
bgcolor CDATA #IMPLIED
>
<!ELEMENT p (%inline;)*>
<!ELEMENT h1 (%inline;)*>
<!ELEMENT h2 (%inline;)*>
<!ELEMENT h3 (%inline;)*>
<!ELEMENT h4 (%inline;)*>
<!ELEMENT h5 (%inline;)*>
<!ELEMENT h6 (%inline;)*>
<!ELEMENT ul (li+)>
<!ELEMENT ol (li+)>
<!ELEMENT li (%inline;)*>
<!ELEMENT table (tr+)>
<!ATTLIST table
height CDATA #IMPLIED
width CDATA #IMPLIED
align (left|center|right) #IMPLIED
cellspacing CDATA #IMPLIED
>
<!ELEMENT tr (td+)>
<!ATTLIST tr
align (left|center|right) #IMPLIED
valign (top|center|bottom|baseline) #IMPLIED
>
<!ELEMENT td (%inline;|%content;)*>
<!ATTLIST td
height CDATA #IMPLIED
width CDATA #IMPLIED
align (left|center|right) #IMPLIED
valign (top|center|bottom|baseline) #IMPLIED
rowspan CDATA #IMPLIED
colspan CDATA #IMPLIED
>
<!ELEMENT center (%inline;|%content;)*>Rana,
You'll probably get better answers for BPEL related questions if you post them on the BPEL forum here:
BPEL -
Can anyone help?
First we need to know how much free space your windows 8 hard drive has.
Do you still have access to the computer with Windows ME? -
I created a form and recieve the filled in form by email from participants. It has always worked in the past. Recently when importing data into the master form (from filled in forms in xml files sent by applicants) I am getting this error message..."xml processing instruction not at start of external entity (error code 17), line 2, column 1...." pointing to the file of data (xml) I am trying to input. If I pull up old data forms (from 2009) they work, but now I am getting this error. I run Adobe Design Premium CS3 for Windows. Can anyone tell me what to do to fix?
I created a form and recieve the filled in form by email from participants. It has always worked in the past. Recently when importing data into the master form (from filled in forms in xml files sent by applicants) I am getting this error message..."xml processing instruction not at start of external entity (error code 17), line 2, column 1...." pointing to the file of data (xml) I am trying to input. If I pull up old data forms (from 2009) they work, but now I am getting this error. I run Adobe Design Premium CS3 for Windows. Can anyone tell me what to do to fix?
-
Message must have exactly one part
hi,
I have tryed to create a proxy in ECC 6.0 abap but it gives an error message:
Proxy generation terminated: Message must have exactly one part
Message no. SPRX046
Background
During proxy generation, an interface description in WSDL format is fetched from the Integration Builder or from another source and interpreted. This WSDL document must describe the whole interface correctly.
==> Display Query
==> Display WSDL Document
Diagnosis
In a WSDL document, a <message> must contain exactly one <part>, therefore:
<message name="ObtenerLicenciaRequest">
<part .../>
</message>
In this case, a <message> has no <part> or multiple <part> entries. Proxy generation cannot process such messages.
System Response
Proxy generation is terminated.*
can any one help me?
The WSDL is:
http://200.0.156.42/lme_pruebas/webservices/webservicesEmpleadores.php?wsdl
ThanksHere is the fragment from your WSDL. You have more than one line with <part name...>:
- <message name="ObtenerLicenciaRequest">
<part name="rut_empleador" type="xsd:int" />
<part name="dv_rut_empleador" type="xsd:string" />
<part name="rut_usuario" type="xsd:int" />
<part name="dv_rut_usuario" type="xsd:string" />
<part name="password" type="xsd:string" />
<part name="fecha_proceso" type="xsd:dateTime" />
</message>
According to the error message, you must have only one of those, e.g.:
- <message name="ObtenerLicenciaRequest">
<part name="rut_empleador" type="xsd:int" />
</message> -
Trying to download an application for work, Tried on the IE 8, 10 & 11 with no add ons and in the compatibility mode and it will not work. I continue to get the error message: You must have IE 5.5 or higher to use the Contact Center
Manager Admin. I do have the credentials and the admin over me to try and neither one of us can do this. I have a windows 7 computer and I didn't have this problem with my other one, but since Feb or March we have had major issues with IE.
We need help as others are having this same issue.
ThanksTrying to download an application for work, Tried on the IE 8, 10 & 11 with no add ons and in the compatibility mode and it will not work.
Hi,
Did you mean that this problem occurs when downloading an application from a website? Would you please provide a screenshot for your problem?
Roger Lu
TechNet Community Support -
Column account_number must have a value
i am getting an error 'Column account_number must have a value'
when i am using hz_cust_account_v2pub.create_cust_account API Package.
This is the code
DECLARE
p_cust_account_rec HZ_CUST_ACCOUNT_V2PUB.CUST_ACCOUNT_REC_TYPE;
p_organization_rec HZ_PARTY_V2PUB.ORGANIZATION_REC_TYPE;
p_customer_profile_rec HZ_CUSTOMER_PROFILE_V2PUB.CUSTOMER_PROFILE_REC_TYPE;
x_cust_account_id NUMBER := 1;
x_account_number VARCHAR2(2000) := '0';
x_party_id NUMBER := 0;
x_party_number VARCHAR2(2000):='XXXXXXX';
x_profile_id NUMBER:=0;
x_return_status VARCHAR2(2000);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
BEGIN
p_cust_account_rec.account_name := 'Acc_test1';
p_cust_account_rec.created_by_module := 'TCAPI_EXAMPLE';
p_organization_rec.organization_name := 'Fenner Test';
p_organization_rec.created_by_module := 'TCAPI_EXAMPLE';
hz_cust_account_v2pub.create_cust_account(
'T',
p_cust_account_rec,
p_organization_rec,
p_customer_profile_rec,
'F',
x_cust_account_id,
x_account_number,
x_party_id,
x_party_number,
x_profile_id,
x_return_status,
x_msg_count,
x_msg_data);
dbms_output.put_line('***************************');
dbms_output.put_line('Output information ....');
dbms_output.put_line('x_cust_account_id: '||x_cust_account_id);
dbms_output.put_line('x_account_number: '||x_account_number);
dbms_output.put_line('x_party_id: '||x_party_id);
dbms_output.put_line('x_party_number: '||x_party_number);
dbms_output.put_line('x_profile_id: '||x_profile_id);
dbms_output.put_line('x_return_status: '||x_return_status);
dbms_output.put_line('x_msg_count: '||x_msg_count);
dbms_output.put_line('x_msg_data: '||x_msg_data);
dbms_output.put_line('***************************');
END;
Please advice me
Ted--Try this
DECLARE
p_cust_account_rec HZ_CUST_ACCOUNT_V2PUB.CUST_ACCOUNT_REC_TYPE;
p_organization_rec HZ_PARTY_V2PUB.ORGANIZATION_REC_TYPE;
p_customer_profile_rec HZ_CUSTOMER_PROFILE_V2PUB.CUSTOMER_PROFILE_REC_TYPE;
x_cust_account_id NUMBER ;
x_account_number VARCHAR2(2000);
x_party_id NUMBER ;
x_party_number VARCHAR2(2000);
x_profile_id NUMBER ;
x_return_status VARCHAR2(2000);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
BEGIN
p_cust_account_rec.account_name := 'Acc_test1';
p_cust_account_rec.created_by_module := 'TCAPI_EXAMPLE';
p_organization_rec.organization_name := 'Fenner Test';
p_organization_rec.created_by_module := 'TCAPI_EXAMPLE';
hz_cust_account_v2pub.create_cust_account(
'T',
p_cust_account_rec,
p_organization_rec,
p_customer_profile_rec,
'F',
x_cust_account_id,
x_account_number,
x_party_id,
x_party_number,
x_profile_id,
x_return_status,
x_msg_count,
x_msg_data);
dbms_output.put_line('***************************');
dbms_output.put_line('Output information ....');
dbms_output.put_line('x_cust_account_id: '||x_cust_account_id);
dbms_output.put_line('x_account_number: '||x_account_number);
dbms_output.put_line('x_party_id: '||x_party_id);
dbms_output.put_line('x_party_number: '||x_party_number);
dbms_output.put_line('x_profile_id: '||x_profile_id);
dbms_output.put_line('x_return_status: '||x_return_status);
dbms_output.put_line('x_msg_count: '||x_msg_count);
dbms_output.put_line('x_msg_data: '||x_msg_data);
dbms_output.put_line('***************************');
END;
COMMIT -
XML document must have a top level element. Error processing resource
Hi,
I am trying to send a XML file to a web browser from a servlet. I read the contents of the XML file into a string and I am sending it to the brower. Before I do this I set the 'Content-type' header of the httpResponse to "application/xml" . Embedded in the XML file is an xml-stylesheet elemetn indicating which *.xsl stylesheet to use to parse the XML content.
I get the following error:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource 'http://127.0.0.1:8080/testReplyingXML/xml-to-html.xs...
Now, if I take the stylesheet element out of the XML string I sent, then the browser stores the content into and *.xml file. I manually run the "xml-to-xsl " stylesheet mentioned in the error output above, and there is no problem, the xml content gets successfully transformed in a viewable HTML .
It is only when I embed the "stylesheet" element into the XML content that I get this error.
So the browser is receiveing valid XML.
I am not sure if the above error is complaining about the XML content I send or the stylesshet .
Does anyone have an idea of what am I doing wrong?
For your information here are my servlet code and the XML file:
servlet:-
package webapps.testReplyingXML;
import java.io.BufferedReader;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileReader;
import java.util.Enumeration;
import java.util.StringTokenizer;
import java.io.PrintWriter;
public class ReplyXML extends HttpServlet {
static int transactionCount = 0;
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException ,IOException {
String Q_PARAM = "query";
String requestString = req.getQueryString();
for ( Enumeration en = req.getParameterNames() ; en.hasMoreElements() ; )
String k = (String)en.nextElement() ;
String[] x = req.getParameterValues(k) ;
String s = null;
String DATA_PARAM= "";
for(int i = 0 ; i < x.length ; i++ )
s = x[i] ;
//System.out.println("s = " + s);
if (k.equals("query")){
try {
//res.setHeader("Content-Type", "application/xml");
//res.setHeader("Transfer-Encoding", "chunked");
//res.setHeader("Cache-Control", "no-cache");
//res.setHeader("Server", "Jetty/5.1.10");
//res.setHeader("Pragma", "no-cache");
//res.setHeader("X-Joseki-Server", "Joseki-3.0-dev");
res.setStatus(res.SC_OK);
StringBuffer fileData = new StringBuffer(1000);
BufferedReader reader = new BufferedReader(new FileReader("sparql_results.xml"));
char[] buf = new char[1024];
int numRead=0;
while((numRead=reader.read(buf)) != -1){
String readData = String.valueOf(buf, 0, numRead);
fileData.append(readData);
buf = new char[1024];
reader.close();
String xmlMsg= fileData.toString();
System.out.println("XMLMSG= " + xmlMsg);
PrintWriter outresp = res.getWriter();
outresp.println(xmlMsg);
outresp.close();
}catch (Exception e) {
e.printStackTrace();
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
doGet(req, res);
XML FILE:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="xml-to-html.xsl"?>
<sparql
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xs="http://www.w3.org/2001/XMLSchema#"
xmlns="http://www.w3.org/2005/sparql-results#" >
<head>
<variable name="book"/>
<variable name="title"/>
</head>
<results ordered="false" distinct="false">
<result>
<binding name="book">
<uri>http://example.org/book/book6</uri>
</binding>
<binding name="title">
<literal>Harry Potter and the Half-Blood Prince</literal>
</binding>
</result>
<result>
<binding name="book">
<uri>http://example.org/book/book5</uri>
</binding>
<binding name="title">
<literal>Harry Potter and the Order of the Phoenix</literal>
</binding>
</result>
<result>
<binding name="book">
<uri>http://example.org/book/book4</uri>
</binding>
<binding name="title">
<literal>Harry Potter and the Goblet of Fire</literal>
</binding>
</result>
<result>
<binding name="book">
<uri>http://example.org/book/book3</uri>
</binding>
<binding name="title">
<literal>Harry Potter and the Prisoner Of Azkaban</literal>
</binding>
</result>
<result>
<binding name="book">
<uri>http://example.org/book/book2</uri>
</binding>
<binding name="title">
<literal>Harry Potter and the Chamber of Secrets</literal>
</binding>
</result>
<result>
<binding name="book">
<uri>http://example.org/book/book1</uri>
</binding>
<binding name="title">
<literal>Harry Potter and the Philosopher's Stone</literal>
</binding>
</result>
</results>
</sparql>Error processing resource http://127.0.0.1:8080/testReplyingXML/xml-to-html.xs...
Well, if one more character had been deleted from that message then you would have a problem. But as it is, the error message says there's an error processing a resouce whose name ends with "xml-to-html.xs" followed by something. That would be the stylesheet if I'm not mistaken. Most likely the browser can't find it at the URL mentioned in the error message. -
Error using SOAPRunner: XML document must have top level element
Hi all,...................xMII 11.5.3 b66
I am attempting to consume a BLS transaction as a web service from a J2EE app.
When I test it with http://naholldo31020/Lighthammer/SOAPRunner/Amy/GetListOfPlants I am getting an error message from the browser. The BLS transaction works fine when called from a Query template. What am I missing?
The XML page cannot be displayed
Cannot view XML input using style sheet.
Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing
resource 'http://naholldo31020/Lighthammer/SOAPRunner/Amy/GetL...
WSDL from WSDLGen...
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://www.sap.com/xMII"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
- <!-- Types
-->
- <types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII">
- <s:complexType name="InputParams">
- <s:sequence id="InputSequence">
<s:element maxOccurs="1" minOccurs="0" name="RequestXML" type="s:Xml" />
<s:element maxOccurs="1" minOccurs="0" name="RowCount" type="s:long" />
<s:element maxOccurs="1" minOccurs="0" name="RowSkips" type="s:long" />
<s:element maxOccurs="1" minOccurs="0" name="Table" type="s:string" />
</s:sequence>
</s:complexType>
- <s:element name="XacuteRequest">
- <s:complexType>
- <s:sequence>
<s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string" />
<s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string" />
<s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="Rowset">
- <s:sequence>
<s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row" />
</s:sequence>
<s:attribute name="Message" type="s:string" />
</s:complexType>
- <s:complexType name="Row">
- <s:sequence id="RowSequence">
<s:element maxOccurs="1" minOccurs="1" name="ErrorMessage" type="s:string" />
<s:element maxOccurs="1" minOccurs="1" name="OutputXML" type="s:string" />
</s:sequence>
</s:complexType>
- <s:element name="XacuteResponse">
- <s:complexType>
- <s:sequence>
<s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</types>
- <!-- Messages
-->
- <message name="XacuteSoapIn">
<part element="s0:XacuteRequest" name="parameters" />
</message>
- <message name="XacuteSoapOut">
<part element="s0:XacuteResponse" name="parameters" />
</message>
- <!-- Ports
-->
- <portType name="XacuteWSSoap">
- <operation name="Xacute">
<input message="s0:XacuteSoapIn" />
<output message="s0:XacuteSoapOut" />
</operation>
</portType>
- <!-- Bindings
-->
- <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="Xacute">
<soap:operation soapAction="http://www.sap.com/xMII" style="document" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
</binding>
- <!-- Service mapping
-->
- <service name="XacuteWS">
- <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
<soap:address location="http://naholldo31020/Lighthammer/SOAPRunner/Amy/GetListOfPlants" />
</port>
</service>
</definitions>Hi Amy,
here is an example how you can call a WS via http GET:
http://<server>/Lighthammer/Runner?Transaction=<path_to_your_TRX>&XacuteLoginName=YourAccount&XacuteLoginPassword=yoursecret&outputparameter=*
Please note you do not need to use credentials in case you calling localhost.
I think in your case this should be the right url:
http://naholldo31020/Lighthammer/Runner?Transaction=Amy/GetListOfPlants&XacuteLoginName=YourAccount&XacuteLoginPassword=yoursecret&outputparameter=*
Please change parameters for
- XacuteLoginName
- XacuteLoginPassword
- outputparameter (you can specify * or one of your transaction output parameter) -
XML document must have a top level element. Error
Hi, I am trying to generate an XML. Below is a sample code from my function. The function generates a 0 byte file which when I try to open gives me 'xml document must have a top level element' error. Any ideas?
FUNCTION generateXml( p_1 VARCHAR2,
p_2 VARCHAR2,
p_3 VARCHAR2
) RETURN CLOB
IS
ctx dbms_xmlgen.ctxHandle;
xml CLOB;
v_sql varchar2(2000);
BEGIN
lv_sql:=' select * from v_dc where rownum =1';
ctx := dbms_xmlgen.newContext(v_sql);
dbms_xmlgen.setRowSetTag(ctx, 'CONTENT');
xml := dbms_xmlgen.getXML(ctx);
return xml;
END;
END generateXml;I just need to understand if we can generate XML from a sql that has sub-queries in it.Should be no problem:
SQL> create or replace function generatexml (p_1 varchar2, p_2 varchar2, p_3 varchar2)
return clob
is
ctx dbms_xmlgen.ctxhandle;
xml clob;
v_sql varchar2 (2000);
begin
v_sql := ' select * from dept left outer join (select * from emp) emp on (emp.deptno = dept.deptno) where rownum = 1';
ctx := dbms_xmlgen.newcontext (v_sql);
dbms_xmlgen.setrowsettag (ctx, 'CONTENT');
xml := dbms_xmlgen.getxml (ctx);
dbms_xmlgen.closecontext (ctx);
return xml;
end generatexml;
Function created.
SQL> select generatexml (null, null, null) xml from dual
XML
<?xml version="1.0"?>
<CONTENT>
<ROW>
<DEPTNO>10</DEPTNO>
<DNAME>ACCOUNTING</DNAME>
<LOC>NEW YORK</LOC>
<EMPNO>7782</EMPNO>
<ENAME>CLARK</ENAME>
<JOB>MANAGER</JOB>
<MGR>7839</MGR>
<HIREDATE>09.06.81</HIREDATE>
<SAL>2450</SAL>
<DEPTNO>10</DEPTNO>
</ROW>
</CONTENT>
1 row selected.Maybe your query simply doesn't return any rows? -
Photoshop Elements won't install on Windows 8 - Error must have IE 4.0 or higher
When I try to install Photoshop Elements 1.0.1 on a Windows 8 64 bit computer, it says I must have IE 4.0 or higher and I have IE 10 installed. How do I get Photoshop Elements 1.0.1 to install.
Microsoft advises that all versions of PSE except versions 1, 3, 5 & 6 will work with Windows 8.
Microsoft Windows 8 compatibility.
Maybe you are looking for
-
Receiver Agreement problem in XI
Hi, The problem is that when the idoc calls adapter in XI, the following error message is thrown(Display XML Message Versions- window, SOAP Header): com.sap.aii.af.ra.ms.api.ConfigException: ConfigException in XI protocol handler. Failed to determine
-
ABAP and Java Stack: Which to choose/supported standards and components?
Hello, I am trying to understand the role of the two stacks in NW. Maybe anyone has a few hints where I can find answers to the following questions: - An overview of supported Standards (Java 5 since when?) - An overview of which component runs on wh
-
LV 8.5 on XP Pro I have a project with the build specifications for an executable. The problem is that the startup VI's that are designated in the properties keep coming up missing. The ICON is still in the project, but when I go into the "source f
-
Moving SCOM environment to new servers
We need to upgrade our SCOM servers from Windows Server 2008 to 2012. In our current environment we have all of our servers in the same environment -- both Prod and Test servers. When we make the move to new servers, we want to fix that, so that w
-
hi at all I´ve a problem when send messages to a provider that requires us to stablish a tls connection an then send it a user name and password. On my old MTA these scenario works fine, but if i use our news C360 appliances I cannot deliver messages