Trailing block elements must have an id attribute

hi-
i'm getting the above error message when i'm running a dynamic client proxy and trying to use the jaxrpc with attachments to send a file.
i've took the "AttachmentsSample" code where it uploads an image and modified it to upload a textfile instead and that works. the only difference is that mine is a dynamic proxy and the sample is a stub.
this is driving me crazy. any help would be greatly appreciated.
thanks!
the following is my wsdl file:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="Sansay"
targetNamespace="http://sansay.org"
xmlns:tns="http://sansay.org"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns2="http://sansay.org/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<!--
<schema targetNamespace="http://sansay.org/types"
xmlns:tns="http://sansay.org/types"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
-->
<!--
<schema targetNamespace="http://sansay.org/types"
xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd"
xmlns:types="http://sansay.org/types">
-->
<xsd:schema targetNamespace="http://sansay.org/types"
xmlns:tns="http://sansay.org/types"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema">
xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd"
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:complexType name="Info">
     <xsd:sequence>
     <xsd:element name="sessionId" type="string" />
<xsd:element name="table" type="string" />
     </xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Response">
     <xsd:sequence>
     <xsd:element name="retCode" type="int" />
<xsd:element name="cmdCode" type="int"/>
     <xsd:element name="msg" type="string" />
     </xsd:sequence>
</xsd:complexType>
<xsd:element name="uploadInfo" type="tns:Info"/>
<xsd:element name="uploadResponse" type="tns:Response"/>
</xsd:schema></wsdl:types>
<wsdl:message name="uploadXmlFileRequest">
<wsdl:part name="params" element="ns2:uploadInfo"/>
<wsdl:part name="xmlFile" type="xsd:hexBinary"/>
</wsdl:message>
<wsdl:message name="uploadXmlFileResponse">
<wsdl:part name="retval" element="ns2:uploadResponse"/>
</wsdl:message>
<wsdl:portType name="SansayIF">
<wsdl:operation name="uploadXmlFile">
<wsdl:input message="tns:uploadXmlFileRequest"/>
<wsdl:output message="tns:uploadXmlFileResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SansayIFBinding" type="tns:SansayIF">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="uploadXmlFile">
<wsdl:input>
<mime:multipartRelated>
<mime:part>
<soap:body parts="params" use="literal"/>
</mime:part>
<mime:part>
<mime:content part= "xmlFile" type="text/plain"/>
</mime:part>
</mime:multipartRelated>
</wsdl:input>
<wsdl:output>
<mime:multipartRelated>
<mime:part>
<soap:body parts="retval" use="literal"/>
</mime:part>
</mime:multipartRelated>
</wsdl:output>
<!-- <soap:operation soapAction=""/> -->
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SansayService">
<wsdl:port name="SansayIFPort" binding="tns:SansayIFBinding">
<soap:address location="localhost"/>
</wsdl:port
></wsdl:service>
</wsdl:definitions>

Dynamic proxy does not support attachments., only stubs support sending attachments.
Dynamic proxy and DII client programming models are meant to be used for simple web services that involve only simple types in the schema.
Post your JAX-RPC related questions to [email protected] for a quicker resolution.
Send an email to [email protected] to subscribe to the alias.
Send an mail to [email protected] for a complete list of help commands.
-Arun

Similar Messages

  • Exception on JaxRpc invoke trailing block elements must have an idattribute

    hi all ,
    I am calling a target system from a bpel process .
    but while invoking i am getting the below error .
    ""*exception on JaxRpc invoke: trailing block elements must have an id attribute*""
    my schema file is as below ,
    can any one let us know the reason behind the issue .
    -----------------------------------xsd file----------------------------------------
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema elementFormDefault="qualified"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://www.viva.com.bh/vivaportal"
    targetNamespace="http://www.viva.com.bh/vivaportal"
    xmlns="http://www.viva.com.bh/vivaportal">
    <xsd:complexType name="error">
    <xsd:sequence>
    <xsd:element name="errorCode" type="xsd:int" minOccurs="0"/>
    <xsd:element name="errorDescription" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="preRegistrationCheck"/>
    <xsd:complexType name="preRegistrationCheckRequestType" xmlns:tns="http://www.viva.com.bh/vivaportal" >
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0" />
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0" />
    <xsd:element name="source" type="xsd:string" minOccurs="0" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="preRegistrationCheckResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0" />
    <xsd:element name="PIN" type="xsd:int" minOccurs="0" />
    <xsd:element name="error" type="tns:error" minOccurs="0" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="prePasswordResetCheck"/>
    <xsd:complexType name="prePasswordResetCheckRequestType">
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0"/>
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="source" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="prePasswordResetCheckResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0"/>
    <xsd:element name="PIN" type="xsd:int" minOccurs="0" />
    <xsd:element name="error" type="tns:error" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="registerUser"/>
    <xsd:complexType name="registerUserRequestType">
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0"/>
    <xsd:element name="password" type="xsd:string" minOccurs="0"/>
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="source" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="registerUserResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0"/>
    <xsd:element name="error" type="tns:error" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="authenticateUser"/>
    <xsd:complexType name="authenticateUserRequestType">
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0"/>
    <xsd:element name="password" type="xsd:string" minOccurs="0"/>
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="source" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="authenticateUserResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0" />
    <xsd:element name="error" type="tns:error" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="resetPassword"/>
    <xsd:complexType name="resetPasswordRequestType">
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0"/>
    <xsd:element name="operation" type="xsd:string" minOccurs="0"/>
    <xsd:element name="oldpassword" type="xsd:string" minOccurs="0"/>
    <xsd:element name="password" type="xsd:string" minOccurs="0"/>
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="source" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="resetPasswordResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0"/>
    <xsd:element name="error" type="tns:error" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="deleteUser"/>
    <xsd:complexType name="deleteUserRequestType">
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0"/>
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="source" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="deleteUserResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0"/>
    <xsd:element name="error" type="tns:error" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="preRegistrationCheck" xmlns:tns="http://www.viva.com.bh/vivaportal"
    type="tns:preRegistrationCheckRequestType"/>
    <xsd:element name="preRegistrationCheckResponse"
    type="tns:preRegistrationCheckResponseType"/>
    <xsd:element name="prePasswordResetCheck"
    type="tns:prePasswordResetCheckRequestType"/>
    <xsd:element name="prePasswordResetCheckResponse"
    type="tns:prePasswordResetCheckResponseType"/>
    <xsd:element name="registerUser" type="tns:registerUserRequestType"/>
    <xsd:element name="registerUserResponse"
    type="tns:registerUserResponseType"/>
    <xsd:element name="authenticateUser" type="tns:authenticateUserRequestType"/>
    <xsd:element name="authenticateUserResponse"
    type="tns:authenticateUserResponseType"/>
    <xsd:element name="resetPassword" type="tns:resetPasswordRequestType"/>
    <xsd:element name="resetPasswordResponse"
    type="tns:resetPasswordResponseType"/>
    <xsd:element name="deleteUser" type="tns:deleteUserRequestType"/>
    <xsd:element name="deleteUserResponse" type="tns:deleteUserResponseType"/>
    </xsd:schema>
    -----------------------------------------------end-------------------------------------------

    Anybody has solution on this? I too getting similar exception when Callingl a web service with soapenc:arrayType from BPEL
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke: trailing block elements must have an id attribute</summary>
    </part></bindingFault>
    This is what the documentation says. Any body has steps or examples
    4.13.4 SOAP-Encoded Arrays Not Supported
    Oracle BPEL Process Manager does not support SOAP-encoded arrays (soapenc:arrayType).
    Use the following workarounds:
    · Call a service with soapenc:arrayType from BPEL, but construct the XML message more manually in the BPEL code. This enables you to avoid changing or wrapping the service. However, each time you want to call that service from BPEL, you must take extra steps.
    Thanks
    N Reddy

  • Exception on JaxRpc invoke: trailing block elements must have an id attribu

    Hi Friends,
    Can anyone help me on this
    When i invoke the webservice i am getting the following soap fault error
    <messages><input><GetAccountRequest><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="in0"><in0 xmlns="" xmlns:def="http://transfer.webservice.voyager.bcgi.net" xsi:type="def:ServiceContext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <activityTraceKey>4000004</activityTraceKey>
    <errorCode>4000004</errorCode>
    <errorDescription>bcgirose</errorDescription>
    <successStatus>true</successStatus>
    <timestamp>2007-09-10T01:34:29.525+05:30</timestamp>
    <txTraceUuid>bcgirose</txTraceUuid>
    <userName>bcgirose</userName>
    <carrierId>62000</carrierId>
    <sessionId>8</sessionId>
    <userAccountName>bcgirose</userAccountName>
    <userAccountPassword>bcgirose</userAccountPassword>
    </in0>
    </part><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="in1"><in1 xmlns="" xmlns:def="http://account.impl.transfer.webservice.voyager.bcgi.net" xsi:type="def:AccountIdentifierData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <activityTraceKey>4000004</activityTraceKey>
    <errorCode>4000004</errorCode>
    <errorDescription>bcgirose</errorDescription>
    <successStatus>true</successStatus>
    <timestamp>2007-09-10T01:34:29.525+05:30</timestamp>
    <txTraceUuid>bcgirose</txTraceUuid>
    <userName>bcgirose</userName>
    <accountId>4000004</accountId>
    </in1>
    </part></GetAccountRequest>
    </input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke: trailing block elements must have an id attribute</summary>
    </part></remoteFault></fault></messages>

    Check the schema definitions for the responses to make sure they are correct.
    I have found that this 'trailing block elements must have an id attribute' occurs at runtime if an element is defined as maxOccurs="1" yet more than one of these elements are returned in the response.
    Put simply, the WSDL and XSD definitions does not match service implementation. The generated proxy class bases its deserialization logic on the WSDL & XSD and if it comes across more than one element in the response, when it is only expecting one, this exception is thrown.
    HTH,
    Peter
    http://soastation.blogspot.com

  • All listing element must have index,name and value?

    when i trying to convert a fmb file to xml, it shows a warning.
    All listing element must have index,name and value...
    how to resolve this..
    Edited by: skud on Mar 9, 2011 6:03 AM

    when i trying to convert a fmb file to xml, it shows a warning.
    All listing element must have index,name and value...
    how to resolve this..
    Edited by: skud on Mar 9, 2011 6:03 AM

  • Notification activity's message must have a respond attribute name 'RESULT'

    I've created a basic approval notification using the WFSTD_APPROVAL lookup type of Approve or Reject. I have it routing so that if the document is rejected it directs to the "End" Function Activity and if the document is approved it continues on with the remaining workflow. I keep getting this error when trying to save or verify the workflow. "Notification activity's message must have a respond attribute name 'RESULT' with lookup type 'WFSTD_APPROVAL'" Can anyone please direct me as to how I would set this respond attribute or how can I get rid of the warning message?

    Hi,
    On the message (within Workflow Builder), click on the Result tab, and populate the details of the result type, display name (prompt) etc. there. This will need to match the result type of the notification.
    That should do it!
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Apply a paragraph style to XML elements that have a specific attribute

    1) I'm an almost complete noob when it comes to XML
    2) I have an XML with a ssstructure like this:
    <chapter>
         <paragraph> bla bla </paragraph>
         <paragraph> bla bla </paragraph>
         <list type="disk">
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
         </list>
         <list type="square">
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
         </list>
    </chapter>
    Is there a easyer way (except iterating all the xmlElements) to find all the lists and apply the appropriate paragraph style (i have a "list_with_disk" paragraphstyle, and a "list_with_square" one)?

    Hi Vamitul,
    Please try the below JS code.
    var myDoc = app.activeDocument;
    //____________________ disk bullet style apply
    try{
        var rootElement = myDoc.xmlElements.item(0);
        var linkElementList = rootElement.evaluateXPathExpression("//list[@type='disk']//paragraph");
        for(i=linkElementList.length-1; i>=0; i--){
            var myAttribute = linkElementList[i];
            myAttribute.xmlContent.appliedParagraphStyle = myDoc.paragraphStyles.itemByName("Disk");
        }catch(e){}
    //____________________ Squar bullet style apply
    try{
        var rootElement = myDoc.xmlElements.item(0);
        var linkElementList = rootElement.evaluateXPathExpression("//list[@type='square']//paragraph");
        for(i=linkElementList.length-1; i>=0; i--){
            var myAttribute = linkElementList[i];
            myAttribute.xmlContent.appliedParagraphStyle = myDoc.paragraphStyles.itemByName("Square");
        }catch(e){}
    thx,
    csm_phil

  • Block elements?

    I use Dreamweaver CS 5.5.
    I noticed that design view doesn't diplay elements like <section> <head> and <nav> like block elements while live view and the browsers do. I guess they are block elements and the design view doesn't work properly?

    Check the schema definitions for the responses to make sure they are correct.
    See this article on the topic:
    http://soastation.blogspot.com/2007/11/trailing-block-elements-must-have-id.html

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

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

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

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

  • Well to run a cfquery I must include a "password" attribute, etc except I have a local server ? yes / no

    I read ALL the textbook
    MACROMEDIA CF, 2002 course.com
    Well to run a <cfquery> I must include a "password" attribute, etc
    except I have a local server ? yes / no
    May use/include a file dbinfo.cfm with all my passwords etc , and use
    these passwords as variables in <cfquery>,...etc ? this is more secure ?
    I must include vars in <cfscript> tag OR many <cfset> tags ?
    If I had
    <cfscript>
    password='gf56SDRPO999';
    </cfscript>
    HOW TO INCLUDE THIS VAR IN  <cfquery password=#password# ...> this is correct ?

    Your question is unclear to me, but if you just want to verify your syntax is legal, then YES.  You can easily set a value in a variable with <cfscript> and then later use that variable in a <cftag...> like you showed.
    But I would argue there is little additional security in using passwords in code like this between setting the password and using it directly in the tag.  There may be reusability and maintainability advantages, but little advantage to security.

  • 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

  • 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

  • XML document must have a top level element

    Hi all,
    I have deployed my web services in 904. When I try to see the generated wsdl, I am seeing:
    XML document must have a top level element.
    in IE. Does anyone know why?
    Thanks.

    If you take a look under the location where the application was deployed, you should find a file with the name of your interface (or class) and the extension .wsdl.
    If there is already a file of that name, we do not try to re-generate it. If this file is not a valid XML file, then it will explain the error message you are seing.
    Another reason for this error is when the code generation fail silently. It can occurs in some rare case, when you have started oc4j using a JRE instead of JDK (without javac).
    Hope this helps,
    Eric

Maybe you are looking for

  • Open and close specific posting periods automatically

    Hi experts, I need change periods for specifics posting periods at the end of the month automatically, with batch program. Nobody know a especific bapi or transaction? Thanks in advance,

  • How to get firefox to return to previous link and not reload it

    When viewing content from a page in a tab, clicking the back button causes the previous page to reload in stead of just returning to it. That makes it impossible (without opening the info in a new tab) to return to a page and click the next item you

  • Help about dns error using linksys

    please help me. i'm using cable modem and linksys WRT54G. if I connect my cablemodem to linksys, I cant browsing to some website (e.g www.schroders.com.hk). but if i connect cable modem directly to my laptop, I can browse that website. please help me

  • Insert a captivate 7 HTML 5 output in Robohelp 10

    I am trying to insert a captivate 7 HTML 5 output in Robohelp 10. I tried the steps specified by adding an adobe captivate demo. I linked it to both the swf file and the index.html file. However I am getting an error, that the index.htm file is not v

  • ** URGENT *** Rendering dinamically pages with oracle portal

    Hi everyone, we need to render dinamically a page (basically its content) with more than one template, to make printing possible. How portal renders a page (not a single portlet, but the entire page) with the associated template? I claim that portal