Passing file location as URL parameter for xml query

Hi all,
A quick question regarding using a parameter to set the source URL in an XML query template.
When assigning the URL, the static text works perfectly eg:
//<servername>/<folder>/samplefile.xml . The xml is returned as required.
However, we wish to call this from a BLS txn and set the source URL dynamically.
To test this we assigned //<servername>/<folder>/samplefile.xml to Parameter no 1 and insert [Param.1] in the source URL field. No luck.
Any suggestions?
Cheers
Mark

Mark,
In BLS, the double slashes (escaping the single /) are only necessary if you are building the full http url string in the link editor.
If your XMLQuery template is something like http://localhost/Folder/Subfolder/[Param.1] then put in a default param value in the query template and make sure the query test works.  Then configure (or reconfigure) this in your BLS transaction and generate the sample results.  All you should have to do in BLS then is to assign your Transaction or Local property to the Param.1 link in your XMLQuery action block.  All of the dynamic replacement and subsequent xml file retrieval should then be done by the XMLQuery itself.
If you can keep the majority of the URL in the XMLQuery itself and then just dynamically pass it the Param.1 piece it will be very easy to test and configure (also use localhost if the file lives on the xMII web server), but if you have to build the string external in BLS I would recommend using a combination of the expression editor and a Local property.  If the Local string property contains the base of http://localhost/Folder/Subfolder/ (no quotes or character escaping needed for the default value of a string property) then just assign something like the following to your Param.1 property of the XMLQuery:  Local.URLBase & "filename.xml" (a simple evaluate will confirm your efforts).
Regards,
Jeremy

Similar Messages

  • URL constructor for XML query

    I can't seem to construct an http SQL query correctly using the Java URL constructor. When I enter the following string in the browser window, everything works fine:
    "http://aaaa.bbb.ccc.com/nwind?sql=select * from employees for xml auto&root=root". The results of the query are displayed in the browser window. I would like to get this to work using the URL and URLConnection classes. It seems I always get some sort of error with a response length of -1. I would appreciate any insight into this problem. Thanks for your help.
    Paul J. Lay
    [email protected]

    Thanks for your prompt reply. I tried your suggestion immediately. It didn't change the results. I still get a response length of -1. You can actually try this yourself by keying in a browser window the following string: www.itsmagical.com/nwind?sql=select * from employees for xml auto&root=root. I can't imagine what the problem could be. Thanks again for your prompt reply.
    Best Regards,
    Paul J. Lay

  • No method found for XML query element

    Hi,
    I have an EJB module which contains some entity beans.
    If I try to deploy it or verify it using the Sun One Verifier Tool I get the following exception...
    Error: ** Error trying to process file: java.lang.RuntimeException: No method found for XML query element: Ambiguous or invalid <query-method>
    java.lang.RuntimeException: No method found for XML query element: Ambiguous or invalid <query-method>
    at com.sun.enterprise.deployment.xml.EjbNode.parseQueries(EjbNode.java:700)
    at com.sun.enterprise.deployment.xml.EjbNode.completeLoadingDescriptor(EjbNode.java:671)
    at com.sun.enterprise.deployment.xml.EjbBundleNode.completeLoadingDescriptor(EjbBundleNode.java:524)
    at com.iplanet.ias.deployment.EjbBundleXmlReader.load(EjbBundleXmlReader.java:249)
    at com.iplanet.ias.deployment.EjbBundleXmlReader.loadStdAloneModule(EjbBundleXmlReader.java:162)
    at com.sun.enterprise.tools.verifier.Verifier.openEjbJar(Verifier.java:2421)
    at com.sun.enterprise.tools.verifier.Verifier.loadEjbJar(Verifier.java:1318)
    at com.sun.enterprise.tools.verifier.Verifier.loadJar(Verifier.java:866)
    at com.sun.enterprise.tools.verifier.gui.MainPanel.run(MainPanel.java:187)
    at java.lang.Thread.run(Thread.java:536)
    Look in file "EntityBeans.jar_verified.xml" for detailed results on test assertions.
    This problem can be resolved by un-installing the IDE, removing my user directory, and re-installing the IDE (I am using SunOne Studio 5 SE Update 1). The problem is that it returns with alarming regularity.
    Anyone else experiencing this? Any help would be much appreciated.

    Sometimes, but not always, this exception appears in the ide.log before the error first occurs.
    com.sun.forte4j.j2ee.packaging.PackagingIOException: package/EntityBeans.ejbjar
         at com.sun.forte4j.j2ee.packaging.PackagingUtil.writeJarFile(PackagingUtil.java:403)
         at com.sun.forte4j.j2ee.packaging.PackagingUtil.writeJarFile(PackagingUtil.java:67)
         at com.sun.forte4j.j2ee.ejbmodule.EJBModuleDataObject.writeEJBJar(EJBModuleDataObject.java:2673)
         at com.iplanet.ias.tools.forte.verifier.VerifierAction.performAction(VerifierAction.java:63)
         at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:431)
         at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:97)
         at org.openide.util.Task.run(Task.java:136)
         at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:328)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:670)

  • How to get XML file located in SAP directory for SAP XI

    In my system, there is a function to create IDOC and store as a xml file in directory of SAP for example u201C/inf/ERQ/XML/u2019 .I want to use this XML file as a input for SAP XI to map and generate output as an IDOC. However, I donu2019t know how to setup integration directory for this scenario. Iu2019m not sure how to access directory in SAP using SAP XI. Any help would be grateful. Thank you.
    Thank you expert,
    @tom

    Hi
    Check this PDF
    http://www.sap-press.com/downloads/h982_sample_chapter.pdf
    search with "Mapping program in SAP XI" in the above link
    http://www.sap-press.de/download/dateien/1191/sappress_exchange_infrastructure.pdf
    Regards
    Pavan

  • Passing date criteria in url parameter

    Hi,
    I want to filter a recordset by a given date.
    Create the recordset, if I use a runtime value of #27/11/06#
    all the records for that date are returned.
    However, when I try to pass the same information through an
    URL Parameter it doesn't work.
    Is there a problem with passing this info in that way?
    Thanks, Mark.

    No, should be absoloutely fine. The prob is most likely to do
    with your SQL
    statement.
    As a test, don't display any records. At the top of your
    page, try
    outputting the completed SQL statement onto the page to see
    what it looks
    like. The problem being you may need to add the # symbols
    manually. Should
    look something like
    "SELECT * FROM TableName WHERE DateField = #" &
    URLParameter & "#"
    HTH,
    Piers

  • Problem passing Session variable as URL parameter?

    Hi,
    I am trying to create a multiple page entry form using
    coldfusion session. But I am having some problem when passing the
    session variable to url parameter. For test purpose I have created
    the following code:
    <cfif Not IsDefined("SESSION.AE")>
    <!--- If structure undefined, create/initialize it
    --->
    <cfset SESSION.AE = StructNew()>
    <!--- Represent current form srep; start at one --->
    <cfset SESSION.AE.StepNum = 1>
    </cfif>
    <cfif IsDefined("Form.GoBack")>
    <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    <cfelseif IsDefined("Form.Next")>
    <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    </cfif>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    </head>
    <body>
    <form method="post"
    action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
    <input type="submit" name="GoBack" value="Back">
    <input type="submit" name="Next" value="Next">
    </form>
    </body>
    </html>
    When run it I get the following error:
    The value "" cannot be converted to a number
    The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm: line
    11
    9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    10 : <cfelseif IsDefined("Form.Next")>
    11 : <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    12 : <!---<cfset SESSION.AE.StepNum = #url.StepNum# +
    1>--->
    13 : </cfif>
    I couldn't figure out where is the problem. Any help is
    really appreciated.
    Thanks in advance.

    You are mixing up your gets and posts aren't you?
    You have your form method set to post which creates form
    variables not
    url variables. So when you try to use the url variable to set
    your
    session it does not exist.
    Change your SESSION.AE.StepNum = #url.StepNum# to
    Session.AE.StepNum =
    form.StepNum, note there is no need for the #'s.
    OR
    change your form method="post" to form method="get"
    Nagelia wrote:
    > Hi,
    >
    > I am trying to create a multiple page entry form using
    coldfusion session. But
    > I am having some problem when passing the session
    counter to url parameter. For
    > test purpose I have created the following code:
    >
    > <cfif Not IsDefined("SESSION.AE")>
    > <!--- If structure undefined, create/initialize it
    --->
    > <cfset SESSION.AE = StructNew()>
    > <!--- Represent current form srep; start at one
    --->
    > <cfset SESSION.AE.StepNum = 1>
    > </cfif>
    > <cfif IsDefined("Form.GoBack")>
    > <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    > <cfelseif IsDefined("Form.Next")>
    > <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    > </cfif>
    >
    > <html>
    > <head>
    > <title>Untitled Document</title>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > </head>
    > <body>
    > <form method="post"
    action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
    > <input type="submit" name="GoBack" value="Back">
    > <input type="submit" name="Next" value="Next">
    > </form>
    > </body>
    > </html>
    >
    > When run it I get the following error:
    >
    > The value "" cannot be converted to a number
    >
    >
    > The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm:
    line 11
    >
    > 9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    > 10 : <cfelseif IsDefined("Form.Next")>
    > 11 : <cfset SESSION.AE.StepNum = #url.StepNum# +
    1>
    > 12 : <!---<cfset SESSION.AE.StepNum =
    #url.StepNum# + 1>--->
    > 13 : </cfif>
    >
    > I couldn't figure out where is the problem. Any help is
    really appreciated.
    >
    > Thanks in advance.
    >
    >
    >
    >

  • Configurations file location | visual administrator parameter | path ??

    Hi folks ,
      I have installed the GDS console . As suggested in the installation guide " GDS 1.0 - Installation Guide.pdf " I have copied the GDS folder in the path E:/usr/sap which is where my WAS is installed  (This GDS folder comes when you unzip the file GDS1005_1.zip in the software for MDM 5.5 SP05 ase release . It contains the subfolders namely " configurations" , "IncomingMessages" , "MessagesToDataPool"). The WAS and the GDS console are at the same machine .
    Now there is a step in the configuration of visual administrator parameters where I need to configure the parameter "Configurations file location" . I gve the path as "E:\usr\sap" as suggested in the example for the configuration in the installation guide (my GDS folder is inside "sap" folder ) but when I try to access the page for GDS through http://<host-name><port>/gds it says resource not found .
    What I am not able to figure out is what would be the appropriate path for this parameter so that I am able to access the page ?
    Could you please help me out !!!
    Regards
    Deepak Singh

    Hi ,
       Actually I did all that you suggested but the problem was , for J2EE to accept my changes I was required to restart the engine from the console which I was not doing . This morning I did that and could move on to the next set of problems . But thanks for the suggestions . I do appreciate that .
    - If you look at the " GDS 1.0 - Installation Guide.pdf " then under " Editing the application properties " there is a table which has five columns , Property/Default/<b>1Sync</b>/Description/Example . What exactly does the " 1Sync " column convey ??? . Guess it is the External data pool ??
    - I am doing this more as a personel training excercise so I have some  infrastructural constraints .I have a WAS 6.40 SP15 installed on my machine . I have MDM 5.5 SP05 with the GDS component .  I don't have a XI/R3 system yet in the landscape . I don't have any external data pool . I don't have an AS2 adapter either . So now I am getting a couple of configuration errors which are for some parameters in visual administrator .
    The parameters are
    > DestinationDataPoolGln
    > DestinationDataPoolName
    > 'GDS.PrincipalHeader'
    > ProviderGln
    > ProviderName
    > ProviderTimeZone
    > 'GDS.SchemaLocation'
    > 'LinksItemKeyCombination'
    > 'SystemExternalValidations'
    Is there a way I can configure these values without adding anything further systems in my landscape ??
    Would appreciate your inputs !
    Regards
    Deepak Singh

  • How can I pass empty value in URL Parameter

    Hi,
    I am passing different URL parameters to one page, to filter
    the recordset on that page. How can I pass an empty value in the
    URL parameter so that the recordset in unfiltered?
    The URL parameter is based on one field of the database:
    ContentType. So, the link would be to
    default.asp?ContentType=Event
    and then all records that have the ContentType field in the
    DB as Event are displayed. Is it possible to use this system to
    pass an empty parameter so that all records are displayed?
    Thanks
    Ian

    ?ContentType=All
    <% if (ContentType == "All")
    Build recordset w/o filtering
    ASP is rusty, but those are the basics.
    "iandobie" <[email protected]> wrote in
    message
    news:e8im80$q7m$[email protected]..
    > Hi,
    > I am passing different URL parameters to one page, to
    filter the recordset
    > on
    > that page. How can I pass an empty value in the URL
    parameter so that the
    > recordset in unfiltered?
    > The URL parameter is based on one field of the database:
    ContentType. So,
    > the
    > link would be to
    > default.asp?ContentType=Event
    > and then all records that have the ContentType field in
    the DB as Event
    > are
    > displayed. Is it possible to use this system to pass an
    empty parameter so
    > that
    > all records are displayed?
    > Thanks
    > Ian
    >

  • URL syntex for XML queries

    Hi all,
    I am using MII 12.1 and facing a problem with xml query url syntex.
    suppose my project folder name is "X" and my tag query name is "Y"
    so what is the syntex of url url in XML query for above query?
    Edited by: Manoj Bilthare on Jul 28, 2009 11:39 AM

    Dear Jeremy,
    Path: ActivePortal-->ActivePortalMonitor
    Actually in active portal there is a transaction "ActivePortalMonitor" by which we can insert data for alert log and metrics.
    So in Metrics there are some formula to calculate metrics which we defined in "metric editor".
    I need to use "calculated columns" action block for these metric calculation and this action comes under "XML functions "
    thats why i require XML Query in case of tag query.
    It may be that i am not able to explain you clearly so for better understanding please refer
    "ActivePortal-->ActivePortalMonitor.trx" in "active portal" project.

  • Use of Global Properties in URL path of XML Query

    I am trying to use global properties to define the URL of XML query:
    Globals.ImageFilePath&"SomePath/\File.xml"
    but it does not like it. If I put the content of the Globals.ImageFilePath it works fine. What is the synatax for that?
    I am using the XML query in a transaction within an image creation action block. When I try to define the URL parameter of the XML file as a link, it is not taken on account, and the image created has no data (it is empty). The URL is taken when defined on the Cofigure Object screen, but there I have the same problem to use the global variable parameter.
    Any suggestions?
    Thanks,
    Vlad
    Edited by: Vladimir Baltchev on Jul 29, 2008 11:33 PM
    Edited by: Vladimir Baltchev on Jul 29, 2008 11:40 PM

    As I mentioned in my first posting, yes, I can put the global variable of the link editor for the URL parameter, it evaluates well, but it is not taken on account by the query, and the image generated is empty. Obviously there is a bug here, so I am trying to find a work around to use the global variable on the Configure Object screen, where the parameter URL is taken by the XML query, but on this screen I can not use the global variable. It works only if I put the content of the global variable.
    So, does anybody know if we can use global variables on a Configure Object  screen, or on the XML query URL field, and if so, what is the syntax to indicate global variable?
    Thanks again,
    Vlad

  • Setting parameter in XML query

    hi all,
    how to use [Param.1] in XML query template?
    -murali

    ya u can dynamically pass the values to business logic transaction
    these are the steps
    1.add a xml query action block and in the links map the input to the param.1 and param.2 etc...
    2.now from the out going link of the query action block map it to the incoming of the generic sort filter
    3.in that give the conditions for filtring
    regards shyam

  • Pass URL parameter for zip code

    In this fake url I want to pass the zip code value of the confirmed BP into "zipcode"
    https://acme.com/locator.jsp?zip=zipcode
    from the other post I have read the parameter name would be "zipcode" and thru the transaction launcher I am able to assign parameter value =
    //selectedClmBpLinkRelationship/BpRelLinkBusinessPartner/BuilStandardAddressRel/POSTL_COD1
    The transaction launcher is opening the launcher but not passing the value into the field. The window opens but the field is not filled with the zip code.
    If I open a new ie browser and put in url
    https://acme.com/locator.jsp?zip=60001
    the url is reached and 60001 is filling the zip code field.
    Is there an easy way to debug and see if any value is getting passed?
    Am I conceptually on base for what I am trying to do?

    Hi Shwetha,
        That got me pointed in the right direction where we could get it to work.
    For others, these were some other points we used to get it to work.
    1. in the IMG where the url is defined don't add the ZIP parameter here so our IMG entry =  https://acme.com/locator.jsp?
    when the page launched correctly the parameters showed https://acme.com/locator.jsp?&zipcode=60001
    2. for zip code parameter value we used //currentCustomer/BuilStandardAddressRel/POSTL_COD1  >> this goes in the transaction launcher with parameter zipcode and is then visible in the IMG entry "copy/delete launch transactions"

  • Dinamic URL parameter for HTTPService

    Hi guys!
    Suppose I have this:
    <mx:HTTPService id="myXml" url="
    http://airan.bibliomed.com/tmp/report_example.php?foo=zero"
    useProxy="false"/>
    Is there any way to pass a dynamic URL value to the
    HTTPService tag, instead of having it static and unchangable like
    it is right now?
    Thanks for the help!

    I send it with an A.S. function, and just pass the function
    variables;
    private function search(s:String,sec:String):void{
    showAllCB.selected=false;
    myXml.url="
    http://admin.apts247.com/files/common/xml/aptsData/test.php?id="+s+"&sec="+sec;
    myXml.send();
    Then in your mxml, call the function from a button or on a
    creationcomplete method,or whatever will trigger it.

  • Insert Text file based on URL Parameter

    Hello! I have been able to get data to load using PHP into my
    document. BUT - that is only data that is IN the URL. So, for
    example, the URL might be ...index.php?profile=123456789
    In that case I can make the customer ID appear in all the
    other URLs on the page.
    i.e. : <a href="page2.php?profile=<?php echo
    ("$profile"); ?>">Click Here</a>
    Today, I would like a section of code (probably in a text
    file) to load in the page based on a parameter in the URL.
    Something like a URL ...index.php?destination=Australia
    And then in the body would something like "load australia.txt
    file here".
    I know this is probably bigger than I am making it sound. But
    I don't know how to load a chunk of code inside another chunk of
    code.
    Any starting points would be much appreciated. Are there any
    built-in Dreamweaver CS3 features that do this?
    Jon

    The purpose is to enter an earnest money dollar amount (Real Estate Short Sale contracts), and based on the amount, a corresponding file with a copy of a check with the proper amount will be inserted into the file at page 16.  A button would be fine , but it needs to be on the earnest money deposit line (the look of the form may not be altered).  The earnest money amounts are $1,500, $2,000, $2,500, $3,000, $3,500, $4,000, $4,500 and $5,000.

  • Passing of userid as a parameter for report viewing in Flex portal

    Hi,
    We are using flex application and Business Objects reports are integrated with it. We had created one service id which is used to access reports from application. Also we want to implement Data Access in Business Object's Reports. and for the same we want to pass UserID as a parameter internally from Flex code to the reports. We cannot use @BOUserID as we are using single service id. We want to pass "UserID" as a parameter (which we can get from Flex application) and pass this to Report OR Universe which internally filter out the data accessible to the respective user. Kindly advise on the same.
    Thanks,
    Eswar

    I've resolved this issue by creating a prompt in universe and inserting the security table in the universe structure

Maybe you are looking for

  • Hotmail and video/audio (with imac built in camera) compatible messenger

    i am looking for a messenger compatible with the built in isight camera, audio and video, and it needs to work with a @hotmail.com account. it is just for at home personal use but i really like talking (verbally) with my friends while they can see me

  • NIO: Strange problem when using ByteBuffer with non-blocking SocketChannel

    Hi, I have a server that uses multiplexed, non-blocking I/O with java.nio. When a client connects, the server waits for the message: <system cmd="knock"/>, returns a message and disconnects the client. The clients are shortly serviced in less than a

  • Question about multiple recovery partitions

    Hello, My question is: what is the default partition for toshiba z930 ultrabooks. According to Windows 8 disk management, there are 6 partitions on my drive. From what I understand, the 6Gb is for hibernation (my computer's RAM is 6Gb), and the 101.3

  • Printing a JPanel (Under pressure)

    I am trying to print a JPanel on which i have displayed information using drawString(). This works grand as long as the inforation all fits on one page. The problem occurs when i have too much information to display and it doesn't fit on one page. I

  • Subscription not available 24 hours AFTER paying f...

    Used up the first 400 minute subscription to Philippines that will renew in a couple of weeks - so I purchased a second 400 minute subscription to the Philippines yesterday before the first would run out... now the first one is used up, I have a paid