Xml parameter in instantiateWorkflow()

The instantiateWorkflow() function of the Worklist EJB takes a parameter for the
xml input to the workflow. I would like to know how the BPM can access this xml.
Details:
We have a manually trigerred BPM, hence we will always be using the instantiateWorkflow()
function to trigger. Currently we are using an XML variable in the workflow, which
we set using the Map parameter to instantiateWorkflow. However, there is another
parameter to instantiateWorkflow which is for the xml input to the workflow. I
would like to know how i can get the xml value inside the BPM?

Hi Milind,
If you pass in an XML document like this, it acts like the XML document passed into a Start
event. You can access the data in the same way using XPath statements in the variables
section.
Hope this helps,
Sean
Milind Prabhu wrote:
The instantiateWorkflow() function of the Worklist EJB takes a parameter for the
xml input to the workflow. I would like to know how the BPM can access this xml.
Details:
We have a manually trigerred BPM, hence we will always be using the instantiateWorkflow()
function to trigger. Currently we are using an XML variable in the workflow, which
we set using the Map parameter to instantiateWorkflow. However, there is another
parameter to instantiateWorkflow which is for the xml input to the workflow. I
would like to know how i can get the xml value inside the BPM?

Similar Messages

  • Problem passing a XML parameter

    Mrs,
    I need to pass a XML parameter from an OAF page to an external page. Below there is a piece of code where I did it at first (through parameters - GET). The problem: the XML has a variable length, so it can be bigger than GET limits.
    How could I pass it via POST? Put it on an OAFormValueBean doesn't seems to be a good answer, since XML tags ("<" and ">") and accents (we use Portuguese - BR) get processed in &xxx; notation. Therefore, as you can see, the page it's only used to mount XML and call another page.
    Dev Guide has a chapter "Posting to an OA Framework Page from a Different Technology". I think I need something like "POSTING FROM AN OA FRAMEWORK PAGE TO A DIFFERENT TECHNOLOGY".
    Any ideas?
    Tks.
    Elner Ribeiro
    CODE:
    processRequest()
    String xmlData = "<ReservaMultiGDSRoot>" + xmlPassag + xmlContato + "</ReservaMultiGDSRoot>";
    HashMap par = new HashMap();
    par.put("XmlData",xmlData);
    par.put("UrlPostBack","https://oafHost/OA_HTML/OA.jsp?page=/oracle/apps/xx/xx/webui/xxPG");
    pageContext.forwardImmediately("http://externalUrl/page.aspx",
    OAWebBeanConstants.REMOVE_MENU_CONTEXT,
    par,
    false,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    }

    forwardImmediately would just forward the request to the indicated resource.
    "POSTING FROM AN OA FRAMEWORK PAGE TO A DIFFERENT TECHNOLOGY".
    doing this means you are leaving the apps context and going to a different location, which is out of apps security.As a workaround what you can do is:
    1. Create a jsp in $OA_HTML
    2. From your OA page, navigate to this jsp, as a normal url link destination
    3. in the jsp, use ServletSessionManager.getURL ("<url>") and then post the data to the page you want to visit.
    4. Remember to define a function in the same menu to navigate to the jsp.
    Thanks
    Tapash

  • About XML Parameter for Web Service invoking

    I would like to use the XML parameter as the Web Service's input(Attachment is
    the XML schema) in WebLogic Server 8 sp1. When I generated the Web Service and
    use the WebLogic Server generate test web page to test it, I got Exception. The
    WebLogic Server can't constructe the input XML.
    The correct XML should look like this:
    <ids>
    <desc>Description</desc>
    <id>1</id>
    <id>2</id>
    <id>3</id>
    </ids>
    Is there any one can tell me whether this kind of XML was permitted for Web Service
    invoking or not?
    [sample.xsd]

    Hi Andy,
    On the test page, before the invoke of the operation, did it say
    something like:
    <!-- Do not know how to create a sample instance for this part due to
    the following exception:java.lang.InstantiationException:
    javax.xml.soap.SOAPElement. Pls replace this with the correct XML before
    invoking the service. --->
    if so, the service itself may be working OK, the deficiency is that the
    test page tries its best to determine sample values for the invoke,
    however it does not know in this case.
    Did you try with a client?
    Your XML should be fine.
    Regards,
    Bruce
    Andy wrote:
    >
    I would like to use the XML parameter as the Web Service's input(Attachment is
    the XML schema) in WebLogic Server 8 sp1. When I generated the Web Service and
    use the WebLogic Server generate test web page to test it, I got Exception. The
    WebLogic Server can't constructe the input XML.
    The correct XML should look like this:
    <ids>
    <desc>Description</desc>
    <id>1</id>
    <id>2</id>
    <id>3</id>
    </ids>
    Is there any one can tell me whether this kind of XML was permitted for Web Service
    invoking or not?
    Name: sample.xsd
    sample.xsd Type: ACT Project (text/xml)
    Encoding: base64

  • Weird XML parameter values

    Hello,
    I try to develop some automatic functions to FCP (5.1.4) via Applescript and the XML Interchange Format.
    So:
    I've got a folder full of images which should be placed one after another in the timeline. Every image should be in full screen mode or bigger. And the upper left corner of the scaled images should be equal to the upper left corner of the canvas.
    I wrote some code in Applescript which creates the XML-projectfile. A repeat loop grabs the images, reads out the imagesize and calculates a scaling factor to fill the canvas. Then it inserts the appropriate XML-Code. Due to the scaling, some parts of the image overlap the canvas (sure!). So now I want the images to be automatically positioned in the upper left corner of the canvas.
    How to do that?
    I tried to use the basic motion effect. It does well with the scaling. But when I tried to calculate the correct position of the images using the effect's parameter "center", some strange things appear....
    In FCP this parameter is shown as a pixel value. But the corresponding XML-Parameter shows a weird floating point number which, for me, seems to have no reference to the pixel value. This float seems to depend on the scaling value. Every image is of different size, i.e. different scaling values, i.e. different
    center-parameters. That is why I can't find ONE formula to calculate the position of every image.
    Why can't the XML-Parameter "center" use the same pixel values like the FCP parameter? Is there a secret relationship between them? Can I use other parameters to move the images?
    Any ideas how to deal with it?
    regards,
    Clancy

    Well, thank you wes plate for this suggestion.
    I have posted my question to the mailing list.
    But it would also be nice if someone in THIS forum could answer the question.
    Thank you.
    Clancy

  • XML : Parameter passing

    Hi All,
    I would wish to pass a number as a parameter to the XML query.
    For example:
    <Id>4</Id> where 4 is the parameter.
    Now I know this works but I need a solution such that I could pass different values in a loop as parameter to the XML query.
    The query works fine when I pass a single parameter but if I try to pass a number of parameters in a loop or using with clause, the query retrieves unwanted result set.
    Could you please help me with the same.
    Example:
    with T as
    select 1 id from dual union all
    select 2 id from dual
    SELECT
    EXTRACTVALUE(VALUE(SR), '/Activity/empid','xmlns="urn:/crmondemand/xml/activity"') AS ACCOUNTNAME,
    EXTRACTVALUE(VALUE(SR), '/Activity/empname','xmlns="urn:/crmondemand/xml/activity"') AS SUBJECT,
    FROM T,
    TABLE(XMLSEQUENCE(EXTRACT(
    WEB_SERVICE('<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:crmondemand/ws/activity/10/2004" xmlns:act="urn:/crmondemand/xml/activity">
    <soapenv:Header/>
    <soapenv:Body>
    <ns:ActivityNWS_Activity_QueryPage_Input>
    <PageSize>100</PageSize>
    <act:ListOfActivity>
         <act:Activity>
    <empid> T.id </empid>
    <empname />
    </act:Activity>
    </act:ListOfActivity>
    <ns:StartRowNum>0</ns:StartRowNum>
    </ns:ActivityNWS_Activity_QueryPage_Input>
    </soapenv:Body>
    </soapenv:Envelope>'
    ,'document/urn:crmondemand/ws/activity/10/2004:Activity_QueryPage',:GLOBAL_SID),
    '/soap:Envelope/soap:Body/*/*/*','xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/'))) SR
    I want to pass the values in the with clause (T.id) as parameter to the query. Also this T.id is a number.
    Could you please help with this.
    Regards,
    Jitesh
    Edited by: Jitesh Gurnani on Nov 15, 2012 10:31 PM

    any example what do you have and what do you want
    as example
    SQL> with t as
      2  (
      3  select 1 id from dual union all
      4  select 2 id from dual
      5  )
      6  select xmlelement("Id", id) from t
      7  /
    XMLELEMENT("ID",ID)
    <Id>1</Id>
    <Id>2</Id>
    SQL>
    SQL>
    SQL> with t as
      2  (
      3  select 1 id from dual union all
      4  select 2 id from dual
      5  )
      6  select xmlelement("root", xmlagg(xmlelement("Id", id))) from t
      7  /
    XMLELEMENT("ROOT",XMLAGG(XMLEL
    <root><Id>1</Id><Id>2</Id></root>
    SQL>

  • Need help loading xml parameter into component

    I am using a third-party flash component (no source access)
    that takes in a location of an xml file and manipulates it. The
    problem is, I want that file's location to be dynamic and be loaded
    from an argument to the end .swf that can then be forwarded to the
    internal component. How can I load a component at runtime and set
    it's xml_file parameter before/during construction of the object? I
    have tried to drag it to the stage from components and change the
    xml_file parameter in actionscript directly, but by the time this
    change gets triggered the xml has already been read in and it
    doesn't work.
    This may be really simple, but I just can't figure it out. I
    would appreciate anyone who could help. Thanks.

    First, set the size of the component with the setSize method,
    not "height" and "width". That may be the entire source of your
    problem.
    e.g.: this.componentInstanceName.setSize(175, 175);
    Second, I am unsure all the parameters you specify in the
    initialization object are valid {x:10, y:10, height:20, width:20,
    font_color:'#333333', player:"vidPlayer", xml_file:"list.xml"}.
    Only put in the initialization object parameters that are valid for
    the component you are instantiating.
    Third, make sure you are specifying the correct import
    statements for your component at the top of your code. Since it is
    a custom one, I can't help with knowing what to import. The code I
    attached in my first post assumed import statements and the
    components needed in the library, but here are the import
    statements that I used:
    import mx.controls.*;
    import mx.containers.*;//for scrollPane
    import mx.styles.CSSStyleDeclaration;
    import mx.transitions.easing;
    Fourth, don't forget the ignoreWhite method for importing XML
    into Flash:
    XML.prototype.ignoreWhite = true;// sets ignoreWhite
    globally

  • Sap survey repository xml parameter http

    Hi,
    Can somebody help me with the parameter xml ind the survey repository?
    For http xml, I have to implement Code like this:
    <SurveySystemParam  Action="http://sss:ppp/yyy/SAPSVY?cmd=svyResult"
    sss stands for the server
    ppp for the port
    but for what stands yyy?
    Rgdrs
    Hayit

    I thought you only needed to know what the yyy was
    As to getting HTTP to work, it's difficult to figure out and we continue to wait for someone to tell us how to set the ConnectorID
    Perhaps this thread will help you:
    Survey Parameter XML for http(s)

  • How to store user input as an xml Parameter value in log4j.xml?

    I am working on an app that is blend of log4j , EJBs, JMS, weblogic.
    In log4j, I have specified the value of  file appender;
    but now what I  wanna do is: Take path for File (For File Appender) from user and use it as a File path for File Appender in log4j.xml 
    Kindly guide me
    Thank you!

    I think the display of the trace in a standard WDA-component would be the best solution. Maybe Carsten Ziegler can help.
    You can return the trace from the BRFplus-function call and can extract everything using XSLT (CALL TRANSFORMATION command):
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" xmlns:asx="http://www.sap.com/abapxml" version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:template match="/">
        <asx:abap>
          <asx:values>
            <ROOT>
              <xsl:apply-templates/>
            </ROOT>
          </asx:values>
        </asx:abap>
      </xsl:template>
      <xsl:template match="/FDT/LOG/TEXT">
        <item>
          <xsl:value-of select="string(.)"/>
         </item>
         <xsl:apply-templates/>
      </xsl:template>
      <xsl:template match="/FDT/LOG/CONTEXT_UPDATE">
        <item>
          <xsl:value-of select="concat(string(@DataObjectName), ' is assigned to ' , string(text()))"/>
         </item>
         <xsl:apply-templates/>
      </xsl:template>
      <xsl:template match="text() | @*">
      </xsl:template>
    </xsl:transform>
    You have to adjust the transformation to get the result you need.
    Best Regards,
    Tobias
    P.S.: I'm still thinking about a better solution...

  • Stop weblogic services using StartStopServices.xml parameter leaves cmd.exe

    When using the "Start > All Programs > Oracle Business Intelligence > Stop BI services" function it calls the StartStopServices.cmd file. This file then references the StartStopServices.xml file using the following statement;
    <target name="stop_all" depends="set.is.stop.all, opmn.stop, wls.mgd.stop, wls.wait.mgd.shutdown, del.generated.managed.server.credentials, wls.stop, wls.wait.admin.shutdown, del.generated.admin.server.credentials">
         </target>
         <target name="set.is.stop.all">
         <property name="is.stop.all" value="true"/>
         </target
    The problem that I'm having is that when the weblogic services are successfully stopped, 2 cmd.exe windows are left open on the server. I've created a batch file to call the StartStopServices.cmd and added parameters such as
    Sleep.exe 30
    c:\windows\system32\TASKKILL.exe /F /IM cmd.exe /T
    Theoretically this should pause for a few, and then close the open cmd windows. However whenever the StartStopServices.cmd is called it closes the original command window before any statements are executed. So essentially I don't get to the taskkill or sleep parameters. I'm assuming that I need to edit the XML file somewhere to make it so it doesn't stop_all and close, but simply stops all and allows my added entries in the cmd windows to execute so ALL cmd windows are closed.
    I'm scheduling a backup using RMAN in NOARCHIVELOG mode, and need to stop the weblogic processes in order to complete this backup function. However I need to end these cmd windows otherwise over the course of time they will be cascaded everywhere. Has anybody accomplished this?

    Hope still you need a solution for your question.
    Follow these steps to achive as expected file using StartStopServices.xml, do let me know for any questions.
    File loc: MW_HOME\instances\instance3\bifoundation\OracleBIApplication\coreapplication
    1) I've added a new target attribute( as 'veera' to existing code) at the end of the tag
    <target name="stop_all" depends="determine.language, set.is.stop.all,find.or.get.credentials, opmn.stop, wls.mgd.stop, wls.wait.mgd.shutdown, del.generated.managed.server.credentials, wls.stop, wls.wait.admin.shutdown, del.generated.admin.server.credentials, veera">
    </target>
    2) Added new code as show below
    <target name="veera" if="wls.domain.exists" depends="wls.check.exists" description="Stop WLS">
    <echo message="Srini..." />
    <exec spawn="true" executable="cmd.exe" osfamily="windows" dir="${DOMAIN_HOME}/bin">
    <arg value="/c" />
    <arg value="taskkill /f /IM cmd.exe" />
    </exec>
    </target>
    If it is helpful, please mark as correct or helpful
    Cheers,
    Veeravalli
    Edited by: svee on Jul 5, 2012 3:09 PM
    Edited by: svee on Jul 5, 2012 3:12 PM

  • XML Parameter

    Hi,
    I want to create 2 local parameters of type XML with the structure corresponding to -
    i) a row of a input table in a BAPI and
    ii) the input table itself.
    What is the best way to do this - something quick and easy? Thanks.
    Regards,
    V M.

    For everyone:  The cut-and-paste approach, while "quick and dirty", does create a potential issue if changes to the RFC/BAPI are made.
    An alternative, which is "pretty quick" and "not too dirty":
    1.  Insert a JCO call action, configure it, but uncheck the "Execute Function" checkbox, so the function will not actually be run.
    2. In your case, create two XML Local parameters
    3. Insert an Assign action, and copy the appropriate XML from the JCO action to your XML parameters
    4. Using the same XPath expression you used in the Assign action, assign a reference document to each of these two Local XML parameters, using the "Link to Other Object Property" option in the assign reference dialog
    Now you have XML documents that will be more dynamic when changes occur to the underlying RFC.
    Rick

  • SSRS Designer - XML Datasource - Parameter passing XML gets encoded, causes error on WS Request

    Hello,
    I am attempting to query a List from SharePoint using the XML Datasource. I am forced to use this datasource as our infrastructure team will not be upgrading our SSRS 2008 farm to SSRS 2008 R2 anytime soon. 2008 R2 has Native SharePoint
    List Datasources ( which works great FYI ). I already completed the report using the Native SP List DS, only to find out that my timing was not so great as 2008 R2 was not in production yet... /sigh, communication... anyways...
    I have successfully queried the List using the XML Datasource. It is only when I try to use the CAML query in the query parameter that it fails. So, here is my Query:
    <Query>
    <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
    <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
    <Parameters>
    <Parameter Name="listName">
    <DefaultValue>{DD3DE881-1F9D-4016-AD73-F7E1D9340880}</DefaultValue>
    </Parameter>
    <Parameter Name="query">
    <DefaultValue>
    <Query>
    <Where>
    <Gt>
    <FieldRef Name="Modified" />
    <Value Type="DateTime">2011-03-01</Value>
    </Gt>
    </Where>
    </Query>
    </DefaultValue>
    </Parameter>
    </Parameters>
    </Method>
    <ElementPath IgnoreNamespaces="True">*</ElementPath>
    </Query>
    I will be replacing that hard date with something like =DateAdd("d",-7,Now()) later, but focusing on the task at hand...
    Here is the error ( trimmed so you don't need to read the whole stack ):
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Server</faultcode>
    <faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring>
    <detail>
    <errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">Element &lt;Query&gt; of parameter query is missing or invalid.</errorstring>
    <errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000000</errorcode>
    </detail>
    </soap:Fault>
    </soap:Body>
    The key to that error is:  Element &lt;Query&gt; of parameter query is missing or invalid.
    So I see that it is being encoded, so I decided to capture the actual Webservice request with Fiddler:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    <query>
    &lt;Query&gt;
    &lt;Where&gt;
    &lt;Gt&gt;
    &lt;FieldRef Name="Modified" /&gt;
    &lt;Value Type="DateTime"&gt;2011-03-01&lt;/Value&gt;
    &lt;/Gt&gt;
    &lt;/Where&gt;
    &lt;/Query&gt;
    </query>
    <listName>{DD3DE881-1F9D-4016-AD73-F7E1D9340880}</listName>
    </GetListItems>
    </soap:Body>
    </soap:Envelope>
    So now that we know that somehow the XML parameter of "query" is being encoded. How do I tell the SSRS designer that for this XML datasource's dataset query, I do not wish to encode that parameter?  I have searched all day today and came up with
    very little. I found a few posts with a simliar question, but no solution was ever mentioned.
    The closest to a likely solution was this Post :
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/8a9ba2fc-26cd-423e-bbbf-a16b5c9722f5/
    in particular this phrase interested me:
    "Query parameters of type Msxml2.DOMDocument30 are passed as XML. Parameters of type String which happen to contain XML are passed as strings and are XML encoded in the SOAP message. The function CXml(String) converts a string
    into an Msxml2.DOMDocument30 and can be used in query parameter expressions."
    Similar to the poster of that question, I also cannot find a way to define the parameter as an XML type or the use of this mysterious CXML() function in the expression builder...
    I'm looking for a Microsoft resource to tell me whats going on here, but if anyone else has a workaround or an idea, I would be happy to try it out.
    Regards,
    -Ryan, Solution Architect

    Hi Ryan,
    Thanks for your question, from your statement, it seems that you want to give a default value for the parameter named query, right? If so I would recommend you achieve this requirement in report level, please follow these:
    1. Create a parameter named Date, select Date/Time as data type.
    2. Move to Default values tab, then click Add button ->type in  =DateAdd("d",-7,Now())  as defult value's expression.
    3. Right-cilck the dataset, and then select DataSet properties.
    4. Move to Filters tab, click add button to add a filter.
    5. In the drop-down list of Expression, select Modified datefield with Date/Time datatype.
    6. Type in =Parameters!Date.Value in value's textbox.
    Similar thread, please get a reference from this
    http://social.technet.microsoft.com/Forums/en-US/sqlreportingservices/thread/24d30b00-139e-4487-9fb1-02f460b432f9
    If you have any question, please feel free to ask.
    Thanks,
    Challen Fu 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • BizTalk Stored Proce-passing XML as one of the Input parameter and String as another parameter

    I have a requirement in BizTalk that
    - I will receive XML from Source and i need to submit this XML data and two other string parameters in  SQL storeprocedure  as a parameters and submit data
    Ex: My_SP(myID Integer INPUT,myXML xml Input,mystring OUT)
    Could you please help me how call storeprocedure and submit multiple parameters in BizTalk.

    you can execute stored procedure by generating schemas from WCF-SQL Adapter.
    for passing parameters you will have to do the mapping to the Generated schema for Stored proc.
    I would suggest to do this in Message Assignment shape, there you can easily assign all the parameters.
    Integer and String parameters can be assigned from normal variables and XML parameter can be inserted as suggested by Abhishek-
    xmldoc=requestMsg;
    varOuterstring=xmldoc.Outerxml.Tostring();
    Please refer the below article.
    https://www.packtpub.com/books/content/new-soa-capabilities-biztalk-server-2009-wcf-sql-server-adapter
    http://msdn.microsoft.com/en-us/library/dd787968.aspx
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

  • Reporting Services web service complex xml type report parameters

    Hi,
    I have the following xml type parameter in my request query that I use in reporting services.
    <Parameter Name="accountDetails" Type="XML" xmlns:d4p1="thevalue" xmlns:i="thevalue">
    <DefaultValue>
    <d4p1:AccountDetailDto>
    <d4p1:AccountNumber>12345</d4p1:AccountNumber>
    <d4p1:AccountType>Sales</d4p1:AccountType>
    </d4p1:AccountDetailDto>
    </DefaultValue>
    I want to know how I can assign values to the accountDetails parameter from report parameters, I've tried to call it from the dataset parameter properties but it doesn't return any values. I created Parameters!accountDetails.Value on the dataset parameters
    properties and assigned it the following value: it only returns empty columns
    ="<AccountDetailDto><AccountNumber>"& Parameters!AccountNumber.Value &"</AccountNumber><AccountType>"& Parameters!AccountType.Value &"</AccountType></AccountDetailDto>"
    You're help will be highly appreciated as I've been trying to solve this for a while now

    Hi Alisa,
    Perhaps I should explain my problem clearly...
    This is my query request that I send to the webservice:
    <Query>
    <Method Name="GetPerAccountAssetAllocation" Namespace="http://tempuri.org/">
    <Parameters>
    <Parameter Name="accountDetails" Type="XML" xmlns:d4p1="thevalue" xmlns:i="thevalue">
    <DefaultValue>
    <d4p1:AccountDetailDto>
    <d4p1:AccountNumber>12345</d4p1:AccountNumber>
    <d4p1:AccountType>JSE</d4p1:AccountType>
    </d4p1:AccountDetailDto>
    </DefaultValue>
    </Parameter>
    </Parameters>
    </Method>
    <SoapAction>http://tempuri.org/IPortfolioManagementService/GetPerAccountAssetAllocation</SoapAction>
    <ElementPath IgnoreNamespaces="true">*</ElementPath>
    </Query>
    It works well when I run it just like this, that is without specifying any parameters in the report data dialogue window or on the dataset parameters properties, it returns the values and columns correctly.
    So my problem is, I need to find out how(xml parameter syntax, steps e.t.c)
    I can do to allow users to specify the accountDetails parameter, its quite tricky for me coz its an xml type parameter, Im not sure if I should just specify the AccountNumber and
    ReportType parameters separately:
    I've tried the following without any success:
    1. Under the dataset properties:  I tried not to specify a default value for the accountDetails parameter on the xml query, then I added a parameter called "accountDetails" under the dataset parameters properties, then under parameter
    value I added the following xml value :
    <d4p1:AccountDetailDto>
    <d4p1:AccountNumber>Parameters!AccountNumber.Value</d4p1:AccountNumber>
    <d4p1:AccountType>Parameters!AccountType.Value</d4p1:AccountType>
    </d4p1:AccountDetailDto> 
    (I also added the AccountNumber and AccountType parameters under the report data dialogue window)
    This returns empty columns, is there something I'm missing, or am I doing this incorrectly?

  • Got problem in loading xml

    Hi All,
    Because of your help I am doing small application and I am new in xml I gets small small problem and by the your help i cam solve it.
    Now i have last problem when i solve it then my tool gets complete. I have attached small code of it and its working. The problem is when i fill one methods parameter information its comes in all methods. Which is wrong.
    I want output like:
    <?xml version="1.0" encoding="UTF-8"?>
    <interface>
        <name>the name of package</name>
        <className>The name of class</className>
        <methods>
               <name>the name of the method</name>
              <invokeKind/>
              <returnType>the return type of the method</returnType>
              <optionalParameters/>   
              <parameters>
                       <name>Param1</name>
                       <type>Void</type>
               </parameters>
         </methods>
         <methods>
                <name>the name of the method22</name>
               <returnType>the return type of the method22</returnType>
               <parameters/>
          </methods>
    </interface>But output comes like
    <?xml version="1.0" encoding="UTF-8"?><interface>
    <name>the name of package</name>
    <className>The name of class</className>
    <methods>
    <name>the name of the method</name>
    <invokeKind/>
    <returnType>the return type of the method</returnType>
    <optionalParameters/>
    <parameters>
    <name>Param1</name>
    <type>Void</type>
    </parameters>
    </methods>
    <methods>
    <name>the name of the method22</name>
    <returnType>the return type of the method22</returnType>
    <parameters>
    <name>Param1</name>
    <type>Void</type>
    </parameters>
    </methods>
    </interface>
    I have not given parameter in second method but given in first method but replicates in second thats y i am stucked,
    Please help me.
    Code is ::
    import java.io.File;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.DocumentFragment;
    import org.w3c.dom.Node;
    public class TryXML
         public static void main(String args[])
              try
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                DocumentBuilder parser = factory.newDocumentBuilder();
                Document methoddoc = parser.parse(new File("methodinfo.xml"));
                Document packageDoc = parser.parse(new File("interface.xml"));          
                //***Package information           
                Node packagenameNode = packageDoc.getElementsByTagName("name").item(0);
                Node packageclassNode = packageDoc.getElementsByTagName("className").item(0);
                packagenameNode.setTextContent("the name of package");
                packageclassNode.setTextContent("The name of class");
                //***First method information
                Node nameNode = methoddoc.getElementsByTagName("name").item(0);
                Node returnTypeNode = methoddoc.getElementsByTagName("returnType").item(0);
                nameNode.setTextContent("the name of the method");
                returnTypeNode.setTextContent("the return type of the method");
                //**Parameter Informtion of this method.
                Document parameterDoc = parser.parse(new File("parameter.xml"));
                Node paramnameNode = parameterDoc.getElementsByTagName("name").item(0);
                Node paramreturnTypeNode = parameterDoc.getElementsByTagName("type").item(0);
                paramnameNode.setTextContent("Param1");
                paramreturnTypeNode.setTextContent("Void");
              //***adding parameter information into method.
                Node methodaddnode = methoddoc.importNode(parameterDoc.getDocumentElement(), true);
                DocumentFragment docfrag = methoddoc.createDocumentFragment();
               //***Move the nodes into the fragment
               while (methodaddnode.hasChildNodes())
                    docfrag.appendChild(methodaddnode.removeChild(methodaddnode.getFirstChild()));
               Node paramNode = methoddoc.createElement("parameters");
               methoddoc.getDocumentElement().appendChild(paramNode);
               paramNode.appendChild(docfrag);
               //***adding first methode's information into package.
               Node node = packageDoc.importNode(methoddoc.getDocumentElement(), true);
               docfrag = packageDoc.createDocumentFragment();
              while (node.hasChildNodes())
                  docfrag.appendChild(node.removeChild(node.getFirstChild()));
              Node methodnode = packageDoc.createElement("methods");
              packageDoc.getDocumentElement().appendChild(methodnode);
              methodnode.appendChild(docfrag);
              //***adding second methode's information into package.
              nameNode.setTextContent("the name of the method22");
                returnTypeNode.setTextContent("the return type of the method22");
                node = packageDoc.importNode(methoddoc.getDocumentElement(), true);
                docfrag = packageDoc.createDocumentFragment();
              while (node.hasChildNodes())
                  docfrag.appendChild(node.removeChild(node.getFirstChild()));
              Node methodnode2 = packageDoc.createElement("methods");
              packageDoc.getDocumentElement().appendChild(methodnode2);
              methodnode2.appendChild(docfrag);
              //**Display
                DOMSource source = new DOMSource(packageDoc);
                StreamResult result = new StreamResult(System.out);
                TransformerFactory transformerFactory = TransformerFactory.newInstance();
                Transformer transformer = transformerFactory.newTransformer();
                System.out.println("This is the content of the XML document:\n");
                transformer.transform(source, result);
              catch (Exception e)
    }regards
    -bunty

    my problem was, if i dont have parameters for second method then also parameters of first methods comes into 2nd method. I think its headache for me.
    Parmeter.xml:
    <parameter>
        <name></name>
        <type></type>
    </parameter>Method.xml
    <method>
        <name></name>
        <returnType></returnType>
         <parameters>
        </parameters>
    </method>So my quetion is, I have put whole parameter.xml into method.xml's parameter node. In previous post u said refresh it. How can i refresh it ? not get this point .
    Code is :
    import java.io.File;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class TryXML
         public static void main(String args[])
              try
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                DocumentBuilder parser = factory.newDocumentBuilder();
                Document methoddoc = parser.parse(new File("method.xml"));
                Document packageDoc = parser.parse(new File("interface.xml"));
                Document parmerterDoc=parser.parse(new File("parameter.xml"));
                //***Package information           
                Node packagenameNode = packageDoc.getElementsByTagName("name").item(0);
                Node packageclassNode = packageDoc.getElementsByTagName("className").item(0);
                packagenameNode.setTextContent("package1");
                packageclassNode.setTextContent("class1");
                //***First method information
                Node nameNode = methoddoc.getElementsByTagName("name").item(0);
                Node returnTypeNode = methoddoc.getElementsByTagName("returnType").item(0);
                nameNode.setTextContent("method1");
                returnTypeNode.setTextContent("int");
                //**Parameter Informtion of this method.
                Node paramnameNode = parmerterDoc.getElementsByTagName("name").item(0);
                Node paramreturnTypeNode = parmerterDoc.getElementsByTagName("type").item(0);
                paramnameNode.setTextContent("Param1");
                paramreturnTypeNode.setTextContent("Void");
                NodeList list = parmerterDoc.getElementsByTagName("parameter");
                Element element = (Element)list.item(0);
                NodeList list1 = methoddoc.getElementsByTagName("parameters");
                Element element1 = (Element)list1.item(0);
                // Make a copy of the element subtree suitable for inserting into doc2
                Node dup = methoddoc.importNode(element, true);
                // Insert the copy into doc2
                element1.appendChild(dup);
                NodeList methodlist = methoddoc.getElementsByTagName("method");
                Element methodelement = (Element)methodlist.item(0);
                NodeList methodlist1 = packageDoc.getElementsByTagName("methods");
                Element methodelement1 = (Element)methodlist1.item(0);
                // Make a copy of the element subtree suitable for inserting into doc2
                Node methoddup = packageDoc.importNode(methodelement, true);
                // Insert the copy into doc2
                methodelement1.appendChild(methoddup);
    //          ***Second method information
                nameNode = methoddoc.getElementsByTagName("name").item(0);
                returnTypeNode = methoddoc.getElementsByTagName("returnType").item(0);
                nameNode.setTextContent("method2");
                returnTypeNode.setTextContent("short");
                //**Parameter Informtion of this method.
                 methodlist = methoddoc.getElementsByTagName("method");
                 methodelement = (Element)methodlist.item(0);
                 methodlist1 = packageDoc.getElementsByTagName("methods");
                 methodelement1 = (Element)methodlist1.item(0);
                // Make a copy of the element subtree suitable for inserting into doc2
                 methoddup = packageDoc.importNode(methodelement, true);
                // Insert the copy into doc2
                methodelement1.appendChild(methoddup);
              //**Display
                DOMSource source = new DOMSource(packageDoc);
                StreamResult result = new StreamResult(System.out);
                TransformerFactory transformerFactory = TransformerFactory.newInstance();
                Transformer transformer = transformerFactory.newTransformer();
                System.out.println("This is the content of the XML document:\n");
                transformer.transform(source, result);
              catch (Exception e)
                   e.printStackTrace();
    }Message was edited by:
    bunty_barge

  • XML DB: As XML file size doubles validate time more than doubles

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    We have default XMLDB install. I am using schemavalidate() to successfullly validate xml files against a registered xsd. For some reason as the files size doubles the time to validate the file grows at a faster rate than double? We wanted to generate approx 18MB files since they hold 5000 records. But as you can see it appears I would be better off generating six 3MB files instead. What init.ora or xdbconfig.xml parameter might I change to help out with behavior? Any other ideas of why this happening? Is this an example of "doesn't scale"?
    1.5MB 3 Seconds
    3MB 15 Seconds
    6MB 1 Minute
    12MB 6 Minutes
    18MB 16 Minutes
    Code is simple..
    procedure validate_xml_file (p_dir in varchar2, p_file in varchar2) is
    v_xmldoc xmltype;
    begin
    select XMLTYPE(bfilename(p_dir, p_file),NLS_CHARSET_ID('AL32UTF8'))
    into v_xmldoc
    from dual;
    v_xmldoc.schemaValidate();
    end validate_xml_file;

    If I take the clause off the end of the cview table this procedure does not work at all.. It fails at the schemavalidate call...
    Error report:
    ORA-19030: Method invalid for non-schema based XML Documents.
    ORA-06512: at "SYS.XMLTYPE", line 345
    ORA-06512: at line 26
    19030. 00000 - "Method invalid for non-schema based XML Documents."
    *Cause:    The method can be invoked on only schema based xmltype objects.
    *Action:   Don't invoke the method for non schema based xmltype objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Getting nowhere

    Well at point of sale I was told my speed is approx 63 even tho the person I spoke to today said there noway I can go faster because I was quoted that speed. I received 74mb from day one but after some bad weather my electric went out around 3-4 time

  • Trouble exporting iphoto slideshow

    I want to share my iphoto slideshow with friends and watch it on my AppleTV.  I tried exporting several different ways and I can't get it to export.  I have iPhoto '09.  Help!

  • DELETING DUPLICATE SONGS - PALM PRE

    I am unable to delete duplicate songs on my Palm Pre music files. I'm not even sure how the duplicate songs showed up in my files.  I have tried everything. I use I tunes &  I have set all audio defaults to Itunes. I also use the Palm Music Assistant

  • Use XPath to select one of the node??

    Can I use xpath to draw <param-value>/mnt/VISL/stats/stats/clarent2</param-value> only? I have tried to use ApplyXPath sample, but I don't know what xpath value I should use? I tried /doc/servlet/init-param/param-value but it certainly draw other tag

  • Data transfer from Preprod to Prod

    Hi We had an issue in BI where the database table got deleted in production for one of the infocubes. We are doing a restore of Production data back up into Preproduction and then take the data from a praticular infocube to the production. Now ,my qu