How to run a web service which is using https server

hi all.
i am tring to send an xml tag to an https server. but get this exception "http_communication_failure"
in the method "http_client->receive" some say that i need an ssl sertificate but i dont know how to get .
here is my code any suggestions will be very helpful.
REPORT  ZEM_SOAPTEST1.
DATA: rlength TYPE i,
        txlen TYPE string.
DATA: http_client TYPE REF TO if_http_client.
DATA: wf_string TYPE string .
DATA:zstring TYPE string.
data : tab like zstring occurs 10 with header line.
CONCATENATE
' 0.
ENDIF.

Either Tomcat is down (check to see if you can access it with a browser) or wsdeploy is not authenticating properly in which case I think you can set user and password properties in build.properties.
An alternative to wsdeploy is to drop the .war file in webapps and restart Tomcat for autmatic deployment.

Similar Messages

  • How to provide a (web)service which delivers a process context?

    Hi folks,
    i have designed a process with Process Composer so far.
    Several tasks read and write data into the process context.
    What i want to do now is providing a (web)service which gets an process instance number as input and delivers the data from the corresponding process context as output.
    Maybe someone can explain me the steps that are needed to implement that?
    TIA
    Michael

    Hi Michael,
    In case you want to have an 'instant view' on the process data context that might be an option.
    Nevertheless I would not recommend doing so / be careful if there is no other possibility. Maybe it makes sense to define specific check points where data could be synchronized. You would benefit of a more clean process model and a reduced number of outgoing web service calls which in fact would also speed up process execution.
    I am somehow curious what you are planning to achieve. Could you elaborate on that?
    Best regards,
    Martin

  • How to idtentify web services which are used in the web application?

    Hi All,
    We need to identify all the web services that a web application is using. We need them so that we can use test them. We are a group of independent testers. We have access to IIS server's on which the application is hosted. Is there any way we can identify
    them other than seeking out the DEV team to give out the list?
    Thanks in advance.
    Regards,
    Umesh

    Hello,
    You have posted your query in the Project / Project Server forum, is this related to Microsoft's Project / Project Server? If not, you are better off posting this in one of the development forums. If you are unsure where to post, try here first:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=whatforum
    In the mean time, you could look at using something like Fiddler:
    http://www.telerik.com/fiddler
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Force web service servlet to use http 1.1

    is there anyway to force a web service deployed to oc4j standalone 9.0.3 to service many calls over one http connection? there doesn't seem to be any documentation to that end. Thanks, Ki

    But, I want to know which Framework will provide
    better performance?
    better than what?
    Also I want to develope the web service as a standard
    one andeach has it's own quircks and implementation details. Each should be able to generate and accept the same SOAP messages though if you implement them properly.
    It should be able to provide bulk data exchange.
    That will depend in large part on your hardware.
    Please suggest a web service framework
    (Java-based) which will give better performance.again, better than what?
    Better than messenger pidgeons?
    Better than swallows (European or African)?
    And if so, how heavy would the message capsule be? 2 swallows may be able to carry a coconut together, holding it on a piece of string.

  • Calling Web Service from EJB using HTTP Client

    Hi,
    Scenario:
    I need to Call a Web Service from an EJB Application.I used HttpClient for calling the Web Service in the EJB Application. When i call the execute method of the HttpCLient it throws an exception
    The element type "META" must be terminated by the matching end-tag "</META>"
    The input XML does not have a node called META.
    When i call the Web Service using Http Client form an Java Application it is working fine.
    Kindly Suggest me the changes/steps that needs to be done
    Regards,
    S.V.Satish Kumar

    Hi Manish,
    SOAP adapter does pass the message to XI (this message contains SOAP envelope although XI expects to get message without it), and during the mapping step i get "Runtime Exception in Message-Mapping transformatio~".
    I suppose it's because i created proxy manually. I did so because when i imported WSDL, and tried to generate proxy in CRM, i got an error message that said that proxy couldn't be generated because external definitions are only allowed in XI 3. But my XI version is 3.0! And when I generate the same proxy in my R/3 system that is installed on WAS 640, it works.
    What can I do?
    Cheers,
    Anya.

  • Using Web Services on the Crystal Report Server XI to return reports

    <p>Hi,</p><p>I&#39;m trying to setup for the first time a Crystal Reports Server XI R2 and put a couple of reports onto the server.  This is so I can access the reports on the crystal reports server using using the crystal web services and finally display the reports in an ASP.NET web application.</p><p>So far I have installed the server, created a couple of reports, put them on the server, and tested to see that I can access the reports using the Central Management Console.  This all works fine and the reports are returned.</p><p> Ok, now for the bit that&#39;s not working.</p><p> I&#39;ve got a C# ASP.NET web application, and I&#39;ve followed a couple of <a href="http://support.businessobjects.com/documentation/product_guides/cr_net/vs_2005/html/crtsktutorialsotherdynamicpulldownwebservicehelpermethod.htm" target="_blank" title="Adding a Helper Method to Access Crystal Reports Web Services">tutorials</a> to give me an idea of what I should be doing to use the Web Services that are provided:  </p><ul><li>ServerFileReportManager.asmx</li><li>ServerFileReportService.asmx </li></ul><p>However, it appears that when I list the child objects on the crystal server:</p><blockquote><font size="2" color="#008080"><font size="1"><em><font size="2"><p><font size="1">serverFileReport = <font color="#0000ff">new</font> <font color="#008080">ServerFileReport</font>();<br /></font><font size="1">serverFileReport.ReportPath = <font color="#800000">""</font>;<br /></font><font size="1"><br />reportManagerRequest = <font color="#0000ff">new</font> <font color="#008080">ReportManagerRequest</font>();<br /></font><font size="1">reportManagerRequest.ExtraData = serverFileReport.GetExtraData();<br /></font><font size="1">reportManagerRequest.ParentUri = serverFileReport.ToUri();<br /></font><font size="2" color="#008080"><font size="1"><em><br />ReportManagerResponse</em></font></font><font size="1"><em> reportManagerResponse = <font color="#0000ff">new</font> <font color="#008080">ReportManagerResponse</font>();<br />reportManagerResponse = serverFileReportManagerProxy.ListChildObjects(reportManagerRequest);</em></font></p></font></em></font></font></blockquote><p><font size="1"><font size="1">I always get a</font> <font size="2"><font size="1"><em>reportManagerResponse.ReportUris</em></font></font></font><font size="1"> with a count of 0.  Now the thing is I know that I have a couple of reports on the Crystal Server, but for some reason they&#39;re not been picked up.   I must be missing something.</font></p><p><font size="1"><font size="1">Does anyone have any ideas??? Please</font>!</font></p><p>Many thanks in advance,<br />Chris</p><p>Current Set-up:</p><ul><li>Crystal Reports Server XI R2 (11.5)</li><li>Virtual Directory of the web services: crystalreportviewers115 </li><ul><li>(Physical Path - C:\Program Files\Business Objects\common\3.5\crystalreportviewers115)</li></ul><li>Development Environment: Visual Studio 2005</li></ul>

    <p>I looks like your mixing technologies here.   You are using <strong>Crystal Report Server</strong> and the <strong>Crystal Report Web Services</strong> that come with Visual Studio.</p><p>I know that this might seem like they are the same product, and the naming does seem confusing but I&#39;ll try and make it easy for you to understand.</p><p><strong>Crystal Reports Server</strong> - This is a managed reporting solution which allows you to distribute your reports via the web.  It has features like scheduling and built in security.</p><p>It appears that you have a handle on what Crytal Report Server is from what you have been able to accomplish those far.  You have created your report and published it to Crystal Report Server and viewed it via the Central Management Console.  Crystal Reports Server has two methods for accessing the reports programatically.</p><p>1. The Enterprise SDK</p><p>2. The Web Services SDK</p><p><a href="/node/353">Check out this white paper that compares these two SDKs </a></p><p><a href="/node/256">This paper describes the Web Services SDK.</a></p><p>In the above paper there is a getting started section which points you to the Developer Library which shows you how to install the web services on your Crytal Reports Server machine.</p><p>Crystal Reports Server does not have the Business Object web services installed by default so I would suggest following the directions in the <a href="http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm">Developer Library.</a></p><p>The directions wont talk about Crystal Reports Server but these are the directions to get the Web Services installed. </p><p>There is another web services technology which you are writing code for which is called <strong>Crystal Report Web Services.  </strong>This technology comes with Visual Studio 2003.  It provides un-managed reports via webservices.  Un-managed means these reports are not published to Crystal Reports Server.</p><p>So basically your problem is that your code is for <strong>Crystal Report Web Services </strong>but you are trying to view reports published to <strong>Crystal Reports Server.</strong>  To take advantage of scheduling and security and web service access I would suggest using Crystal Reports Server and install the Business Objects Platform webservices to access the reports. </p><p>I hope that&#39;s clear.<br /></p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • How to get up and run a Web Services/RESTful functionality?

    Hello there,
    The DBAs just completed the upgrade for the APEX 4.2 in our organization. I was asked to work with APEX and build some application. This morning I was asked by my boss to take a look at getting the Web Services/RESTful API Functionality up and running. I am new to this environment. When I check the RESTful Services I found out the are no RESTful Services. What do I do to get this running? as a Developer, I do not have access to any schema or web services. How do I go about making this work? can any one point me to some blog or site that will help me make this work?

    Hello,
    You can consume Web-Services from APEX, but you can't produce. So first ask your boss which web-service you want to implement.
    There are 2 types of web services in general, SOAP based and RESTful. APEX provides simplified API's to invoke both types web-service.
    Identify web-service you want to TEST
    Create ACL for APEX_XXXX schema to access web-service
    Create ACL for Proxy Server as-well, if required
    If web-service is SSL-enabled then configure wallet. See 17.7 Implementing Web Services
    Use APEX API's to invoke Web-Services. See APEX_WEB_SERVICE
    You can process XML response from Web-Service using Using XQuery with Oracle XML&amp;nbsp;DB
    If Web-Service returns JSON data either you can use PL/JSON | Free software downloads at SourceForge.net to process response, or you can process response at client side using jQuery
    Regards,
    Hari

  • Which JAR's are required to run a Web Service Proxy?

    Hi,
    I successfully generated a Web Service Proxy, which runs when I start it in JDeveloper. However when I generate a JAR with all classe files, and try to start the main class of this JAR I get the following error:
    java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceFactory
    Which additional JAR's do I need to run the Web Service Proxy outside JDeveloper.
    Note, that I have JRE 1.4 and not 5!
    Thanks for hints Thomas

    Hi,
    the class is part of Java EE 5 platform. So you need to run it n that context
    Frank

  • How to consume a web service provided by third party system from SAP system

    Hi Friends,
    Could any of you provide me a clear picture on how to consume a web service from SAP system and is provided by a third party system?
    Do we get an URL to create a client proxy for consuming the web service?
    Thanx in advance,
    Ram

    Hi Ram,
    of course you cannot supply the WSDL URL. Inside the WSDL (just view it in your browser) you find (usually but not necessary) towards the end something like
    <soap:address location="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php"/>
    which is the actual adress of the service.
    An example service can be found here:
    <a href="http://www.weather.gov/xml/">National Digital Forecast Database</a>
    containing the WSDL URL at
    <a href="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">this address</a>.
    You might also want to browse for the amazon webservices which allow you to embed queries against amazon into your application.
    have fun,
    anton

  • How to access a web service from a XLet

    Hello,
    I am new in software development to ITV and I dint find too many usefull information teaching how to access a web service from a XLet running in a STB. Are there anybody who can give me some help, maybe sample or tutorial?
    Gratefull
    David

    hi,
    you can "borrow" the source code from [Yambo a free soft open source presentation engine (AKA XML microbrowser Xlet )|http://www.cineca.tv/labs/mhplab/index-en.html] both local and on a http remote connection.
    hope it helps..
    bye
    andrea

  • How to access UCM Web Service in Oracle.

    Hi All,
    I am trying to call UCM Web Service (CheckIn.wsdl) using oracle.
    But these web services are secured and expecting username/password.
    Any one have any idea to pass username/password in oracle function.
    My Code :-
    CREATE OR REPLACE FUNCTION checkin (dDocName IN VARCHAR2,dDocTitle IN VARCHAR2,dDocType IN VARCHAR2,
    dDocAuthor IN VARCHAR2,dSecurityGroup IN VARCHAR2,dDocAccount IN VARCHAR2,
    primaryFile IN VARCHAR2)                              
    return number
    AS
    l_service SYS.UTL_DBWS.service;
    l_call SYS.UTL_DBWS.call;
    newurl VARCHAR2(32767);
    l_wsdl_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_service_qname SYS.UTL_DBWS.qname;
    l_port_qname SYS.UTL_DBWS.qname;
    l_operation_qname SYS.UTL_DBWS.qname;
    l_xmltype_in SYS.XMLTYPE;
    l_xmltype_out SYS.XMLTYPE;
    BEGIN
    l_wsdl_url := 'http://localhost:16200/cs/groups/secure/wsdl/custom/CheckIn?wsdl';
    l_namespace := 'http://www.stellent.com/CheckIn/';
    l_service_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'CheckIn');
    l_port_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'CheckInSoap');
    l_operation_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'CheckInUniversal');
    l_service := SYS.UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
    service_name => l_service_qname);
    l_call := SYS.UTL_DBWS.create_call (
    service_handle => l_service,
    port_name => l_port_qname,
    operation_name => l_operation_qname);
    l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
    <CheckInUniversal xmlns="' || l_namespace || '">
    <VARCHAR2>' || dDocName || '</VARCHAR2>
    <VARCHAR2>' || dDocTitle || '</VARCHAR2>
    <VARCHAR2>' || dDocType || '</VARCHAR2>
    <VARCHAR2>' || dDocAuthor || '</VARCHAR2>
    <VARCHAR2>' || dSecurityGroup || '</VARCHAR2>
    <VARCHAR2>' || dDocAccount || '</VARCHAR2>
    <VARCHAR2>' || primaryFile || '</VARCHAR2>
    </CheckInUniversal>');
    l_xmltype_out := SYS.UTL_DBWS.invoke(call_Handle => l_call,
    request => l_xmltype_in);
    SYS.UTL_DBWS.release_call (call_handle => l_call);
    SYS.UTL_DBWS.release_service (service_handle => l_service);
    END;
    It's compiling successfully.
    When ever i am trying to run using
    SELECT checkin ('WEBSERVICE009','WEBSERVICE009', 'Document','weblogic','Private','IT/EBA/Distributor_testuser','D:/ucmfiles/test_WebService_11.txt') FROM dual;
    It's expecting username/password...
    Any body have any idea.

    If you are using apex, you have access to the wwv_flow_web_services package that has all the procs you need to made this work. If not, you can use flex_ws_api, which, although a bit out of date, should still work. This can be found at: http://jastraub.blogspot.com/2009/11/flexwsapi-no-on-samplecodeoraclecom.html
    Hopefully this will get you the start you need. Don't forget soapUI. This has proved to be invaluable in my development just to prove something works. It becomes a very easy way when I keep hearing, "UCM doesn't work....".
    Check-In
    -- Modify and create select that will get filename and content from a table.
    -- set serverouput on
    -- make sure flex_ws_api package is installed in same schema that you run this.
    declare
    l_filename varchar2(100);
    l_login varchar2(20);
    l_ddocname varchar2(20);
    l_BLOB BLOB;
    l_CLOB CLOB;
    l_envelope CLOB;
    l_response_msg varchar2(32767);
    begin
      select name, content, ddocname
      into l_filename, l_BLOB, l_ddocname
      from pdfs
      where id = 1;
      l_login := 'kalee';
      l_CLOB := flex_ws_api.blob2clobbase64(l_BLOB);
      l_envelope := '<?xml version=''''1.0'''' encoding=''''UTF-8''''?>';
      l_envelope := l_envelope || '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:chec="http://www.stellent.com/CheckIn/">';
      l_envelope := l_envelope || '<soapenv:Header/>';
      l_envelope := l_envelope || '  <soapenv:Body>';
      l_envelope := l_envelope || '     <chec:CheckInUniversal>';
      if length(ltrim(rtrim(l_ddocname))) > 0 then
        l_envelope := l_envelope || '        <chec:dDocName>'||l_ddocname||'</chec:dDocName>';
      end if;
      l_envelope := l_envelope || '        <chec:dDocTitle>'||l_filename||'</chec:dDocTitle>';
      l_envelope := l_envelope || '        <chec:dDocType>WebContent</chec:dDocType>';
      l_envelope := l_envelope || '        <chec:dDocAuthor>'||l_login||'</chec:dDocAuthor>';
      l_envelope := l_envelope || '        <chec:dSecurityGroup>Public</chec:dSecurityGroup>';
      l_envelope := l_envelope || '        <chec:dDocAccount>WebContent</chec:dDocAccount>';
      l_envelope := l_envelope || '        <chec:CustomDocMetaData>';
      l_envelope := l_envelope || '           <chec:property>';
      l_envelope := l_envelope || '              <chec:name>xDCSDProfileTrigger</chec:name>';
      l_envelope := l_envelope || '              <chec:value>WebContent</chec:value>';
      l_envelope := l_envelope || '           </chec:property>';
      l_envelope := l_envelope || '        </chec:CustomDocMetaData>';
      l_envelope := l_envelope || '        <chec:primaryFile>';
      l_envelope := l_envelope || '           <chec:fileName>'||l_filename||'</chec:fileName>';
      l_envelope := l_envelope || '           <chec:fileContent>'||l_CLOB||'</chec:fileContent>';
      l_envelope := l_envelope || '        </chec:primaryFile>';
      l_envelope := l_envelope || '     </chec:CheckInUniversal>';
      l_envelope := l_envelope || '  </soapenv:Body>';
      l_envelope := l_envelope || '</soapenv:Envelope>';
      l_xmltype := flex_ws_api.make_request(
        p_url               => 'https://ucmdev.dcsdk12.org/_dav/cs/idcplg',
        p_action            => 'http://www.stellent.com/Search/',
        p_envelope          => l_envelope,
        p_username          => 'admin',
        p_password          => 'password',
        p_wallet_path       => 'file:/u01/app/oracle/admin/SADD/wallet',
        p_wallet_pwd        => 'walletpassword'
      l_response_msg := flex_ws_api.parse_response(p_collection_name=>'STELLENT_CHECKIN',p_xpath=>'//idc:CheckInUniversalResponse/idc:CheckInUniversalResult/idc:StatusInfo/idc:statusMessage/text()',p_ns=>'xmlns:idc="http://www.stellent.com/CheckIn/"');
      dbms_output.put_line(l_response_msg);
    exception
      when others then
        dbms_output.put_line(l_response_msg);
        raise;
    end;
    /Search
    declare
      l_envelope CLOB;
      l_xmltype XMLTYPE;
      l_response varchar2(100);
      ecode NUMBER;
      emesg VARCHAR2(200);
      cursor searchresults_cur(p_xmltype xmltype) is
        SELECT
          extractvalue(column_value, '/idc:SearchResults/idc:dDocName','xmlns:idc="http://www.stellent.com/Search/"') DOCNAME,
          extractvalue(column_value, '/idc:SearchResults/idc:dDocTitle','xmlns:idc="http://www.stellent.com/Search/"') DOCTITLE
        FROM TABLE(XMLSequence(p_xmltype.extract('//idc:QuickSearchResponse/idc:QuickSearchResult/idc:SearchResults','xmlns:idc="http://www.stellent.com/Search/"')));
      searchresults_rec searchresults_cur%ROWTYPE;
    begin
      l_envelope := '<?xml version=''''1.0'''' encoding=''''UTF-8''''?>';
      l_envelope := l_envelope || '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://www.stellent.com/Search/">';
      l_envelope := l_envelope || ' <soapenv:Header/>';
      l_envelope := l_envelope || ' <soapenv:Body>';
      l_envelope := l_envelope || '  <sear:QuickSearch>';
      l_envelope := l_envelope || '   <sear:queryText>dDocAuthor &lt;matches&gt; `kalee`</sear:queryText>';
      l_envelope := l_envelope || '  </sear:QuickSearch>';
      l_envelope := l_envelope || ' </soapenv:Body>';
      l_envelope := l_envelope || '</soapenv:Envelope>';
      -- dbms_output.put_line('(soapenv)='||l_envelope);
      l_xmltype := flex_ws_api.make_request(
        p_url               => 'https://ucm.yourdomain/_dav/cs/idcplg',
        p_action            => 'http://www.stellent.com/Search/',
        p_envelope          => l_envelope,
        p_username          => 'admin',
        p_password          => 'password',
        p_wallet_path       => 'file:/u01/app/oracle/admin/DATABASESID/wallet',
        p_wallet_pwd        => 'walletpassword'
      -- dbms_output.put_line('(xml)='||substr(l_xmltype.GetClobVal(),1,2000));
      open searchresults_cur(l_xmltype);
      loop
        fetch searchresults_cur into searchresults_rec;
        exit when searchresults_cur%NOTFOUND;
        dbms_output.put_line('(dDocName)='||searchresults_rec.DOCNAME||' (dDocTitle)='||searchresults_rec.DOCTITLE); 
      end loop;
      if searchresults_cur%ROWCOUNT = 0 then
        dbms_output.put_line('No records found!'); 
      end if;
      close searchresults_cur;
    exception
      when others then
        ecode := SQLCODE;
        emesg := SQLERRM;
        --insert into log_table (code,message,info) values (0,TO_CHAR(ecode) || '-' || emesg,'.CheckinDocument emesg');
        --commit;
        raise;
    end;
    /

  • How to call a web Service from Oracle Applications?

    Hi friends,
    I've posted this question on OA Framework forum , but may be it's more appropiated put it here. Sorry for do it again:
    It's about how to call a web service from a Form or a .sql (via Request) in Oracle Applications:
    Could you please explain here the detailed steps (with code example if it's possible) to invoke a webservice from Oracle Applications?.. how did yo do it...?
    I've read differents posts here and the 33097.1 metalink note (by the way, the first recommended link in this note is broken...), but there are lots of theorical concepts and no real examples to see how/from where invoke the WS
    I'll have to call one webservice (I suppose the customer will give me the interface implementation)...but I've never did it with Applications so that's why I ask you for all the detailed steps...
    I work with Forms 6i, Apps 11.5.10.2 and DB 9.2.0.7.
    Thanks a lot.
    Jose.

    Hello Jose,
    I did using java program to call BPEL web services in 11.5.10.
    I pasted below the metalink note for your reference (Note:250964.1)
    The idea is first write a java program to call the webservice (in my case it is calling an BPEL web service, so this may not help directly), test it.
    Then port the java program as specified in the note, so that you could call your web service through concurrent manager scheduler.
    Is this ok?
    Thanks
    Arun.
    ======================================================
    Checked for relevance on 25-Apr-2007
    Application Install - Version: 11.5.8 to 11.5.10
    Goal
    ====
    How to register and create a Java concurrent program for Oracle Applications
    Release 11i
    Solution
    ========
    1. Create your Java Concurrent Program (JCP) , using a text editor.
    /*===========================================================================+
    | Concurrent Processing Sample Code |
    | |
    | FILENAME |
    | Hello.java |
    | |
    | DESCRIPTION |
    | Sample Java concurrent program |
    | About the simplest possible program, just writes a message to the |
    | logfile and output file. |
    | |
    | HISTORY |
    | $Log$ |
    | |
    +===========================================================================*/
    package oracle.apps.fnd.cp.sample;
    import oracle.apps.fnd.cp.request.*;
    public class Hello implements JavaConcurrentProgram {
    public static final String RCS_ID = "$Header$";
    public void runProgram(CpContext ctx) {
    ctx.getLogFile().writeln("-- Hello World! --", 0);
    ctx.getOutFile().writeln("-- Hello World! --");
    ctx.getReqCompletion().setCompletion(ReqCompletion.NORMAL, "");
    =======================================
    End Sample
    =======================================
    2. Create a sample directory under $JAVA_TOP:
    $ mkdir $JAVA_TOPoracle/apps/fnd/cp/sample
    3. Copy Hello.java into $JAVA_TOP/oracle/apps/fnd/cp/sample:
    $ cp $HOME/Hello.java $JAVA_TOP/oracle/apps/fnd/cp/sample
    4. Compile your java program:
    javac $JAVA_TOP/oracle/apps/fnd/cp/sample/Hello.java
    5. Test at the command line with following syntax:
    jre -Ddbcfile=$FND_TOP/secure/your_dbc_file.dbc \
    -Drequest.outfile=./outfile \
    oracle.apps.fnd.cp.request.Run \
    oracle.apps.fnd.cp.sample.Hello
    6. Register your custom java concurrent program with Oracle Applications.
    a. Navigate: Concurrent > Program > Executable
    b. Enter details into the form
    Executable: JCPHELLO
    Shortname: JCPHELLO
    Application: Application Object Library
    Execution Method: Java Concurrent Program
    Execution File Name: Hello (Insert a name that does not contain space or period)
    Execution File Path: oracle.apps.fnd.cp.sample
    c. Save the details
    d. Navigate: Concurrent > Program > Define
    e. Enter details into the form
    Program Name: JCPHELLO
    Program Shortname: JCPHELLO
    Application: Application Object Library
    Executable: Choose JCPHELLO from LOV
    Executable Options :
    f. Save the details
    7. Add this new concurrent request to your responsibility request group.
    a. Navigate > Security > Responsiblity > Request
    b. Query System Administrator
    c. Add new row and choose TestJava
    d. Save the changes.
    8. Run your new Hello Java Concurrent Program
    Navigate: Request > Run
    References
    ~~~~~~~~~~~
    Oracle Applications Developers Manual for Release 11i A75545-01
    ====================================================

  • How to Authenticate the Web Service from my Java Client?

    Hi All,
    I am a newbie. I am working in Microsoft Technology. But due to a critical requirement, I am suppose to write a Java Web Service Client application. I some how managed to create the Client Application. The application works fine if the Authentication is turned off in the web service level itself. I am unable to or unaware of authentication in Java World. I have written a .NET Client application where I am able to set the Credentials but in Java world no property or method allows me to set it.
    Anybody knows how to solve this problem?
    My configuration is,
    JDK - JDK 1.5.0.16
    IDE - Netbeans 6.1
    Web Server - Tomcat 6.0
    SOAP - Native C++ SOAP
    How do I did?
    - Created a Java Web Service Client Application.
    - Added the Web Reference to the SOAP WSDL url.
    - Initialized the class object using the WSDL generated SOAP classes (Reference classes)
    My code look like,
    String result = "";
                try {
                    QName name = new QName("http://eaglesuite20/eaglesoap.wsdl", "eaglesoap");
                    eaglesuite20.eaglesoap.Eaglesoap service = new eaglesuite20.eaglesoap.Eaglesoap(new URL("http://phobos:1011/?wsdl"), name);
                    eaglesuite20.eaglesoap.EaglesoapPortType port = service.getEaglesoap();               
                    // TODO initialize WS operation arguments here
                    eagle.Request submitRequest = new eagle.Request();
                    submitRequest.setRequestType(eagle.RequestType.E_B_SCHEDULE_DEF);
                    submitRequest.setOperation(eagle.Operation.READ);
                    eagle.FilterDefinition filter = new eagle.FilterDefinition();
                    filter.setField(new JAXBElement<String>(new QName("urn:eagle", "Field"), String.class, "SHOW_SCHEDULED"));
                    filter.setValue(new JAXBElement<String>(new QName("urn:eagle", "Value"), String.class, "SHOW_SCHEDULED"));
                    filter.setOperator(eagle.EOperators.EQUAL);
                    eagle.FilterDefinitions filDefs = new eagle.FilterDefinitions();
                    filDefs.getFilterDefinition().add(filter);
                    submitRequest.setFilterDefinitions(new JAXBElement<eagle.FilterDefinitions>(new QName("urn:eagle", "FilterDefinitions"), eagle.FilterDefinitions.class, filDefs));
                    // TODO process result here
                    result = port.submitData(submitRequest);
                //out.println("Result = " + result);
                } catch (Exception ex) {
                    // TODO handle custom exceptions here
                    out.println(ex.getMessage());
                }Thanks in Advance.

    Hi
    Did you get your problem solved? Can you please help as I am getting null pointer exception when I invoke a call to web service which is secured/
    Please help!!!!!!!!! this is urgent.

  • How to develop web services in OSB using Eclipse OEPE

    Hello,
    We have some live web services developed in SOA ESB using JDeveloper.
    We are now forced to migrate to OSB because of the reason that sometime next year ESB will be de-supported by Oracle.
    I am looking for some good documentation which explains how to create web services in OSB using Eclipse. Please help.
    I am installed Web logic + OEPE + OSB in my local machine already. All I need is to know how to start development.
    Thanks,

    Hi,
    You can start with this:
    http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/tasks.htm
    Cheers,
    Vlad

  • How do i call web services from SAP ABAP

    Hello,
    Ian working with .net team. they are using sap .net Connector to connect SAP. But my job is In SAP side when Purchase Requisition is created, I have to call web services from ABAP and i have to pass the Purchase Requisition number to web service(.net Program). Please help me how to call web services from ABAP and how to pass value. Any one help me with example.
    Thanks
    RaviKumar

    Hi Ravi,
    If you can call EJB from ABAP and from EJB call Web service which you want to call. I am giving code to write in EJB business method processFunction.
    public void processFunction(Function function) {
       IRepository repository;
       repository = new Repository("TestRepository");
       JCO.MetaData fmeta = new JCO.MetaData("ZTEST_EJB");
       fmeta.addInfo("REQUTEXT", JCO.TYPE_CHAR, 255,   0,  0,  
       JCO.IMPORT_PARAMETER, null);
       fmeta.addInfo("ECHOTEXT", JCO.TYPE_CHAR, 255,   0,  0,
       JCO.EXPORT_PARAMETER, null);
       fmeta.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255,   0,  0,
       JCO.EXPORT_PARAMETER, null);
       repository.addFunctionInterfaceToCache(fmeta);
       JCO.ParameterList input  =
       function.getImportParameterList();
       JCO.ParameterList output =
       function.getExportParameterList();          
       JCO.ParameterList tables =
       function.getTableParameterList();
      if (function.getName().equals("ZTEST_EJB")) {
                        output.setValue(input.getCharArray("REQUTEXT"),"ECHOTEXT");
    output.setValue("This is a response " + table.getString("E_NAME") +" " + output.getName(1), "RESPTEXT");
      else if (function.getName().equals("STFC_STRUCTURE")) {
      JCO.Structure sin  = input.getStructure("IMPORTSTRUCT");
      JCO.Structure sout = (JCO.Structure)sin.clone();
      try {
          System.out.println(sin);
       catch (Exception ex) {
           System.out.println(ex);
                        output.setValue(sout,"ECHOSTRUCT");
    output.setValue("This is a response from Example5.java","RESPTEXT");
    }//if
    Here REQUTEXT, ECHOTEXT are import parameter and RESPTEXT is the Export parameter of Function module ZTEST_EJB in SAP.
    Here from this bisuness method you can call web service which you want and give back the result of webservice to ABAP F.M.
    Regards,
    Bhavik

Maybe you are looking for

  • User having all authentication but unable to login in planning why  ?

    user having all authentication but unable to login why in planning ?

  • How to add Field in Page Title or repeat header on each print page.

    Hi Guys, We are using Application Express 4.1.0.00.32 on Wondows XP and Oracle version is 10g. I've created a report in APEX and the user is insisting on putting a header on each page in PRINT of the report which should contain the "from date" and "t

  • Oracle report 10g vs Oracle Forms 11g

    Hi, My application run on Oracle 10g with Oracle Forms&Report 10g I have to modify a report file which was saved by oracle report 11g. When I open the file with Oracle Report 10, I have the following warning : "Avertissement ! Ouverture d'un rapport

  • '-' is in RSKC but activation still fails

    Hi All, As subject already explains we have hyphens '-' in our data and activation fails due to invalid character issue. Hyphens are in special character list in RSKC. Pemitted extra characters: '~@#$^`{}[]\ $/!"%&()+-./:;<=>?_0123456789ABCDEFGHIJKLM

  • IPhone 4S photo recovery

    Hello, I need ur help with recovery of my photos that disappeared from my camera roll after moving them to the album that I set up on my iPad. They are recent photos I took on my holidays. Thank you