Invoke remote Perl via HTTP

Hi all,
from my Java code I have to invoke a remote perl script calling a URL
http://host/perlScript.pl?parameters
and I need to :
1. Send the content of a XML file
2. Get an output parameter of this Perl script
Any hint?
Thanks!

Use java.net.URLConnection. There are tutorials here at Sun.com.

Similar Messages

  • How to invoke BPEL process via HTTP POST (or GET)

    Hi,
    I'd like to know how to invoke BPEL process via HTTP POST (or GET), is there anyway simple to do it?
    Thank you

    Look at my blog http://orasoa.blogspot.com search for plsql
    or use SoapUI.org
    or look in the Examples directory in the BPEL directory of the installation

  • Remote connection via http connection-URL access

    Hello all,
    I would like to connect to the customer Business object system from our solution manager. The customer has configured http connection and has opened the connection in marketplace and has maintained http connection-URL access. The URL has also been maintained.
    I have added the corresponding entry also in my hosts file. But i am not able to access the customer URL.
    Anyone please tell me how to do remote connection for the connection type "http connection - URL access".
    Thanks,
    Aishwarya.

    Hi Tim,
    I am getting "The page cant be displayed" error while trying the BO system's URL in my browser.
    Please tell me which of the below methods i can use:
    1. By directly connecting to the BO system URL from the browser (is it possible?)
    2. By using VPN connection
    3. By installing diagnostic agent in solution manager
    4. By following the steps in this link:
    Establishing a Connection Using a Destination (SM59) - Components of SAP Communication Technology - SAP Library
    Regards,
    Aishwarya.

  • Invoking scheduled/bursted reports via HTTP... documentation?

    Hi all - I am looking for documentation regarding the HTTP "API" for BI Publisher Scheduler. There is an HTTP interface for which I can find no documentation. For instance by POSTing a URL such as http://<site>:<port>/xmlpserver/servlet/scheduler?ujobname=DirectDeliveryReport.xdo&d_printerd_p_gname0=direct&show_conf_page=true&d_method0=d_printer0&job_locale=en_US&save_output=off
    ...you can "schedule" a job for immediate execution and output to a printer.
    This is the method of execution for Oracle SIM 13 and is vaguely described in the SIM 13 Implementation Guide but not apparently in the BIP docs. I am wondering:
    a) what is the API for this web interface? What are the parameters?
    b) can this interface be used for bursting reports? If so it would seem to be a much easier way to schedule burst reports when an external scheduling system is required. More straightforward, like a shell script for Oracle Reports, rather than having to write a Java app to call BIP twice, first to get the XML data, second to burst/deliver that data.

    Hi Tim -
    By 'run now' mode via HTTP, are you referring to a direct call to the XDO or a one-time run via the scheduler servlet? I am not looking to set up a repeating schedule via HTTP, simply to kick off a one-time job with an output destination of email or printer. I cannot find any documentation for the one-time scheduled execution through the scheduler via HTTP. I have searched all the 10.1.3.3.3 docs, the blog, and the message boards for some of those parameters being defined in the SIM URL and there's no mention of them.
    SIM may use some internal logic to construct the URL, but by looking at the SIM, Apache, and BIP log I can see what it's doing. It's a series of GETs and POSTs via HTTP. Using this same logic, I have constructed some PL/SQL (http_utl package) to call BIP in the same fashion from a trigger and it works fine. The HTTP interface that SIM is using certainly seems to be fully-fledged; it seems to have parameters that would allow you to define the output format and destination. I just want to know what they are =)
    All I'm trying to do is automate some of the SIM printing by making it trigger-based rather than GUI-based. If the client wants to, say, autoemail instead of autoprint, I would have no idea how to change the URL params to do this. Secondly, if such a URL could specify that bursting, per the XDO, take place, we can use this HTTP method to invoke BIP from an external scheduler which will be easier for us than using web services.
    Thanks in advance,
    -eric

  • OSB call to remote Web Service via https proxy and https CONNECT problem

    Hi
    I have a service that calls a web service on another server as a web service. This call is via https and the certificate validation raises no errors.
    I now want this call to go via a squid httpd proxy on port 3128 on some machine. So I would like to use HTTP CONNECT (RFC 2817) proxying,. But when I set up this as a proxy, I am getting "Certificate chain" error messages. The certifcate chains is no different now from when I called without the http proxy, so what am I doing wrong? Does OSB support HTTP CONNECT?
    -Johan

    The exeption we are getting is BEA-380000
    General runtime error: [Security:090477]Certificate chain received from XXX - 123.123.123.123 --> test.salesforce.com was not trusted causing SSL handshake failure.
    This is of course not relevant if the callout were using CONNECT. In the CONNECT scenario, OSB would not care about XXX's certificate.

  • Authorization Error  While  Invoking BPEL Process Via RMI

    Hi All,
    I have been trying to invoke BPEL Process via RMI client.
    I use the following piece of code for BPEL Process Invocation...
    public class RMIClient {
    public RMIClient() {
    public static void main(String[] args){
    Hashtable jndi = new Hashtable ();
    jndi.put (Context.PROVIDER_URL, "opmn:ormi://host:6010:oc4j_soa/orabpel");
    jndi.put (Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    jndi.put (Context.SECURITY_PRINCIPAL,"oc4jadmin"); // username of Bpel Manager
    jndi.put (Context.SECURITY_CREDENTIALS,"welcome1"); //password of BPEL Manager
    Locator locator=null;
    try {
    locator = new Locator("default",jndi);
    } catch (ServerException e) {
    e.printStackTrace();
    IDeliveryService deliveryService =
    (IDeliveryService)locator.lookupService
    (IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to oracle bpel process
    NormalizedMessage nm = new NormalizedMessage( );
    String xml = "<ns1:MyFirstBPELProjectProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/MyFirstBPELProject\">\n" +
    " <ns1:input></ns1:input>\n" +
    " </ns1:MyFirstBPELProjectProcessRequest>";
    nm.addPart("payload", xml );
    NormalizedMessage res=null;
    try {
    res = deliveryService.request("MyFirstBPELProject", "process", nm);
    } catch (ServerException e) {
    e.printStackTrace();
    } catch (RemoteException e) {
    e.printStackTrace();
    Map payload = res.getPayload();
    When I try to connect to my locally deployed BPEL process Manager and Invoke the same process (MyFirstBPELProjectProcess ) it works fine and creates an Instance on BPEL Process Manager Console.
    When I tried Invoking the same BPEL process (MyFirstBPELProjectProcess ) deployed on a Remote machine ,it doesnt create an Instance.
    I believe my connections settings are all correct ,since it doesnt give me an connection issue on my standalone client.
    I tried looking at the following file default_group~oc4j_soa~default_group~1.log available opmn folder under SOA Suite OAS and there
    are no errors.
    Could some body point the log files that I need to look at.
    I am sort of clueless...
    Regards
    Harish

    CAn you post the error. HAve you made sure that the remote machine has connection on the port 6010. You can test this with the folloing command from the remote machine
    telnet host 6010
    obviously replace host with the fully qualified host name of the SOA machine.
    cheers
    James

  • Invoking  Remote Function Module.

    Hi
    I am invoking a remote function module from a web dynpro application(External Appln ).
    The FM contains the following code snippet
    first it inserts the parameters passed into a table
    and then the code is
    SUBMIT <report name > with parameter passing.
    when i comment out the Submit statement and invoke the function module the parameters get populated in the table..but when i enable the SUBMIT statement the same set of parameters dont even get populated in the table. and i get the following exception in the logs of SAP J2ee appln server .
    WDDynamicRFCExecuteException:      Screen output without connection to user.                           , error key: RFC_ERROR_SYSTEM_FAILURE
    i am not able to find a solution to this problem .
    Please help.
    regards
    Nilesh Taunk.

    HI
    GOOD
    GO THROUGH THIS LINKS,THEY MIGHT HELP YOU TO GIVE YOU SOME MORE IDEA.
    Re: RFC Error While Invoking A Remote Function Module.
    RFC Error While Invoking A Remote Function Module.
    http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5303c390-0201-0010-e0b2-bfae018377f0
    THANKS
    MRUTYUN

  • Update-Help error when console application is run in remote machine via PS remoting

    Hello,
    When I execute a particular console application in a remote machine via PS remoting, I get an error related to update-help. When I execute it directly on the remote machine, it works...
    My code:
    $credential = Get-Credential -Credential "DomainName\AccountName"
    $session = New-PSSession -ComputerName "MachineName" -Authentication Credssp -Credential $credential;
    Invoke-Command -session $session -ScriptBlock {
    try{
    cd <network share location>
    .\theConsoleApp.exe | Out-File C:\console-output.txt
    $error | Out-File C:\console-error-output.txt
    $exitCode
    } catch {
    throw $error
    Error seen in the console:
    NetNat, PcsvDevice, PSDesiredStateConfiguration, SoftwareInventoryLogging, StartScreen, TLS, WindowsSearch' with UI culture(s) {en-US} : Unable to retrieve the HelpInfo XML file for
    UI culture en-US. Make sure the HelpInfoUri property in the module manifest is valid or check your network connection and then try the command again.
    $error variable from above:
    Errored out (exit code 1603) with error message: ErrorId 10010: Xpatch threw an unexpected exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    I’ve tried
    two different user accounts
    multiple file share locations
    different OSs
    different target servers
    but have not determined the cause of the error.
    I would appreciate any help on this.
    -Rohan.

    Clearly the remote EXE cannot run in that context.  YOU should not run that program remotely.
    I suspect there is also information you are not giving to us.
    ¯\_(ツ)_/¯

  • How does one set up remote access via the internet to access files stored on the Time Capsule using airport utility 6.1

    I was just wondering if anyone can provide me with instructions please on how to set up remote access via the internet to the time capsule when away from home?
    I am running OS X Mountain Lion operating system and have Airport Utility 6.1.
    Many thanks to you all for your help.

    I think the instructions should be all in BTMM with iCloud.
    Instructions are all there.
    http://support.apple.com/kb/ht3486

  • SCCM 2012: remotely connect via powershelll: no psdrive

    Hi,
    I'd like to connect via powershell to a remote sccm-server.
    What I did:
    Run powershell x86
    enter-PSSession -ComputerName sccm2012 -ConfigurationName Microsoft.PowerShell32
    Set execution policy to unrestricted
    Import-Module ‘c:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1’
    Get-psdrive to see connections (in order to change to sitecode via cd  sitecode)
    but the site does not appear (connected remotely also via sccm 2012 console and launched "connect via powershell").
    Please advise.
    J.
    Jan Hoedt

    You need some reg keys for this to work. Those reg keys are normally created by the console when you start it.
    $CMSiteCode = "P01" #Your site code
    $CMSiteServerFQDN = "sccm2012.domain.tld" #FQDN to your site server
    New-Item -Path HKCU:\Software\Microsoft\ConfigMgr10\AdminUI\MRU\1 -Force
    New-ItemProperty -Path HKCU:\Software\Microsoft\ConfigMgr10\AdminUI\MRU\1 -Name DomainName -Value "" -PropertyType String -Force
    New-ItemProperty -Path HKCU:\Software\Microsoft\ConfigMgr10\AdminUI\MRU\1 -Name ServerName -Value $CMSiteServerFQDN -PropertyType String -Force
    New-ItemProperty -Path HKCU:\Software\Microsoft\ConfigMgr10\AdminUI\MRU\1 -Name SiteCode -Value $CMSiteCode -PropertyType String -Force
    New-ItemProperty -Path HKCU:\Software\Microsoft\ConfigMgr10\AdminUI\MRU\1 -Name SiteName -Value "Primary Site $($CMSiteCode)" -PropertyType String -Force
    Use the script above before you import the CM-PoSh-Module, I've used it for some of my customers.
    Tim Nilimaa | Blog: http://infoworks.tv | Twitter: @timnilimaa

  • How to Invoke Oracle Configurator via URL Outside the APPS Firewall

    Hi Gurus,
    We would like to invoke Oracle Configurator via URL same as Oracle iStore. Please let me know the process/steps to meet the requirement.
    Thanks in Advance,
    Venky.

    There is no restriction that Oracle Configurator may only be executed from within an Oracle hosting application. Configurator may be invoked from any application that has the ability to call Configurator's UI servlet. As an example, Astec (now part of Emerson Network Power) has had a Configurator application they call their "Power Wizard" on their public website for nearly eight years (http://www.powerconversion.com/powerwizard/).
    Venky, I would recommend you search My Oracle Support for articles containing 'configurator firewall' or 'configurator ssl', and then filter the results to just EBS articles. If what you find there is not helpful, opening a Support Request to get information more tailored to your particular scenario may be advisable.
    Eogan

  • AccessControl Exception when invoking remote ejb from portlet class

    Hi,
    From Portlet class, I am invoking Remote EJB which is deployed in weblogic application server.
    After EJB call it not requst Dispathcer not allowed to include the request ..
    Exception as follows ..
    java.security.AccessControlException: access denied (java.security.SecurityPermission getHttpRequestBase)
    X      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
    X      at java.security.AccessController.checkPermission(AccessController.java:427)
    X      at org.apache.catalina.connector.HttpRequestFacade.getHttpRequestBase(HttpRequestFacade.java:257)
    X      at org.apache.catalina.core.ApplicationDispatcher.getRequestBase(ApplicationDispatcher.java:1115)
    X      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:759)
    X      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:628)
    X      at org.apache.catalina.core.ApplicationDispatcher.access$100(ApplicationDispatcher.java:123)
    X      at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:154)
    X      at java.security.AccessController.doPrivileged(Native Method)
    X      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:528)
    X      at com.sun.portal.portlet.impl.RequestDispatcherImpl.include(RequestDispatcherImpl.java:95)
    X      at com.gm.gc.sample.SamplePortlet.doView(Unknown Source)
    X      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
    X      at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    X      at com.sun.portal.portletappengine.PortletAppEngineServlet.service(PortletAppEngineServlet.java:271)
    X      at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    X      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:772)
    X      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:628)
    X      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:539)
    X      at com.sun.portal.container.portlet.impl.PortletContainer.invokePAE(PortletContainer.java:409)
    X      at com.sun.portal.container.portlet.impl.PortletContainer.getMarkup(PortletContainer.java:180)
    X      at com.sun.portal.providers.window.WindowProvider.getPortletContent(WindowProvider.java:386)
    X      at com.sun.portal.providers.window.WindowProvider.getContentInternal(WindowProvider.java:239)
    X      at com.sun.portal.providers.window.WindowProvider.getContent(WindowProvider.java:204)
    X      at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:160)
    Source Code
    ===========
    SamplePortlet Class
    protected void doView(RenderRequest request, RenderResponse response)
                   throws PortletException, IOException {
              PortletRequestDispatcher prDispatcher = null;
              String helloString=null;
              SamplePortletHandler spHandler=null;
              response.setContentType(request.getResponseContentType());
              try {
                   spHandler=new SamplePortletHandler();               
                   prDispatcher = pContext.getRequestDispatcher("/jsp/SampleView.jsp");                         
                   helloString=spHandler.getHelloString();
                   prDispatcher.include(request, response);
              } catch (Exception e) {
                   e.printStackTrace();
                   request.setAttribute("ERROR_MSG", e.getMessage());
                   prDispatcher = pContext.getRequestDispatcher("/jsp/Error.jsp");
                   prDispatcher.include(request, response);
    Handler Class
    is there any solution?
    Thanks in Advance ...

    Hi,
    I didn't configure the JNDI stuff in WLS per se. I created a simple session bean and the meta data in the jar of this determined the JNDI setup.
    Once this is deployed on either WLS it can then be seen in Weblogic Console by clicking on View JNDI Tree. The full JNDI name is present and correct on both WLS to which it is deployed.
    Does that answer your questions or are you asking how I configured the SOA Suite composite? In which case I selected the EJB in the Partner Link swimlane. Viewed the properties and added
    java.naming.provider.url
    t3://myremotehost:7001

  • Loading Classes with JarClassLoader via https

    I Tried the Examples under
    http://developer.java.sun.com/developer/Books/JAR/api/jarclassloader.html
    With this example you are able to load a class from an remote jar-file
    via an HTTP Server e.g. Netscape Enterprise Server down to your PC
    with the Command: java JarRunner http://xxx:<port#>/<mypath>/<myjar>.jar
    Does anybody know, how to load the class from the remote jar-file via
    https ? java JarRunner https://xxx:<port#>/<mypath>/<myjar>.jar ?

    Load the Java Secure Socket Extensions (http://java.sun.com/products/jsse/). This will provide a handler for HTTPS URL's. Obviously not a great option for internet applets...
    Chuck

  • Using ADFS authentication to perform SSO via HTTP GET request

    Hi,
    Can i authenticate users (those users are clients, at home) to a web application using ADFS without SAML tokens?
    The situation is that i want the clients to perform SSO to the website via a link they receive in their mailboxes. 
    I thought about a solution that combines JWT in a URL link that each user will get to his private mail. this link will contain the users' claim (such as ID Num, given from AD DS Server dedicated especially for them).
    Thus, the user will receive an email with a link that already contains a short period of time JWT to perform SSO to the webapp.
    Is it possible ? anybody heard about a similar solution ?

    Sandra
    Thanks for your message
    Here is the my requirment
    The basic flow of a Where 2 Get It REST API call is:
    1) create the required XML structure,
    2) URI encode it,
    3) make a HTTP GET request,
    4) then parse the return XML document.
    Currently i have some data in ABAP structure with 5 fields, i need to create XML from the those 5 fields,and needs to be URI
    encode it, and then needs to make a HTTP get request to connect Where to Get It REST API, finally it will return XML document via HTTP Get request , and then needs to convert the return XML to  ABAP structure for further processing .the above 4 points will be implemented in my report.
    Any  body could help on this

  • Try expose svn via http, but Location directive does not work.

    Hello everyone,
    I used svn exposed via http in OSX 10.6 and 10.7 using collabnet.
    Now I take OSX server 10.8 and installed svn inside XCode.
    SVN is correctly installed, apache respond to default site.
    I copied the modules dav_svn_module and authz_svn_module compiled on my machine with same svn version of XCode [version 1.6.18 (r1303927)] .
    I created a file into /etc/apache2/other called svn.conf that contain follow code:
    LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so
    LoadModule authz_svn_module libexec/apache2/mod_authz_svn.so
    <Location /repo>
      DAV svn
      SVNPath '/Volumes/VMware HD/svn/repository'
    </Location>
    Checking if module are loaded with sudo apachectl -t -D DUMP_MODULES i obtain:
    Loaded Modules:
    dav_svn_module (shared)
    authz_svn_module (shared)
    Syntax OK
    So file svn.conf is loaded and the module too.
    When I try to check via browser with http://localhost/repo I obtain in /var/log/apache2/error_log the following error:
    [Wed Feb 13 12:41:12 2013] [error] [client 192.168.1.114] File does not exist: /Library/Server/Web/Data/Sites/Default/repo
    Is Location directive failing?!
    How can I expose the right repository location instead of default site?

    Oeren,
    I stumbled across this little tidbit buried in the BI Publisher forum: Dynamic Images in rtf
    Glad you are up and running!
    Joshua

Maybe you are looking for

  • "Adobe Muse Stopped Working"

    I've been using Muse for about a month, with no problems. Today, I have repeatedly crashed with the error "Adobe Muse Stopped Working". This happens 10 minutes or so after I open Muse. It happens whether or not I have another app open. I tried closin

  • How to attach a single file in e-mail (Yosemite)?

    When i am writing a new mail and i try to attach a single file that i have saved a minute ago from certain folder i cannot do that. When i click on the folder to open it and select the specific file to attach, the mail does not open the folder but au

  • X121e and Windows XP: only PIO mode (not DMA)

    I installed Windows XP on a thinkpad X121e. After actualizing all drivers from Lenovo I found out why the whole system was very slow: The internal hard disk is running only in PIO mode and reaches only 3 MB/s which is far to slow to work. I did not h

  • I would like to see the time in a waveform graph (real-time​)

    i need the x-axis of the waveform graph to show real time (from the computer clock). I have made a program with all the example. He read and log data when the chosen time has elapsed. the program work's well...but i dont't know why the x-axis blink e

  • What is the latest version of garage band that a powerpc with osx10.5.8 will run?

    Hi i need to run garageband on a powerpc imac g5 from like 2007 i think(not sure about the year) it has OSX 10.5.8 and a 2.1g processor thing. I am not too good with computer details and whatnot. All i need to know is what is the latest version of ga