Call to Web Service of Oracle PL/SQL not to call the Web service in SOA Server

Hello

Try to call the Web service to oralce pl/sql function

created a function

Unable to invoke the web service from the server of the SOA.

CREATE or REPLACE FUNCTION HelloWorld_WebServices(S_STRING Varchar2) RETURN VARCHAR2 as

Server sys.utl_dbws. SERVICE;

APPEL_ sys.utl_dbws. CALL;

service_qname sys.utl_dbws. QNAME;

port_qname sys.utl_dbws. QNAME;

response sys. XMLTYPE;

application sys. XMLTYPE;

BEGIN

sys.utl_dbws.set_http_proxy ("hostname: Port'");

service_qname: = sys.utl_dbws.to_qname ("ns1", "process");

Server: = sys.utl_dbws.create_service (service_qname);

APPEL_: = sys.utl_dbws.create_call (server);

sys.utl_dbws.set_target_endpoint_address (APPEL_, ' http:/host name: port/soa-infra/services/OFS/HelloWorld/helloworld_client_ep ');

sys.utl_dbws.set_property (APPEL_, 'OPERATION_STYLE', 'process');

asks: = sys. XMLTYPE ("< ns1:process xmlns:ns1 ="http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld"> < ns1:input > < / ns1:input > < / ns1:process > '"); 

answer: = sys.utl_dbws.invoke (APPEL_, request);

return response.extract('//HelloWorld/child::text() ','http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld'). getstringval(); 

DBMS_OUTPUT. Put_line ("values of the OutputsVariables8");

-Of return ';

END;

Run - the code below:

Select HelloWorld_WebServices ('Hi') to double;

Error:

ORA-29532: Java call terminated by eception Java exception: java.lang.NoClassDefFoundError

ORA-06512: at "SYS." UTL_DBWS', line 403

ORA-06512: at "SYS." UTL_DBWS', line 400

ORA-06512: at the 'APPS '. HELLOWORLD_WEBSERVICES', line 74

29532 00000 - "Java call terminated by eception Java exception: %s."

* Cause: A mistake or a Java exception has been reported and could not be

solved by Java code.

* Action: Modify Java code, if this behavior is not expected.

Hello

Fixed the error

After loading once again of DBA and network provided access files JAR/JVM firewall

and the correction on the threshold

Return response.extract (' / result/child::text () ','xmlns = "http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld" '). getstringval();

Tags: Fusion Middleware

Similar Questions

  • Oracle/wss_username_token_client_policy adding not token in the soap header

    Hello

    I'll call an external web service (external reference) of bpel in a version of the composite application 11.1.1.7, service I call you requires ws-security usernametoken and is accessible by https, I joined oracle/wss_username_token_client_policy and oracle/log_policy policy so I can see the whole of the SOAP message, (I also did the configuration of basic.credentials and I tried with the oracle.webservices.auth.password and oracle.webservices.auth.username properties too without success). The problem is that the soap request message sent by bpel does not put the username and password in the header, all I can see in the soap header is as follows:

    < env:Header > < wsa: to > https://myserver:7000 / GC3Services/IntXmlService/call < / wsa: to > < process of wsa: action > < / wsa: action > < wsa: MessageID > urn: 0CF65DF0F8AD11E38F787D1F1907427F < / wsa: MessageID > < wsa: RelatesTo > urn: 0CF65DF0F8AD11E38F787D1F1907427F < / wsa: RelatesTo > < wsa: ReplyTo > < wsa:Address > http://www.w3.org/2005/08/addressing/anonymous " < / wsa:Address > < ReferenceParameters, such > < instra:tracking.ecid xmlns:instra = ' http://xmlns. Oracle.com/SCA/Tracking/1.0 "> 11d1def534ea1be0:5514321:146b552a766:-8000-000000000000cb45 < /instra:tracking.ecid > < xmlns:instra = instra:tracking.conversationId ' http://xmlns. Oracle.com/SCA/Tracking/1.0 ' > urn: 0CF65DF0F8AD11E38F787D1F1907427F < /instra:tracking.conversationId > < instra:tracking.parentComponentInstanceId = xmlns:instra ' http://xmlns. Oracle.com/SCA/Tracking/1.0 ' > Reference: 20010 < /instra:tracking.parentComponentInstanceId > < instra:tracking.compositeInstanceCreatedTime = xmlns:instra ' http://xmlns. Oracle.com/SCA/Tracking/1.0 "> 2014-06-20T 11: 59:40.808 - 07:00 < /instra:tracking.compositeInstanceCreatedTime > < / ReferenceParameters, such > < / wsa: ReplyTo > < FaultTo > < wsa:Address > http://www.w3.org/2005/08/Addressing/Anonymous < / wsa:Address > < ReferenceParameters, such > < = xmlns:instra instra:tracking.ecid ' http://xmlns. Oracle.com/SCA/Tracking/1.0 "> 11d1def534ea1be0:5514321:146b552a766:-8000-000000000000cb45 < /instra:tracking.ecid > < xmlns:instra = instra:tracking.conversationId ' http://xmlns. Oracle.com/SCA/Tracking/1.0 ' > urn: 0CF65DF0F8AD11E38F787D1F1907427F < /instra:tracking.conversationId > < instra:tracking.parentComponentInstanceId = xmlns:instra ' http://xmlns. Oracle.com/SCA/Tracking/1.0 ' > Reference: 20010 < /instra:tracking.parentComponentInstanceId > < instra:tracking.compositeInstanceCreatedTime = xmlns:instra ' http://xmlns. Oracle.com/SCA/Tracking/1.0 "> 2014-06-20T 11: 59:40.808 - 07:00 < /instra:tracking.compositeInstanceCreatedTime > < / ReferenceParameters, such > < / FaultTo > < / env:Header > .

    I don't know why bpel does not send the user name and password if oracle/wss_username_token_client_policy policy is enabled (I also tried with politics oracle/wss_username_token_over_ssl_client_policy without success).

    Thank you

    Carlos.

    The problem has been the oracle/log_policy policy because it shows not all of the SOAP message, the oracle/log_policy policy hides the security part (which I think is a weird behavior).

  • Oracle Forms URL not accessible outside the server

    Dear all,

    I am facing problems of access to the URL of Forms under Oracle Forms 11 g when you access from the server.

    Intended to test, I created a new Oracle Forms on a VMWare Server environment.

    Details on my environment

    Windows 2008 R2 64-bit Server

    Oracle Web Logic Server 11g R1 64-bit

    Oracle 11 g R2 64-bit forms and reports

    Oracle Database 11 g R2 64 bit

    Virtual machine network connection works fine. I am able to Remote Desktop, sqlplus and access the Admin of WebLogic Console (port 7002) from my local system.

    But when connecting to the URL of the form it does not connect. It gives me the following error. Forms URL works fine when accessing the server.

    It seems you're connected to the Internet, but you might want to try to reconnect to the Internet.


    By using the following URL format to access the Forms http://formsserver:7007/forms/frmservlet? config = < appname >


    Please let me know if anyone has the solution.

    Thank you

    Mohamed Yusuf Salih

    Be careful when you make changes.  If you are not familiar with the operation of the listeners, you can easily make a problem worse.  Assuming that you have installed using the "Deployment" installation option, the default non - ssl ports must be as follows:

    OSH - 8888

    Server administration WLS - 7001

    WLS_FORM - 9001

    WLS_REPORTS - 9002

    Once configured correctly, calling the forms or reports occurs through the same port of OSH.  Thus, for example:

    http://server:8888/forms/frmservlet ...

    http://server:8888/reports/rwservlet ...

  • Oracle XE is not running on the CentOS machine

    Hello

    I installed Oracle-XE on a CentOS machine a few months back and it was running fine since then, however for the last 2 days he does not work after I rebooted the machine.
    When I checked the status of /etc/init.d/oracle-xe output has been
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 21-AUG-2012 12:32:42
    
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                21-AUG-2012 12:32:35
    Uptime                    0 days 0 hr. 0 min. 7 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File         /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pcrf.open-ims.test)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    I am not able to connect any user with sql * more the command window, it just gives
     conn techm
    Enter password: 
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Here are my tnsnames.ora and listener.ora

    tnsnames.ora
    # tnsnames.ora Network Configuration File:
    
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = pcrf.open-ims.test)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
        )
      )
    
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
        )
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
        )
      )
    Listener.ora
    # listener.ora Network Configuration File:
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
          (PROGRAM = extproc)
        )
      )
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
          (ADDRESS = (PROTOCOL = TCP)(HOST = pcrf.open-ims.test)(PORT = 1521))
        )
      )
    
    DEFAULT_SERVICE_LISTENER = (XE)
    Published by: Prost on August 21, 2012 12:18 AM
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda9             9.7G  9.7G     0 100% / 
    

    Well?
    You have free space to other places, but your root partition is full. 9.7 G is not a lot of space for such a place if you do not properly install the other parts of the file system.
    I don't know where this is, but why you get on sites like + / usr1 + instead of + / usr +? It seems that something was not quite there...

    -Udo

  • Refresh the report area of PL/SQL (not Page) using the value of the select list

    Hello

    I have a report region based on a "body of the PL/SQL function returning a query'which SQL is generated on the selection of a value of an element from the selection list, select action list is"Redirect and set", but this causes the entire page refresh rather than just the region report." I tried to update the report using only a dynamic action on the item list select (Action now reset to 'None'), but now the report does not appear on the choice of the list. Can someone suggest a solution that will allow me to update this report without refreshing the page? I use APEX 4.2.2 and the syntax of the statement is as follows:

    DECLARE

    v_statement VARCHAR2 (500);

    BEGIN

    SELECT query_text
    IN v_statement
    OF sql_queries
    WHERE query_id =: P2_QUERY;

    RETURN v_statement;

    END;

    where P2_QUERY is Select list item,

    Kind regards

    Kevin.

    KevinFitz wrote:

    The displayed report region is subordinate to the point P2_QUERY is NOT NULL. I guess that the region appears not is because the Action for the select list item is set to None, and so P2_QUERY is always NULL.

    No, the region does not appear because it is subordinated to the P2_QUERY being NOT NULL. This means that the region of report never exists on the page displayed in the browser, so it cannot be updated dynamically. (Dynamic updating is not to evaluate the conditions of the region, and she makes only the content of the report, not the whole region again).

    Remove the condition on the region to report, check the update works and then go back on what exactly are the requirements here. If you want to the area appear only when P2_QUERY has a value, and you want it to be regenerated without submitting and reposting of the page, the region must then be hidden rather than conditionally restored and shown via dynamic when action P2_QUERY Gets a value.

    I tried to add a further Action for the event real value DA but has been a mistake, as stated above,

    All irrelevant if Page to submit items on the region is used correctly.

  • Oracle Home is not valid on the TOAD

    Jin

    I installed Oracle Database 11 g (64-bit) on my computer of Windows Server 2008 R2 64-bit (Machine A).
    On my PC (Machine B) ' TOAD for Oracle Version 8.6 "has been installed. I could easily connect my database using the
    This TOAD. However after installing the TOAD 8.6 (or higher version 10) v. on my Machine (database server).
    TOAD gave the message that the * 'Oracle Home is not valid' * when I tried to connect the database.

    I couldn't have managed to fix this message, and for this reason, I could not connect my database locally my database server (Machine A)
    using TOAD 8.6 or v.10 v.

    Y at - it one thing miss me about TOAD or ORACLE?

    As already said TOAD is not a product of Oracle. See the system requirements for your version of TOAD (or ask Quest) that they already support 11 GR 2 in general and in particular the 64-bit version.
    GR 11, 2 on Windows was released a few days ago, I guess that 3rd party products need a little more time.

    Werner

  • 'Oracle' directory is not visible after / etc

    Hello

    Why oracle directory is not visible after the directory/etc?

    $ cd /etc/
    [oracle@RAC-SERVER1 etc]$ cd oracle
    [oracle@RAC-SERVER1 oracle]$ cd ..
    [oracle@RAC-SERVER1 etc]$ ls -la oracle
    total 32
    drwxr-xr-x    4 root   oinstall  4096 Feb  1 01:27 .
    drwxr-xr-x  117 root   root     12288 Feb  1 04:21 ..
    -rw-r--r--    1 oracle oinstall    92 Feb  1 01:27 ocr.loc
    drwxrwxr-x    5 root   root      4096 Feb  1 01:27 oprocd
    drwxr-xr-x    3 root   root      4096 Feb  1 01:27 scls_scr
    
    

    $ cd /etc/
    [oracle@RAC-SERVER1 etc]$ ls -l oracle
    $ ls -l oracle
    total 12
    -rw-r--r--  1 oracle oinstall   92 Feb  1 01:27 ocr.loc
    drwxrwxr-x  5 root   root     4096 Feb  1 01:27 oprocd
    drwxr-xr-x  3 root   root     4096 Feb  1 01:27 scls_scr
    
    

    Distro is RHEL AS 4.8

    "Thank you

    You must use d for directory list rather than content entries

    Consider the following example:

    # mkdir test

    # Touch test/testfile

    # ls test

    TestFile

    # ls d test

    test

  • Connector WFD SDK - how to call the server method?

    I use the FMS connector C++ to perform editing work. And I am obliged to call a method side server.

    I tried to use the INetConnection::call () method, but it seems to be successful.


    The specification of the server FMS told me to do,

    1. call the server method,

    NC. Call (streamname, null, "FCPublish");


    2. implement a callback function onFCPublsih

    nc.onFCPublish = function (info) {...}

    How can I implement the latter with FMS Connector C++?

    The FMS connector document include a subject too little on the method call server-side.

    WFD SDK connector, the netconnection call prototype looks like this.

    virtual bool call (const char * funcName, const unsigned char * arguments, unsigned size, OnResultHandler * result) = 0;

    Thus, you will have to serialize the arguments and then pass it to call the function.

    Check

    bool FMSCTester::testCall (const char * cmd, const char * arg)

    method in FMSCTester sample application that comes with the software development kit how to serialize and call the function.

    For Server callbacks, you have to implement a netconnection sink with the onCommand method is called when the server calls a method on the client.

    The onCommand prototype looks like this,

    onCommand Sub (const char * cmd, const unsigned char * arguments, unsigned bufLen, IRetValue * retVal)

    again, you can check the MyNCSink class in the FMSCTester sample project for an implementation of onCommand.

  • call the service wsdl (XSD) using util_http package web

    Hi expert,

    I have a request to call a WebService using sql, pl This is the web content as? wsdl :

    normally the WSDL file contains Saopaction url etc, but I don't know how to write a pl sql (using the utl_http package) if it is xsd, and I am a newbie to webservice, any idea?

    Thank you

    Nick

    /****************************************/

    ....

    "< xsd: complexType name="getReport">"

    < xsd: SEQUENCE >

    "" < xsd: Element name= "ReportName" " nillable="true" type="string"/ >"

    "" < xsd: Element name= "password" ' nillable= "true" type= "string"/ > "

    "" < xsd: Element name= "region" " nillable="true" type="string"/ >"

    "" < xsd: Element name= "Perm.Prog" ' nillable= "true" type= "string"/ > "

    "" < xsd: Element name= "Perm.Status" ' nillable= "true" type= "string"/ > "

    "" < xsd: Element name= "Issue.St.Date" ' nillable= "true" type= "string"/ > "

    "" < xsd: Element name= "Issue.End.Date" ' nillable= "true" type= "string"/ > "

    "" < xsd: Element name= "Exp.St.Date" ' nillable= "true" type= "string"/ > "

    "" < xsd: Element name= "Exp.End.Date" ' nillable= "true" type= "string"/ > "

    "" < xsd: Element name= "Perm.Owner" ' nillable= "true" type= "string"/ > "

    "" < xsd: Element name= "SortBy" " nillable="true" type="string"/ >"

    "" < xsd: Element name= "Direction" ' nillable= "true" type= "string"/ > "

    "" < xsd: Element name= "IsCurrent" " nillable="true" type="string"/ >"

    "" < xsd: Element name= "IsFuture" ' nillable= "true" type= "string"/ > "

    "" < xsd: Element name= "IsExpired" " nillable="true" type="string"/ >"

    "" < xsd: Element name= "isArchved" ' nillable= "true" type= "string"/ > "

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    ......

    "< s0:binding name="ReportSrv"' type="s1:ReportSrv">

    "< s2:binding style="document"" transport= "http://schemas.xmlsoap.org/soap/http"/ >

    "< s0:operation name="getReport">"

    < s2:operation / >

    < s0:input >

    "< s2:body use="literal"/ >"

    < / s0:input >

    < s0:output >

    "< s2:body use="literal"/ >"

    < / s0:output >

    < / s0:operation >

    < / s0:binding >

    "< s0:service name="ReportSrvService">"

    "< s0:port link="s1:ReportSrv"' name="ReportSrvPort">

    ....

    The easier (and better) is to use XMLTABLE.

    But given that the data is in a text() node shipped, it must be done in two steps:

    (1) extraction and analysis of the report document

    (2) the document shredding in columns and relational rows report

    Assuming that the answer is in an XMLType variable (or column), say 'xml_response', you can do it like this:

    select x2.*
    from xmltable(
           xmlnamespaces(
             'http://schemas.xmlsoap.org/soap/envelope/' as "env"
           , default 'http://nps.pub.collections/'
           )
         , '/env:Envelope/env:Body/getResponse/return'
           passing xml_response
           columns report_xml  clob path '.'
         ) x1
       , xmltable(
           '/Report/record'
           passing xmlparse(document x1.report_xml)
           columns RecordNumber     number path 'RecordNumber'
                 , Submitted_by_CCM varchar2(10) path 'Submitted_by_CCM'
                 , Data_action_code varchar2(10) path 'Data_action_code'
                 , VID              varchar2(10) path 'VID'
                 , Name_of_the_v    varchar2(10) path 'Name_of_the_v'
                 , Flag_of_the_v    varchar2(10) path 'Flag_of_the_v'
                 , r_number         number       path 'r_number'
         ) x2 ;
    
    RECORDNUMBER SUBMITTED_BY_CCM DATA_ACTION_CODE VID        NAME_OF_THE_V FLAG_OF_THE_V   R_NUMBER
    ------------ ---------------- ---------------- ---------- ------------- ------------- ----------
               0 cty              null             null       test1         cty                 1221
             210 cty              null             null       test2         cty               978287
    
  • When you access all tasks of merger Applications home page, "an error has been received for the task manage worker research of goal setting." This task is identified by the HRG_MANAGE_WORKER_GOAL_SETTING_LOOKUPS code that calls the program/WEB-INF/oracle/

    We have installed version of the Application from merger 11.1.7 HCM and CRM modules.

    It is 2 node architecture IDM IE components installed in a single node and Fusion components installed in another node.

    We are able to start the components of IDM and Fusion successfully, but when users try to access any task of merger application home page, they receive the below error


    A consumer of portlet error has been received for research of parameter task manage worker objective. Report the error details to the product owner next goal management.

    An error has been received for research of parameter task manage worker objective. This task is identified by the HRG_MANAGE_WORKER_GOAL_SETTING_LOOKUPS code that calls the program module code fndSetup /WEB-INF/oracle/apps/fnd/applcore/lookups/publicUi/flow/ManageCommonLookupsTF.xml#ManageCommonLookupsTF. Review logs consumer and producer for details about this error.



    This may be related to your other question about "FUSION_APPS_WSM_APPID-KEY" as newspapers contains exceptions such as:

    oracle.wsm.policymanager.PolicyManagerException: WSM-02081: failed to logon to perform the requested action.

    Please refer to the document Fusion Service account password Expiration causes Portlet producer errors of Application (1486388.1) to learn how to check and set the password. There is also exception:

    javax.security.auth.login.FailedLoginException: [Security: 090302] authentication failure: User FUSION_APPS_PROV_PATCH_APPID refused

    This is probably caused by an expired password, please see Fusion applications servers are not in - password policy error: 9000: GSL_PWDEXPIRED_EXCP: your password has expired (1629927.1).

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • UTL_HTTP to call the RESTful web services

    I tried a few days to access a REST Web service and the response is an HTML element:

    Supported media not taken type > 10.4.16 415

    > the server refuses the request because the entity of the request is in a format not supported by the resource for the requested method.

    It works from the browser (Mozilla). And there is demand:

    https://xmlhub-test.xxx.xx/xmlhubws/jersey/SubmitMessage

    POST/xmlhubws/jersey / SubmitMessage HTTP/1.1

    Host: xmlhub - test.xxx.xx

    User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:12.0) Gecko/20100101 Firefox/12.0

    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

    Accept-Language:-us, en; q = 0.5

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Referer: https://Portal-test.xxx.XX/portal/page/Portal/xxx/extranet/opma_main/xxxx/wsclient-xmlhub.html

    Cookie: JSESSIONID = JjhpJTqKsRYFGCjL3QLV2GcYMJHLvLDVlBL5hyh5FN8K2qyb10PR!-621147356! 625535808; ObSSOCookie=s47sUDozSHzJ%2FarHPqrcaD5LkcFJXEmkuTQKr51UYXa3lZPjeNHKjzaUmxYbPxLkZYaaztIqCJwodlHpo6D4jR%2FVkKhmd%2Bcc9dJg4jw9cA3Kn%2FZxiwe3RA1Fyf2A%2BFLgy6eQStLzV6C9QbOi2lersS9gZBbYEy28etCXhPgMuOavl3Xtnf%2BeMVCj4Hg2QQxZSt%2FHjkSWRh%2FyVhDevt2yUo4zpoLTZ7ZKX28um6FO8CCXUTCvSlljWSzhzmSL9SwO;     RSERVER_XMLHUB_TEST_TCP_7012 = R1894177232

    Content-Type: multipart/form-data; Boundary = - 204562724022109

    Content-Length: 2607

    -204562724022109

    Content-Disposition: form-data; name = "content"; filename = "abc - 01.xml".

    Content-Type: text/xml

    <? XML version = "1.0" encoding = "UTF-8"? >

    ETC.

    and my code is:

    -UTL_HTTP. CLOSE_PERSISTENT_CONNS (g_wsdl_url);

    Utl_http.set_response_error_check (false);

    Utl_http.set_detailed_excp_support (true);

    Utl_http.set_cookie_support (true);

    Utl_http.set_transfer_timeout (60);

    Utl_http.set_follow_redirect (3);

    Utl_http.set_persistent_conn_support (true);

    UTL_HTTP. SET_WALLET (xxxx, xxxxx);

    v_http_request: = utl_http.begin_request ("https://xmlhub-test.xxx.xx/xmlhubws/jersey/SubmitMessage ', ' POST ',' HTTP/1.1 '");

    Utl_http.set_body_charset (' v_http_request, ' UTF-8 ');

    Utl_http.set_authentication (v_http_request, xxxx, xxxxxx, "basic", false);

    UTL_HTTP.set_header(v_http_request,'Host','xmlhub-test.xxx.xx');

    UTL_HTTP.set_header(v_http_request,'User-Agent', 'Mozilla/5.0 (Windows NT 5.2;)) RV:12.0) Gecko/20100101 Firefox / 12.0 ');

    Utl_http.set_header(v_http_request,'Accept','Text/HTML,application/XHTML+XML,application/XML;q=0.9,*/*;q=0.8 ');

    UTL_HTTP.set_header(v_http_request,'Accept-Language','en-US,en;q=0.5');

    -UTL_HTTP.set_header (v_http_request, 'Accept-Encoding', 'gzip, deflate');

    Utl_http.set_header (v_http_request, 'Connection', 'keep-alive');

    -UTL_HTTP.set_header (v_http_request, 'Referer','https://portal-test.bnr.ro/portal/page/portal/BNR/extranet/opma_main/opma/wsclient-xmlhub.html');

    text/html; Charset = UTF - 8-' multipart/form-data ".

    Utl_http.set_header (v_http_request, 'Content-Type', ' multipart/Form-data');

    Utl_http.set_header (v_http_request, "Transfer-Encoding", "chunked");

    Utl_http.set_header (v_http_request, "Content-Length", l_clob_len);

    Utl_http.set_header (v_http_request, 'id', '"downloadMessage" ');

    Utl_http.write_text (v_http_request, p_xml.getStringVal ());

    ...

    What can I do? How cand I try. I tried dozens of variants (query of xml > 180 files).

    Please help me.

    Tjank you!

    Generate a model for POST UTL_HTTP, of the w.

    I suggest using the free version of SoapUI for this. Very simple. Create the new project of REST. Enter w location (URL). Generates a sample call and look at how the HTML call is formatted. You can also trigger test POST CALL using SoapUI. When it works, copy - paste this MESSAGE template for use in PL/SQL

    From what you have posted, it seems to be an error in user code. So if you can get the details of the correct POSITION, the user code should work.

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • Call the web service with Digest authentication

    Hello

    I JDevelper 12.2.4, I need build the java class to call the web service with Digest authentication.

    Any suggestion?

    Refer to:

    http://StackOverflow.com/questions/14896324/consuming-WCF-service-with-Digest-authentication-from-Java

  • Matter of business for OSB 10.3.1 when to call the web service from SAP ECC 710

    Hello

    1. I was a unit test for a business service that calls a web service from SAP ECC 710 (this service is published directly to a RFC function via SOA Manager module);

    2. the problem is when I use the OSB test console, which generates the request below message:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    * < soap: Header xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/' > *.
    * < / soap: Header > *.
    < soapenv:Body >
    < xmlns:urn urn: Zmmjf503 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    string of < ContractInfo > < / ContractInfo >
    < / urn: Zmmjf503 >
    < / soapenv:Body >
    < / soapenv:Envelope >

    the response message is:
    < SOAP - env:Envelope xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope/" >
    < SOAP - env:Header >
    < n0:MessageID = "http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:n0 >
    UUID:4cbe5b84 - 474 c-9abe-e100-00000ad00164
    < / n0:MessageID >
    < n1:Action SOAP - env:mustUnderstand = "1" xmlns:n1 = "http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope" / >
    < / soap - env:Header >
    < SOAP - env:Body / >
    < / soap - env:Envelope >


    Above the response indicates that the BS called SAP Web server successfully, but seems that the service did not get the request message.

    3. the Web service can be called successfully through SoapUI. and I checked the soapUI request message; and it can work if I just change the request:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    * < soap: Header = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap > < / soap: Header > *.
    < soapenv:Body >
    < xmlns:urn urn: Zmmjf503 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    string of < ContractInfo > < / ContractInfo >
    < / urn: Zmmjf503 >
    < / soapenv:Body >
    < / soapenv:Envelope >

    and I got the right answer:
    < SOAP - env:Envelope xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope/" >
    < SOAP - env:Header / >
    < SOAP - env:Body >
    < n0:Zmmjf503Response xmlns:n0 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    < Recmsg > <! [CDATA [<? xml version = "1.0" encoding = "utf-8"? > < DocumentResponse > < CONDITION > 0 < / STATE > < HTBH > < / HTBH > < MESSAGE > < / MESSAGE > < / DocumentResponse >]] > < / Recmsg >
    < / n0:Zmmjf503Response >
    < / soap - env:Body >
    < / soap - env:Envelope >

    4 it bother me, because the only difference between the above two request messages is the header (one contains a "newline"):
    ------------------------------------------------------------------------------------------------------------------------------
    * < soap: Header xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/' > *.
    * < / soap: Header > *.
    -------------------------------------------------------------------------------------------------------------------------------
    VS
    --------------------------------------------------------------------------------------------------------------------------------------
    * < soap: Header = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap > < / soap: Header > *.
    ----------------------------------------------------------------------------------------------------------------------------------------

    5 I thought that the SOAP engine should ignore "carriage returns", seems this is a problem of SAP ECC710.

    Do you have someone having this problem? Thank you


    Concerning
    Wen

    Hello Wen,

    I tried to use exactly the same request (carriage return) to call the service through soapUI, and it does not work... just like BS OSB
    should I assume that it is a matter of SAP ECC?

    That same demand also doesn't SOAPUI so certainly it's an issue with SAP ECC. I doubt that SAP ECC is the treatment the carriage return as an end of file marker. Check with support.

    Kind regards
    Anuj

  • How to call the pl/sql function in application of the ADF

    Hi Experts,

    I need to call the pl/sql function in application of ADF, I have logic written in my AM

    Method:

    public String reportStoredProcedure (locationID customerID, number,
    String tailNum) {}

    CallableStatement st = null;
    String v_sanctioned = null;
    If (locationID! = null & & customerID! = null & & tailNum! = null) {}
    System.out.println (locationID + "" + customerID + "" + tailNum);
    Tail string = "TAIL";
    String result = "N";

    try {}
    String stmt =
    "start XXWFS_SANCTIONS_PKG. CHECK_SANCTION(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11); end; « ;
    St = getDBTransaction () .createCallableStatement (stmt, 0);
    st.setNull (1, Types.VARCHAR);
    st.setNull (2, Types.NUMERIC);
    st.setObject (3, customerID);
    st.setNull (4, Types.NUMERIC);
    st.setNull (5, Types.NUMERIC);
    st.setObject (6, locationID);
    st.setNull (7, Types.NUMERIC);
    st.setNull (8, Types.NUMERIC);
    st.setObject (9, tail);
    st.setObject (10, tailNum);
    st.setObject (11, result);
    St.Execute ();
    System.out.println ("v_sanctioned in AM:" + v_sanctioned);
    } catch (Exception e) {}
    e.printStackTrace ();
    return "N";
    } {Finally
    If (st! = null)
    try {}
    St.Close ();
    } catch (Exception e1) {}
    E1. PrintStackTrace();
    return "N";
    }
    }
    } else {}
    System.out.println ("v_sanctioned is null");
    v_sanctioned = "N";
    }
    Return v_sanctioned;
    }


    Error:

    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in the call to 'CHECK_SANCTION '.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
    at model.view.CardAMImpl.reportStoredProcedure(CardAMImpl.java:182)
    at com.emboss.bean.ReadyToPrint.invokeVSanctioned(ReadyToPrint.java:485)
    at com.emboss.bean.ReadyToPrint.PrintingCards(ReadyToPrint.java:434)
    at com.emboss.bean.ReadyToPrint.printCards(ReadyToPrint.java:204)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:90)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.doIt (WebAppServletContext.java:3684)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Can someone help me how to call...

    Call it in function, not as a procedure you do

    try {
    String stmt =
    "begin :1 := XXWFS_SANCTIONS_PKG.CHECK_SANCTION(:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12); end;";
    st = getDBTransaction().createCallableStatement(stmt, 0);
    st.registerOutParameter(1, Types.VARCHAR);
    st.setNull(2, Types.VARCHAR);
    st.setNull(3, Types.NUMERIC);
    st.setObject(4, customerID);
    st.setNull(5, Types.NUMERIC);
    st.setNull(6, Types.NUMERIC);
    st.setObject(7, locationID);
    st.setNull(8, Types.NUMERIC);
    st.setNull(9, Types.NUMERIC);
    st.setObject(10, tail);
    st.setObject(11, tailNum);
    st.setObject(12, result);
    st.execute();
     = st.getString(1);
    

Maybe you are looking for

  • Is there a way to insert a registered trademark (r) or other special characters in the text of the e-mail?

    I can't be able to find this in Thunderbird and can cut and paste from other applications in here, but that's getting old. Please advise on how to do this please. Thank you!

  • What level on an imac software is now supported by firefox

    We have an IMAC with OSX level software and just told to Firefox that our IMAC was is no longer supported. We still have access to the internet, etc., but all other warranties aren't there (security, spam, etc.). If we update our current software, wh

  • How to create a sub

    Dear Sir. I'm new to labview how to create a sub vi

  • Not recognized as an administrator

    When I was installing Windows updates, a message appeared stating that I don't have an administrator authority to install the updates, even if I don't have one account on the computer. For this reason, I can't uninstall some programs because I am not

  • Damage of Trojan

    Stupidly, I opened a junk e-mail and I almost immediately lost my internet connection and then a window pops up informing me that a Trojan horse had infected my computer.  Can I safely back up my photos and documents on a USB at this point or that wi