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,
Rana

Sorry 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

Similar Messages

  • 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

  • CHILD form error FRM-30100: Block must have at least one primary key item.

    Hi friends,
    I have increased the DML array of the child block from 1 to 10, but it throws me error:
    FRM-30100: Block must have at least one primary key item.
    Block: CEC_ADJUSTMENT_RECON
    Form: CEC_ADJ
    FRM-30085: Unable to adjust form for output.
    How does a form know that the table does not have primary key? Is it referring to it?
    Thanks a lot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I dont understand why do you increase the DML array size..
    Because it says in the HELP
    Specifies the maximum array size for inserting, updating, and deleting records in the database at one time.
    A larger size reduces transaction processing time by reducing network traffic to the database, but requires more memory.  The optimal size is the number of records a user modifies in one transaction.
    The FRM-30100 comes not because of the above property..
    If your query data source type is other than TABLE, it is a must to set at least one database field's PRIMARY KEY ITEM PROPERTY in the block to be a YES.

  • Network message format error. GET request must have a QUERY_STRING value

    I have installed new Content Server 10gR on my laptop.
    Web Server is : Apache 2.2.4
    DB is : Oracle 10g (Standard Edition)
    Platform : Windows
    CS is up & running. I am able to login and browse through content store. But when I try to perform any type of Submit operation anywhere in CS Portal ( for example "Updating My Profile and clicking on Submit" ) I get following error:
    "Network message format error. GET request must have a QUERY_STRING value (the CGI parameters on the URL) "
    1. Does any one know why I am getting this ?
    2. Is some configuration missing for Apache which connects Apache with CS ?
    Below is the httpd.conf changes:
    LoadModule IdcApacheAuth D:/oracle/ucm/idc/shared/os/win32/lib/IdcApache22Auth.dll
    IdcUserDB idc "D:/oracle/ucm/idc/data/users/userdb.txt"
    Alias /idc "D:/oracle/ucm/idc/weblayout"
    <Location /idc>
    Order allow,deny
    Allow from all
    DirectoryIndex portal.htm
    IdcSecurity idc
    </Location>
    3. One things that I see that before hitting the Submit button the URL is:
    http://delrpatha76669.sapient.com:8989/idc/idcplg/?IdcService=GET_DOC_PAGE&Action=GetTemplatePage&Page=HOME_PAGE&Auth=Internet
    And after hitting Submit button on "My Profile" the URL becomes:
    http://delrpatha76669.sapient.com:8989/idc/idcplg/
    I guess part of URL gets truncated/missed etc and so we are getting this error ?
    Any way to fix this ?
    Edited by: user12188052 on Sep 21, 2010 10:10 AM

    This issue is resolved.
    Cause
    - After installation when I started CS , I saw "D:\oracle\ucm\idc\weblayout\idcplg" folder missing error in logs. Reason why I created this "idcplg" folder inside "weblayout" folder was because I thought it was not created during installation. I created this folder & copied "idc_cgi_isapi.dll" this file into it.. This was the issue
    Fix
    - I deleted the folder "D:\oracle\ucm\idc\weblayout\idcplg" and everything started working fine now.

  • Forte compile error java source files must have a .java suffix

    Hello Guru's,
    I am using Forte for Java release 2.0 build 1160, and Java SDK 1.3.1.
    When I try to compile a project in Forte I get the following error :
    "fastjavac: java source files must have a .java suffix C:\Program"
    I have looked at the source files and they do hav .java suffix!
    If this is not the correct form can someone point me in the right direction. If this is a correct forum then help is very much appreciated.
    Cheers...Harki

    Hi,
    Try to compile like this:
    javac yourfile.java
    Hope this helps you.
    Cheers.....Dinesh

  • Error: Ref.pers.nos. must have the same legal person

    Hi All,
    I keep getting this error message when setting up a Multiple Employment for an employee.
    When I get to infotype 0121 (create RefPerNo) I get the above message.
    I only get it for a couple of employees I have tried to create a second position for and others work fine.
    I don't understand the message as the action copies all the personnel data from the primary record, so it is the same person!?! Details are identical on 0002.
    Please Help
    Sam<b></b>

    Hi SAM,
    There might be some mismatch in data or might be because of authorization.
    Let us assume, that you are using Reference Personnel number to assign different assignment for the employee, if so, you no need to maintain it in Reference number, do your Personnel Action as usual and assign different Position for the employee, so that, system recognize it as, different assignment for the same employee.
    Let us know the exact error message, you are getting while executing.
    Good Luck
    Om
    Reward it, if u feel helpful.

  • Pages error: no iCloud upload must have Yosemite

    Really?  I can't find where Yosemite has been released.  Am I missing something obvious? 
    I'm not really all that concerned about not being able to upload a document to iCloud but it's annoying nonetheless.  I'm paying for extra storage and can't use it with Pages documents because I don't have Yosemite. 

    Do you have a mobile device running iOS 8?  If so and you activated the iCloud Drive with it that's the reason you can't sync documents as you did before.  The developer release notes for Yosemite states the following:
    iCloud Drive Note
    Migrating to iCloud Drive will disable Documents & Data syncing for your iCloud account on OS X Mavericks and earlier Macs, as well as iOS 7 and earlier devices.
    Yosemite is expected to be released very soon, maybe even tomorrow at the Apple event.  Once it is and you upgrade your Mac to it you'll be able to sync the documents again, but differently.

  • TBridge must have at least one redirect command error!

    Hi there,
    Possibly this is a very dork question!, sorry I can't find the trick.
    We are connecting Tux8.0 and WLS7.0sp1 through WTC. and the following error is
    showed when trying to deployed WTCServer component. in the log file attached is
    showed that connecction is successfully established and the problem comes with
    Tbride.
    Any suggestions really very welcomed!
    Config info:
    <WTCServer Name="WTCServer" Targets="cfeserver">
    <WTCImport LocalAccessPoint="BEA2"
    Name="WTCImport-1044988984998"
    RemoteAccessPointList="S74DEMO" RemoteName="QUERYSAP"
    ResourceName="QUERYSAP"/>
    <WTCImport LocalAccessPoint="BEA2"
    Name="WTCImport-1044989017524"
    RemoteAccessPointList="S74DEMO"
    RemoteName="QUERYSICOM" ResourceName="QUERYSICOM"/>
    <WTCLocalTuxDom AccessPoint="BEA2" AccessPointId="BEA2"
    ConnectionPolicy="ON_STARTUP"
    NWAddr="//16.179.26.99:6550"
    Name="WTCLocalTuxDom-1044988580045"/>
    <WTCRemoteTuxDom AccessPoint="S74DEMO"
    AccessPointId="S74DEMO"
    ConnectionPolicy="ON_STARTUP" LocalAccessPoint="BEA2"
    NWAddr="//16.179.20.132:6540"
    Name="WTCRemoteTuxDom-1044988657236"/>
    <WTCResources FldTbl32Classes="fmls.cfemsgflds"
    Name="WTCResources-1044989048309"/>
    <WTCtBridgeGlobal
    JmsFactory="weblogic.jms.ConnectionFactory"
    JndiFactory="weblogic.jndi.WLInitialContextFactory"
    Name="WTCtBridgeGlobal-1044989083549"
    Transactional="NO"
    TuxFactory="tuxedo.services.TuxedoConnection"
    WlsErrorDestination="weblogic.jms.errorqueue">
    <WTCtBridgeRedirect Direction="JmsQ2TuxS"
    Name="WTCtBridgeRedirect-1044989289125"
    ReplyQ="weblogic.jms.replyq"
    SourceAccessPoint="BEA2"
    SourceName="weblogic.jms.ConsultaPedido"
    TargetAccessPoint="S74DEMO"
    TargetName="QUERYSAP" TranslateFML="FLAT"/>
    </WTCtBridgeGlobal>
    </WTCServer>
    Error:
    <Feb 11, 2003 12:31:11 PM CST> <Notice> <WebLogicServer> <000365> <Server state
    changed to RUNNING>
    <Feb 11, 2003 12:31:11 PM CST> <Notice> <WebLogicServer> <000360> <Server started
    in RUNNING mode>
    <Feb 11, 2003 12:50:41 PM CST> <Error> <WTC> <180047> <tBridge must have at least
    one redirect command>
    <Feb 11, 2003 12:50:41 PM CST> <Error> <WTC> <180115> <tBridge cannot parse the
    configuration MBeans: Failure: no tbridge redirect info defined>
    [wtcdebug.txt]

    Mauricio,
    I think this is an old console error in creating this mbean. The
    WTCtBridgeRedirect
    is mistakenly defined under the scope of the WTCtBridgeGlobal mbean
    where it should be at the same level(ie a child of the WTCServer mbean).
    The WTCService expects to find it as a child of the WTCServer mbean and
    throws the exeption when it doesn't see it.
    I think the fix is to edit the config.xml and move the termination for
    WTCtBridgeGlobal("</WTCtBridgeGlobal>") to before the declaration
    of the WTCtBridgeRedirect.
    Bob Finan
    Mauricio Del Moral wrote:
    Config info:
    WTCServer Name="WTCServer" Targets="cfeserver">
    <WTCImport LocalAccessPoint="BEA2"
    Name="WTCImport-1044988984998"
    RemoteAccessPointList="S74DEMO" RemoteName="QUERYSAP"
    ResourceName="QUERYSAP"/>
    <WTCImport LocalAccessPoint="BEA2"
    Name="WTCImport-1044989017524"
    RemoteAccessPointList="S74DEMO"
    RemoteName="QUERYSICOM" ResourceName="QUERYSICOM"/>
    <WTCLocalTuxDom AccessPoint="BEA2" AccessPointId="BEA2"
    ConnectionPolicy="ON_STARTUP"
    NWAddr="//16.179.26.99:6550"
    Name="WTCLocalTuxDom-1044988580045"/>
    <WTCRemoteTuxDom AccessPoint="S74DEMO"
    AccessPointId="S74DEMO"
    ConnectionPolicy="ON_STARTUP" LocalAccessPoint="BEA2"
    NWAddr="//16.179.20.132:6540"
    Name="WTCRemoteTuxDom-1044988657236"/>
    <WTCResources FldTbl32Classes="fmls.cfemsgflds"
    Name="WTCResources-1044989048309"/>
    <WTCtBridgeGlobal
    JmsFactory="weblogic.jms.ConnectionFactory"
    JndiFactory="weblogic.jndi.WLInitialContextFactory"
    Name="WTCtBridgeGlobal-1044989083549"
    Transactional="NO"
    TuxFactory="tuxedo.services.TuxedoConnection"
    WlsErrorDestination="weblogic.jms.errorqueue">
    <WTCtBridgeRedirect Direction="JmsQ2TuxS"
    Name="WTCtBridgeRedirect-1044989289125"
    ReplyQ="weblogic.jms.replyq"
    SourceAccessPoint="BEA2"
    SourceName="weblogic.jms.ConsultaPedido"
    TargetAccessPoint="S74DEMO"
    TargetName="QUERYSAP" TranslateFML="FLAT"/>
    </WTCtBridgeGlobal>
    </WTCServer>
    Error:
    <Feb 11, 2003 12:31:11 PM CST> <Notice> <WebLogicServer> <000365> <Server>state
    changed to RUNNING>
    <Feb 11, 2003 12:31:11 PM CST> <Notice> <WebLogicServer> <000360> <Server>startedin
    RUNNING mode>
    <Feb 11, 2003 12:50:41 PM CST> <Error> <WTC> <180047> <tBridge must have at least
    one redirect command>
    <Feb 11, 2003 12:50:41 PM CST> <Error> <WTC> <180115> <tBridge cannot parse the
    configuration MBeans: Failure: no tbridge redirect info defined>
    [att1.html]

  • Ms sql - {"The referenced table must have a primary or candidate key. [ FK Name = ForeignKeyB_Details ]"}

    I have a txt file which has all the sqltext in it separated by semi colon .Then I try to run a query one by one like this-
                var conn = new SqlCeConnection(ConnectionString);
                conn.Open();
                var cmdArray = Regex.Split(sqlText, ";");
                var cmd = new SqlCeCommand(null, conn);
                foreach (var text in cmdArray)
                    cmd.CommandText = text;
                    if (!text.Equals(string.Empty))
                        cmd.ExecuteNonQuery();
                    else
                        break;
                conn.Close();
    I get the error {"The referenced table must have a primary or candidate key. [ FK Name = ForeignKeyB_Details  ]"}
    here is part of my txt file-
    CREATE TABLE A
           PrimaryId nvarchar(10) NOT NULL REFERENCES C(PrimaryId),
           UserId nvarchar(20) NOT NULL,
           FirstName nvarchar(30) NOT NULL,
           MiddleInitial nvarchar(1) NULL,
           LastName nvarchar(30) NOT NULL,
           MobileNumber nvarchar(20) NULL,
           PhoneNumber nvarchar(10) NOT NULL,
           PhoneExtension nvarchar(6) NULL,
           FaxNumber nvarchar(20) NULL,
           EmailAddress nvarchar(50) NOT NULL,
      CONSTRAINT PrimaryKeyA PRIMARY KEY(PrimaryId, UserId)
    CREATE TABLE B(
       MarketId int NOT NULL references E(MarketId),
       UserId nvarchar(20) NOT NULL,
       UserFirstName nvarchar(30) NOT NULL,
       UserMiddleInitial nvarchar(1) NOT NULL,
       UserLastName nvarchar(30) NOT NULL,
       PhoneNbr nvarchar(10) NOT NULL,
       Extension nvarchar(6) NOT NULL,
       FaxNbr nvarchar(20) NOT NULL,
       Email nvarchar(50) NOT NULL,
       ShortName nvarchar(10) NOT NULL,
    PublicIdFlag nvarchar(6) NOT NULL references D(publicId),
            CONSTRAINT PrimaryKeyB PRIMARY KEY( MarketId, UserId)
    ALTER TABLE B ADD CONSTRAINT ForeignKeyB_Details FOREIGN KEY(UserId, UserFirstName, UserMiddleInitial, UserLastName, PhoneNbr, Extension, FaxNbr, Email) REFERENCES A(UserId, FirstName, MiddleInitial, LastName, PhoneNumber, PhoneExtension, FaxNumber, EmailAddress);

    Hi,
    Foreign key columns are frequently used in join criteria when the data from related tables is combined in queries by matching the column or columns in the FOREIGN KEY constraint of one table with the primary or unique key column or columns in the other table.
    For more information about the foreign key constraint, please refer to this link:
    http://msdn.microsoft.com/en-us/library/ms175464.aspx
    Here is a similar thread for your reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5a71948b-dfb1-46a5-8688-ccab9317e959/error-message-the-referenced-table-must-have-a-primary-or-candidate-key-fk-name-fktblatblb-?forum=sqlce
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Sudo: sorry, you must have a tty to run sudo

    Hi Guys,
    When I install the 12C management agent using upgrade console one step " RunRootScript" failed with below error.
    sudo: sorry, you must have a tty to run sudo
    But the status of job "PreDeployAgentSW" is successul.
    Can someone tell me how to fix this.
    Can I run the root.sh scripts manually.
    What are the scripts that I should run .. If I have to run the scripts manually.
    Thanks,
    Silver
    Edited by: Erin.Silver on Apr 2, 2013 3:55 AM

    Are you trying to deploy a fresh 12.1.0.x agent from add host wizard (agent push) in EM console OR you are upgrading your existing em 12.1.0.1 agent to 12.1.0.2 using agent upgrade console in EM console ?
    a) If you are doing a fresh install of 12.1.0.1 agent then look at the sudo requirement from the pre-req section:
    You might have to comment out Defaults requiretty in the /etc/sudoers file ( this is fixed in em 12.1.0.2 )
    b) If you are doing agent upgrade then make sure that agent upgrade job is successful and see details here: http://docs.oracle.com/cd/E24628_01/upgrade.121/e22625/upgrading_12101_PS1_agents.htm#CIHCEEIB
    If you upgrade a Management Agent as a user who does not have root privileges, or you upgrade a Management Agent without having preferred privileged credentials, a warning appears. You can ignore this warning during the upgrade. Later, you can log in to the Management Agent host as the root user, and run the $<AGENT_BASE_DIR>/core/12.1.0.2.0/root.sh script. After running this script, ensure that you also run the $<AGENT_BASE_DIR>/core/12.1.0.2.0/replacebins.sh script on the host.
    This is also explained in the guide : http://docs.oracle.com/cd/E24628_01/upgrade.121/e22625/upgrading_12101_PS1_agents.htm#CIHCEEIB

  • Erro in bursting ZIP file must have at least one entry

    Hi All ,
    i am using bursting utility for xmlp report ,but getting the following error
    --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:161)
    i have no clue y this error is coming ,any hint would be very helpful,
    Thanks in advance
    thanks
    Pratap

    Hi All
    i got resolved this error (Erro in bursting ZIP file must have at least one entry) ,was doing very silly mistake i was using the template name instead of Data Definition code name in location string
    location= ' '
    so the ZIP file error is removed ,now getting one more error after this ,which i am not able to under stand
    --Exception
    /tmp/011211_023243126/xdo1_164902_2.pdf (No such file or directory)
    java.io.FileNotFoundException: /tmp/011211_023243126/xdo1_164902_2.pdf (No such file or directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:532)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:299)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    Please help me on this
    Thanks
    Pratap

  • 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 parsing envelope: Header child element must be namespace qualified

    Hey all,
    I'm creating a BPEL process that invokes a web service. The web service has an authenticate method that returns a session ID that I attempt to invoke. However, the process fails when trying to parse the response when invoking that operation. I checked the server logs and it's reporting the following: javax.xml.soap.SOAPException: Error parsing envelope: most likely due to an invalid SOAP message.: Header child element 'ID' must be namespace qualified!
    So I invoked the authenticate operation using SOAP UI, since it doesn't parse the response but merely displays it, and here's what was returned (slightly modified):
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header>
          <ID>xxx</ID>
       </soapenv:Header>
       <soapenv:Body>
          <ns1:SessionID xmlns:ns1="http://some-namespace">
             <ns1:ID>xxx</ns1:ID>
          </ns1:SessionID>
       </soapenv:Body>
    </soapenv:Envelope>
    Indeed the ID tag in the header doesn't have a namespace prefix. Looking at the SOAP 1.1 spec it says, “A header entry is identified by its fully qualified element name, which consists of the namespace URI and the local name. All immediate child elements of the SOAP Header element MUST be namespace-qualified.”
    I was told that the code for the web service is frozen and cannot be changed. Are there any ways around this problem? Is it possible for the BPEL process to not parse the SOAP header?
    Thanks,
    Bill

    All,
    I think I might use a HeaderHandler to either strip the offending element from the header all together or modify it so that it's namespace qualified. The problem is, I can't find much documentation on it. The only thing I can find is this: Manipulating XML Data in BPEL section 3.19. It says to implement the HeaderHandler interface but doesn't give the fully qualified name of the interface. I'm guessing it's referring to com.collaxa.cube.ws.HeaderHandler. The invoke method that is defined in the interface is a little different than the one in the documentation. Mine has a signature of public void invoke(CXPartnerLink partnerLink, String operationName, Map payload, List list, Map map2)...what do these parameters represent and what key/value types do the maps have? It also says to register the handler in the bpel.xml deployment descriptor file but I can't find one - is it auto-generated? If so, where is it. If not, how do I generate it? I appreciate any information.
    Thanks,
    Bill

  • 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?

Maybe you are looking for

  • Unable to configure/build using studio12u1 compiler

    I am trying this on sol10 host: Solaris 10 10/08 s10s_u6wos_07b SPARC Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 27 October 2008 Here is my script that I run to start configure: #!/bin/ksh pw

  • Keyword error correction

    On checking through my keywords I noticed I had 2 entries for Scotland one of was Scotland, whilst the other is Scotland , i.e a space between the d and the ,. There are about 1200 images where I need to remove that space - any suggestions would be v

  • 3.1.3 update has crippled my legally unlocked iPhone.

    I bought 3 Apple unlocked iPhones in Australia. We have been using them on T-Mobile. The Apple 3.1.3 iPhone update has disabled all internet connectivity. Can anyone please help?

  • Nike Plus won't sync after update to 10.7

    I just upgraded to ITunes 10.7 now my 6th Gen Nano will not sync to Nike Plus. This was working fine just before the upgrade. Does anyone have any suggestions?

  • Facetime bandwidth?

    I was just curious if anyone knows or have heard of what type of bandwidth will be needed for the Facetime app on the new iPhone 4. Is the requirement for it NOT working with just a 3G network a part of a deal with AT&T or does it require more bandwi