Number of databases in the P6 Web Services?

We have Primavera Web Services set up for one of our P6.2 databases, but we would like to add an extra database to the configuration. Is this possible or do I have to configure the web services for each database? If I can add the database to the existing configuration, how can I add the other database?

Not to my server, but it's something like that.
Admin Web application open for P6 Web (tree view)
Develop custom - P6 Config - database - copy or duplicate of the DB Instance. Then change the configuration to point to the second DB with the new instance. Save the settings.

We have several used DB. Live data, Sandbox, some test DB and the other for training (and then we just do a restore after each training session)

Tags: Oracle Applications

Similar Questions

  • Impossible to activate the HP Web services for my HP Laserjet 200 MPF M276nw color

    Kindly help, I tried to update the firmware, but still my web services will not turn on.

    RGS

    G

    Hi GayleneC,

    Thank you for the update and additional information.  I really appreciate it.

    You indicated that you tried to update the firmware, I wonder because the printer is not connecting to web services that is may not have logged in to check the updates of the firmware.  I have included two links, one is for the Windows of HP LaserJet Pro Series Firmware Update Utility version , the other is for the Mac version of the HP LaserJet Pro Series Firmware Update Utility. Please choose your operating system and we will try and update the firmware without using the front panel of the printer.

    After you run the firmware update utility, please disable IPv6 wireless via built-in web server.  Please follow the steps below:

    1. To open the HP embedded Web server, type the IP address of product in a Web browser address line. When it opens, it should look like the screenshot below.

    2. Please click on the 'Network' tab as highlighted in the screenshot above.

    3. Please click on 'Advanced' in the side menu on the left as indicated above. Please disable IPv6 and click 'apply '.

    4. Please click on the "HP Web Services" tab.

    5. Please click on the button "activate". Print the newsletter of Web Services.

  • Unable to connect to the VMware web service: invalid key file

    Hello

    We have a CPO 2.3.1 who refuses to connect to vCenter (see newspaper excerpt at the end of the post).

    Recently, we changed our server vCenter (part of a 5.1 update).

    We tried the following workarounds:

    • Remove and add all the elements of the platform from the portal using services SE
    • Re import automation packs (4 of the Starter Edition v2.3.1.38)
    • Re on the keystore password

    No change at all...

    Do you have an idea on how to fix this?

    Thank you.

    Kind regards

    Stone

    || 235. 02/10/2012 15:46:21.667 | 6072. WCF: http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord ' gravity 'Error' = >http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.TraceHandledException.aspxhandling of an exception. . Tidal.Automation.Server.exe Tidal.Scheduler.Common.Communications.CommunicationException, Tidal.Scheduler.Common, Version = 2.3.0.0, Culture = neutral, PublicKeyToken = fba593b23cf207cdthe connection attempt (VMware vCenter Server (603) @VMware vCenter Server (603)) failed due to the following error: unable to connect to the VMware web service: Invalid keystore. to Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (ServerAssistedOperation operation, target TargetConfiguration, RuntimeUserConfiguration runtimeUser)

    to Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter. & lt; & gt; c__DisplayClass1c. & lt; PerformServerAssistedOperation & gt; b__1b(IAdapter adapter)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, haltingAction Boolean, Int32 remainingRetries)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, Boolean haltingAction)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation (operation ServerAssistedOperation)

    at SyncInvokePerformServerAssistedOperation (Object, Object [], Object [])

    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke (object instance, entered to Object [], Object [] & amp; outputs)

    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5 (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31 (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.MessageRpc.Process (Boolean isOperationContextSet)Tidal.Scheduler.Common.Communications.CommunicationException: the connection attempt (VMware vCenter Server (603) @VMware vCenter Server (603)) failed due to the following error: unable to connect to the VMware web service: invalid key file.

    at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (ServerAssistedOperation operation, target TargetConfiguration, RuntimeUserConfiguration runtimeUser)

    to Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter. & lt; & gt; c__DisplayClass1c. & lt; PerformServerAssistedOperation & gt; b__1b(IAdapter adapter)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, haltingAction Boolean, Int32 remainingRetries)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, Boolean haltingAction)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation (operation ServerAssistedOperation)

    at SyncInvokePerformServerAssistedOperation (Object, Object [], Object [])

    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke (object instance, entered to Object [], Object [] & amp; outputs)

    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5 (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31 (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.MessageRpc.Process (Boolean isOperationContextSet)

    || 236. 02/10/2012 15:46:21.667 | 6072. An exception that is not of type rhapsodyexception has been captured while a webmethod call was made.  This exception has been intercepted and generic.

    || 231: 02/10/2012 15:46:21.667 | 6072. EXCEPTION (Tidal.Scheduler.Common.Communications.CommunicationException): The connection attempt (VMware vCenter Server (603) @VMware vCenter Server (603)) failed due to the following error: unable to connect to the VMware web service: invalid key file.

    Stack trace: at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (ServerAssistedOperation operation, target TargetConfiguration, RuntimeUserConfiguration runtimeUser)

    to Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter. <> c__DisplayClass1c. b__1b(IAdapter adapter)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, haltingAction Boolean, Int32 remainingRetries)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, Boolean haltingAction)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation (operation ServerAssistedOperation)

    at SyncInvokePerformServerAssistedOperation (Object, Object [], Object [])

    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke (object, Object [], Object [] entries & exits instance)

    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin (MessageRpc & CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5 (MessageRpc & CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31 (MessageRpc & CPP)

    at System.ServiceModel.Dispatcher.MessageRpc.Process (Boolean isOperationContextSet)

    You have an invalid key file because the HTTPS certification has changed. You must remove the old keystore file and restart the OPC Server and then reconnect / run something against vCenter.

    It is also possible to host Adatper framework/java problems I've seen often.

    If you need more information, you will need to prosecute TAC with your service contract please. Normally, we try to solve no newspapers on the forums.

    -Shaun Roberts

    CIAC/CPO support team leader

    [email protected] / * /.

  • Job-Run: SELFUPDATE, unable to connect to the ConsoleJobStepExecutorService Web service working system.

    Job system failed to connect to the ConsoleJobStepExecutorService Web service. Check the OMS's WebLogic Admin Server for any issues related to Web services configuration that could cause a connection failure.

    Natural logarithm of output

    Hello world.

    I am writing from Hungary, sorry for my bad English. You can read my problem above.

    I'm looking for:

    -Oracle Cloud control 12 c version 5

    -Extensibility / auto update / check updates

    -activity of employment-

    SELFUPDATE_201511111044141 race11 November 2015 10:44:14 GMT + 01:00SYSMANRefresh updates

    but the message: error log:

    Job system failed to connect to the ConsoleJobStepExecutorService Web service. Check the OMS's WebLogic Admin Server for any issues related to Web services configuration that could cause a connection failure.

    and nothing happened.


    I would like to download and install the microsoft agent x 64 driver.


    -I can't find anything on the the red message in the internet or in the google...

    -I'm still a beginner in Oracle...

    -MOS, proxy and the credentials are OK.


    Please help me,

    Thank you for your co-operation in advance

    László

    Hi Courtney lamas-Oracle

    First of all. Thank you very much for your help!

    Yesterday, I was able to find the answer to my problem:

    So:

    1. I used consol secure with sleeve and key_strength 2048 (because there were problems connecting my Chrome, IE11 or Firefox to the Weblogic administration Console and the https certificate)

    2. I refreshed DemoIDentity, jks with certificate of keystrength from 512 to 1024 due to the blocking of the browser.

    The solution:

    sure emctl console - portfolio -key_strength 1024

    Restart the WHO

    I've been careless.

    Everything works fine now.

    LACI

  • Integration with the secure web service IS deployed on EBS

    Hello experts,

    I have a REST webservice deployed to an Instance of the EBS. I try to call the web service using a mobile application in the ADF. However, the web service is secure and requires security settings to be sent in the request header.

    Anyone can recall or explain how I can add a custom header to the object of the application for the REST web service? Any help will be appreciated.

    Thank you

    Abhishek

    Hi Abhishek,

    You can do the following:

    String theUsername = "abc";

    String thePassword = "pass";

    String userPassword = theUsername + ': ' + thePassword.

    String encoding = new sun.misc.BASE64Encoder () .encode (userPassword.getBytes ());

    restServiceAdapter.addRequestProperty ("Authorization", "Basic" + coding);

    If you use Webservice DataControl, then automatically the connection information in the login form is injected into the webservice framework.

    Kind regards

    Deepak

  • Could not contact the Flickr web service

    In recent weeks, I am unable to upload pictures directly from LR on Flickr.

    The message I get:

    "Cannot update this collection.

    Could not contact the Flickr web service. Please check your Internet connection. »


    LR version 2015.1.1

    Generation 1032027


    Flickr Pro account.


    Any advice? I'm happy test the beta fix only if available.


    I used to use the plugin to Jeffrey, and it's (I think still is) a fantastic product. Again, having a built-in feature delivered with LR has won my heart.

    BTW: it seems that the issue is on the side of Flickr and relates to their limitation (IP based) network. I don't understand why they do it and why too drastic. Try again potentially additional native plugin LR Flickr could help.

    It was enough for me to activate VPN to route traffic through a server in San Francisco and it's all very well now. My original traffic was from London.

    Boring, but has less there is a workaround.

  • The OPA Web services return no values

    I tried to get the OPA web services to provide a decisive result, but it seems as if my values are not received correctly. I reduced my application to simple terms to see if I can get anything to come back, and maybe to see if someone can point out what is happening, or what Miss me.  The following transactions should bounce at least values, correct?

    Credits:

    Request:

    "< soapenv:Envelope xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/"xmlns:typ ="http://oracle.com/determinations/server/10.4/rulebase/assess/types">" "

    < soapenv:Header / >

    < soapenv:Body >

    < type: evaluate request >

    < type: global instance >

    < typ:attribute id = "applicationClass' type = 'text' deducted ="false"result-style ="single value"unknown-result-style ="single value"known-result-style ="single value">

    < typ:text - val > A < / typ:text - val > < / typ:attribute >

    < / typ: global instance >

    < / typ: evaluate request >

    < / soapenv:Body >

    < / soapenv:Envelope >

    Answer:

    "" < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n ="http://www.w3.org/2005/09/ws-i18n" xmlns:typ = "http://oracle.com/determinations/server/10.4/rulebase/assess/types" >. "

    < SOAP - ENV:Header >

    < i18n:international >

    en_US < i18n: local > < / i18n: local >

    < i18n:tz > GMT-0400 < / i18n:tz >

    < / i18n:international >

    < / SOAP - ENV:Header >

    < SOAP - ENV:Body >

    < type: assessment / response >

    < type: global instance >

    < typ:attribute id = "applicationClass' type = 'text' deducted ="false">

    < typ:unknown - val / >

    < / typ:attribute >

    < / typ: global instance >

    < / typ: assess / answer >

    < / SOAP - ENV:Body >

    < / SOAP - ENV:Envelope >

    Specific:

    Request:

    "< soapenv:Envelope xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/"xmlns:typ ="http://oracle.com/determinations/server/10.4/DriverRoadtestEligibility_Excel/assess/types">" "

    < soapenv:Header / >

    < soapenv:Body >

    < type: evaluate request >

    < type: global instance >

    <! - you can enter the following 37 items in any order-->

    < typ:applicationClass type = "text" deducted = "false" result-style = "single value" unknown-result-style = "single value" known-result-style = "single value" >

    < typ:text - val > A < / typ:text - val >

    < / typ:applicationClass >

    < / typ: global instance >

    < / typ: evaluate request >

    < / soapenv:Body >

    < / soapenv:Envelope >

    Answer:

    "" < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n ="http://www.w3.org/2005/09/ws-i18n" xmlns:typ = "http://oracle.com/determinations/server/10.4/DriverRoadtestEligibility_Excel/assess/types" >. "

    < SOAP - ENV:Header >

    < i18n:international >

    en_US < i18n: local > < / i18n: local >

    < i18n:tz > GMT-0400 < / i18n:tz >

    < / i18n:international >

    < / SOAP - ENV:Header >

    < SOAP - ENV:Body >

    < type: assessment / response >

    < type: global instance >

    < typ:applicationClass type = "text" deducted = "false" >

    < typ:unknown - val / >

    < / typ:applicationClass >

    < / typ: global instance >

    < / typ: assess / answer >

    < / SOAP - ENV:Body >

    < / SOAP - ENV:Envelope >

    Thank you

    It's very strange sound. It might be a problem caused by unnecessary attributes sent in the query. Try the following (generic example application).

    http://schemas.xmlsoap.org/SOAP/envelope/"xmlns:typ ="http://oracle.com/determinations/server/10.4/rulebase/assess/types">."

    A

    This application is the most correct for the following reasons:

    • You should not set the attributes type and deducted . These attributes are usually returned in the response and cannot be defined by the application.
    • You should not set the style of the result of an attribute that you provide the value of. It must always be returned in the response.

    That said, these points do not explain why the applicationClass value is returned as unknown. Perhaps the additional attributes in the query is triggering some bad server behavior of determinations which is the cause not to define the attribute.

    This regulation, if any, that you have associated with modules? You have any customization of the server determination or modules?

  • The implementation of RunProgramInGuest of VIX using the vSphere Web Services SDK?

    Hello

    A few months ago I developed a python API for VIX, but as I needed to extend the functionality of this API (performance monitoring, host management, etc.) I moved the vSphere Web Services SDK.

    However, I did find a way to implement some comments VIX as LoginInGuest or RunProgramInGuest functions using only the Web Services SDK.

    Is there a way to do this? I thought that each function VIX has been translated internally to a soap request, but now I think that is not the case for these functions of comments, if so, how VIX inwardly does them?

    Thanks for your help!

    Sebastian Tello

    Currently, if you must implement specific comments operations running a specific script/application or by connecting to a guest, you must use the VIX API. This feature is not currently exposed in the vSphere API, you will need to use a combination of both, until VMware them integrates in the vSphere API core. For more details on the future of VIX, take a look at this blog post - http://www.virtuallyghetto.com/2010/11/what-is-vmware-vix-api-and-its-future.html

  • Connect to the HTTPS web service

    When you try to build the secure web service partner link (URL starts with https://...) I got an error about the lack of certificate? How to provide the cert file < I have a good, but do not know how to enter Web Logic server.

    http://download.Oracle.com/docs/CD/E12840_01/WLS/docs103/secmanage/identity_trust.html

  • the RESTful web service and database NoSql.

    I configured a database version Oracle NoSQL 3.0.5.

    I wrote the below 12 c JDev RestFul web service.

    the Rest works well, but when running query (GET) it returns the following error.

    I don't know how to correct it. Need help

    package store;

    import com.hp.hpl.jena.query.Query;
    import com.hp.hpl.jena.query.QueryExecution;
    import com.hp.hpl.jena.query.QueryExecutionFactory;
    import com.hp.hpl.jena.query.QueryFactory;
    import com.hp.hpl.jena.query.ResultSet;
    import com.hp.hpl.jena.query.ResultSetFormatter;
    import com.hp.hpl.jena.query.Syntax;
    import com.hp.hpl.jena.rdf.model.Model;

    Import javax.ws.rs.GET;
    Import javax.ws.rs.Path;
    Import javax.ws.rs.Produces;

    Import oracle.kv.impl.api.ops.Get;

    Import oracle.rdf.kv.client.jena.OracleModelNoSql;
    Import oracle.rdf.kv.client.jena.OracleNoSqlConnection;

    @Path ("store")
    public class StoreResourceHandle {}
    public StoreResourceHandle() {}
    Super();
    }

    public static String queryStoreNoSQL() {}
    String StoreName = "semep;
    String HostName = 'localhost ';
    String HostPort = "5000";
    String szModelName = "http://example.org/Captation";
    String ModelName = "http://Repository";
    OracleNoSqlConnection conn = OracleNoSqlConnection.createInstance (StoreName, HostPort, HostName);
    Model = OracleModelNoSql.createOracleModelNoSql (ModelName, conn);

    String szQuery = "SELECT? s? p? o\n +.
    "where {\n" +
    "  { ?s  ?p  ?o}\n" +
    "}";


    System.out.println ("Execute query" + szQuery);

    Query query = QueryFactory.create (szQuery, Syntax.syntaxARQ);
    QueryExecution qexec = QueryExecutionFactory.create (query, model);
    ResultSet results = qexec.execSelect ();
    String textResults = ResultSetFormatter.asText (results);

    qexec. Close();
    Model.Close ();
    Conn.Dispose ();
    Return textResults;
    }


    @GET
    @Produces("text/plain")
    public String getStoreQuery() {}
    String result = StoreResourceHandle.queryStoreNoSQL ();
    System.out.println ("result");
    return the result;
    }

    }

    [Running the application on IntegratedWebLogicServer StoreResource...]
    [21: 45:44] StoreWebApp.war of Module Web recognized in the project Store.jpr
    [Another instance of the storeresource application is running on the server.  JDeveloper redeploy the application.]
    [21: 45:44]-deployment began.  ----
    [21: 45:44] the target platform's (Weblogic 12.x).
    [21: 45:44] recovery of the existing application information
    [21: 45:44] analysis of the dependence running...
    [21: 45:44] deployment 2 profiles...
    [21: 45:44] wrote on the Web for C:\Users\memus\AppData\Roaming\JDeveloper\system12.1.2.0.40.66.68\o.j2ee\drs\StoreResource\StoreWebApp.war application Module
    [21: 45:44] wrote the Module Enterprise Application to C:\Users\memus\AppData\Roaming\JDeveloper\system12.1.2.0.40.66.68\o.j2ee\drs\StoreResource
    [21: 45:44] application is not transferred
    [21: 45:44] the constriction of context following URLS have been defined and can be used as a starting point for testing your application:
    [21: 45:44] http://localhost:7101 / StoreResource-store-context-root
    [21: 45:44] time to deployment: 1 second
    [21: 45:44]-deployment is complete.  ----
    Run start time: 554 ms.
    [Application running on IntegratedWebLogicServer StoreResource]

    Target application w- http://localhost:7101/StoreResource-Store-context-root/resources/application.wadl

    Target URL - http://localhost:7101 / StoreResource-store-context-root/resources/store
    < 25 may 2014 21: 45 CEST > < error > < com.sun.jersey.spi.container.ContainerResponse > < BEA-000000 > < exception contained in MappableContainerException could not be mapped to a response, re - throw to the HTTP container
    java.lang.NoClassDefFoundError: oracle/rdf/kv/customer/jena/OracleNoSqlConnection
    to the store. StoreResourceHandle.queryStoreNoSQL (StoreResourceHandle.java:41)
    to the store. StoreResourceHandle.getStoreQuery (StoreResourceHandle.java:68)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    Truncated. check the log file full stacktrace
    >
    < 25 may 2014 21: 45 CEST > < error > < HTTP > < BEA-101017 > < [ServletContext@10446167[app:StoreResource module: StoreResource-store-context-spec: null, path root-version: 3.0], request: [ weblogic.servlet.internal.ServletRequestImpl@1e35577
    GET StoreResource-Store-context-root/resources/store HTTP/1.1
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10: 00
    Accept: text/plain
    X HTTPAnalyzer-Rules: 1@localhost:8099

    Root cause]] of ServletException.
    java.lang.NoClassDefFoundError: oracle/rdf/kv/customer/jena/OracleNoSqlConnection
    to the store. StoreResourceHandle.queryStoreNoSQL (StoreResourceHandle.java:41)
    to the store. StoreResourceHandle.getStoreQuery (StoreResourceHandle.java:68)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    Truncated. check the log file full stacktrace
    >
    < 25 may 2014 21: 45 CEST > < opinion > < Diagnostics > < BEA-320068 > < Watch "UncheckedException" in the module "Module-FMWDFW" with severity "Notice" on the server "DefaultServer" triggered on 25 may 2014 21: 45 CEST. Details of the notification:
    WatchRuleType: Journal
    WatchRule: (SEVERITY = "Error") AND ((MSGID = ' WL-101020') OR (MSGID = "WL-101017'") OR (MSGID = "WL-000802'") OR (MSGID = "BEA-101020'") OR (MSGID = "BEA-101017'") OR (MSGID = "BEA-000802'"))
    WatchData: DATE = may 25, 2014 21: 45 CEST SERVER = DefaultServer MESSAGE = [ServletContext@10446167[app:StoreResource module: StoreResource-store-context-spec: null, path root-version: 3.0], request: [ weblogic.servlet.internal.ServletRequestImpl@1e35577
    GET StoreResource-Store-context-root/resources/store HTTP/1.1
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10: 00
    Accept: text/plain
    X HTTPAnalyzer-Rules: 1@localhost:8099

    Root cause]] of ServletException.
    java.lang.NoClassDefFoundError: oracle/rdf/kv/customer/jena/OracleNoSqlConnection
    to the store. StoreResourceHandle.queryStoreNoSQL (StoreResourceHandle.java:41)
    to the store. StoreResourceHandle.getStoreQuery (StoreResourceHandle.java:68)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    to com.sun.jersey.spi.container.JavaMethodInvokerFactory$ 1.invoke(JavaMethodInvokerFactory.java:60)
    to com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ TypeOutInvoker._dispatch (AbstractResourceMethodDispatchProvider.java:185)
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
    at weblogic.jaxrs.server.portable.servlet.ServletContainer.service(ServletContainer.java:218)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.j2ee.ws.server.jaxrs.TenantServletFilter.doFilter(TenantServletFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3367)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3333)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:254)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
    Subsystem = HTTP USERID < WLS Kernel > = SEVERITY = error THREAD = ExecuteThread [ASSET]: '1' for the queue: MSGID "(self-adjusting) weblogic.kernel.Default" = BEA - 101017 MACHINE = mustapha TXID = the CONTEXTID = 6a226c0c-6115-47df-833a-8465cd21cc68-0000002f TIMESTAMP = 1401047153802
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    < 25 may 2014 21: 46 CEST > < emergency > < oracle.dfw.incident > < BEA-000000 > < 65 incident created with the key to problem "DFW-99998 [java.lang.NoClassDefFoundError] [oracle.j2ee.ws.server.jaxrs.TenantServletFilter.doFilter] [StoreResource]" >

    Hi MEMU,.

    I have it. And he has deployed in the built-in container. It works very well. Note that I did the following.

    (1) change the project properties,

    In the libraries and Classpath, I need to add in Classpath entries associated Jena libraries, slf4j, sdordfnosqlclient.jar, kvclient.jar etc.

    (2) use the xercesImpl - 2.9.1.jar instead of xercesImpl - 2.10.0.  Jdev 12 c appears to use an older version of xerces as bundles of Jena.

    Once done the configurations above, I can execute your project without changing Java code.

    Here is the result:

    [14: 34:08] wrote the Web application Module for /home/alwu/.jdeveloper/system12.1.2.0.40.66.68/o.j2ee/drs/UniversalSparqlQuery/queryWebApp.war

    [14: 34:09] wrote the Module Enterprise Application to /home/alwu/.jdeveloper/system12.1.2.0.40.66.68/o.j2ee/drs/UniversalSparqlQuery

    [14: 34:09] Application deployment...

    [14: 34:15] Application deployed successfully.

    [14: 34:15] the constriction of context following URLS have been defined and can be used as a starting point for testing your application:

    [14: 34:15] http://192.168.1.1:7101 / UniversalSparqlQuery-application-context-root

    [14: 34:16] for deployment time: 9 seconds

    [14: 34:16]-deployment is complete.  ----

    Run start time: 9573 ms.

    [Application running on IntegratedWebLogicServer UniversalSparqlQuery]

    Target application w- http://localhost:7101/UniversalSparqlQuery-query-context-root/resources/application.wadl

    Target URL - http://127.0.0.1:7101 / UniversalSparqlQuery-query context root/resources/query/select/home/store/port/model/application

    I went in a universal store

    I create the connection to: model

    Run the select query

    I leave the store: store

    I spent in-store universal semep

    I create the connection to: http://Repository

    Run select select? s? p? o where {? s? p? o}

    I leave the store: semep

    It will be useful,

    Zhe Wu

  • Download binary files with the RESTful web service = HTTP 500?

    I want to allow access to the photos (BLOBs) stored in the database via a RESTful APEX service.

    I have an API of PL/SQL existing based on wpg_docload.download_file works well when called directly on the URL (for example granted to APEX_PUBLIC_USER). I would like to re - use this API because it a lot of other things, including security and the cache.

    The code looks like:
    ===
    Photo of procedure (id number, v in varchar2) is
    l_blob blob.
    -- ...
    Start
    -security checks
    -extract the data in l_blob...
    -check if the document has been updated (304)
    -- ...
    owa_util.mime_header (l_mime_type, false);
    HTP.p ("Content-length: ' |") DBMS_LOB.GetLength (l_blob));
    HTP.p ("ETag:" | ") l_etag);
    HTP.p ('Cache-Control: public');
    owa_util.http_header_close;
    wpg_docload.download_file (l_blob);
    end;
    ===

    However, when I call this API with APEX 4.2.1 Restful WebService (the GET - PL/SQL source type resource manager) I get a "500 - internal server error" back to the listener of the APEX (2.0.0.354.17.08 - both running standalone or with Tomcat 7) - console log attached.

    A similar approach - APEX RESTful WebService API in PL/SQL call - works fine for the content of the STRING/CLOB. So it must be something to do with the wpg_docload.download_file

    No idea how to work around this bug/feature or a suggestion for an alternative approach will be appreciated.

    Jan

    -----

    February 28, 2013 21:39:03 oracle.dbtools.rt.web.WebErrorResponse internalError
    SEVERE: ORA-22922: non-existent LOB value

    java.io.IOException: ORA-22922: non-existent LOB value
    at oracle.jdbc.driver.OracleBlobInputStream.needBytes(OracleBlobInputStream.java:204)
    at oracle.jdbc.driver.OracleBufferedStream.readInternal(OracleBufferedStream.java:169)
    at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java:143)
    at java.io.FilterInputStream.read (unknown Source)
    to java.nio.channels.Channels$ ReadableByteChannelImpl.read (unknown Source)
    at oracle.dbtools.common.util.StreamCopy.drain(StreamCopy.java:75)
    at oracle.dbtools.common.util.StreamCopy.drain(StreamCopy.java:52)
    at oracle.dbtools.rt.web.ServletResponses.sendResponse(ServletResponses.java:85)
    at oracle.dbtools.rt.web.ServletResponses.sendResponse(ServletResponses.java:130)
    at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:343)
    at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:125)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    to com.sun.grizzly.http.servlet.ServletAdapter$ FilterChainImpl.doFilter (ServletAdapter.java:1059)
    to com.sun.grizzly.http.servlet.ServletAdapter$ FilterChainImpl.invokeFilterChain (ServletAdapter.java:999)
    at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434)
    at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:65)
    at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    to com.sun.grizzly.util.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:532)
    to com.sun.grizzly.util.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:513)
    at java.lang.Thread.run (unknown Source)
    Caused by: java.sql.SQLException: ORA-22922: non-existent LOB value

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:382)
    at oracle.jdbc.driver.T4C8TTILob.processError(T4C8TTILob.java:792)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
    at oracle.jdbc.driver.T4C8TTILob.read(T4C8TTILob.java:146)
    at oracle.jdbc.driver.T4CConnection.getBytes(T4CConnection.java:2435)
    at oracle.sql.BLOB.getBytes(BLOB.java:348)
    at oracle.jdbc.driver.OracleBlobInputStream.needBytes(OracleBlobInputStream.java:181)
    ... more than 33

    Hi Pat,

    problem with the "media resource" has been resolved for APEX listener 2.0.1

    See Re: error APEX listener 2.0.1 Standalone CLOB

    Jan

  • Could not get the native web service response to Oracle using a PL/SQL &lt; Message &gt; function &lt;! [CDATA [component "WS_CALC" must be said]] &gt; &lt; / Message &gt;

    Hi, we have a problem with oracle native web service access using a PL/SQL function. We are running out of ideas how to solve the problem. Someone would be so nice to take a look at our case. Thank you much in advance. Best regards, Smiljana

    CREATE TABLE for_web_info (some_hello_text VARCHAR2 (150), when_inserted DATE, we_are_from VARCHAR2 (30));

    INSERT INTO for_web_info VALUES ('HI everyone :-) ', SYSDATE, 'Ljubljana, Slovenia');

    CREATE OR REPLACE

    PACKAGE ws_calc AUTHID CURRENT_USER AS

    FUNCTION CalcProduct (a NUMBER by DEFAULT 1,

    b in on NUMBER,

    g NUMBER of OUTPUT)

    RETURN NUMBER;

    END ws_calc;

    /

    CREATE OR REPLACE

    PACKAGE ws_calc AS BODY

    FUNCTION CalcProduct (a NUMBER by DEFAULT 1,

    b in on NUMBER,

    g NUMBER of OUTPUT)

    RETURN NUMBER IS

    product NUMBER;

    BEGIN

    SELECT SUM (1) IN the for_web_info OF g;

    product: = a * b;

    RETURN any product;

    END;

    END;

    /

    Our two DBA done all the steps described in the manual Oracle® XML DB's Guide Developer, 11 g Release 2 (11.2), E23094-04, February 2014, section using Oracle DB native XML Web Services.

    Access us two wsdl with browser without problem and get two of them. We also receive web serivce response which databese of query table.

    http://our_db:8080 / orawsv? WSDL

    http://our_db:8080 / orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT? WSDL

    ---------------

    | First WSDL.

    ---------------

    <? XML version = "1.0"? >

    " < name definitions = targetNamespace"orawsv"=" http://xmlns.Oracle.com/orawsv "" "

    " xmlns =" http://schemas.xmlsoap.org/wsdl/ "

    ' xmlns:tns = ' http://xmlns.Oracle.com/orawsv "" "

    ' xmlns:soap = ' http://schemas.xmlsoap.org/WSDL/SOAP/ "

    " container = ' http://www.w3.org/2001/XMLSchema "

    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    " xsi: schemaLocation =" http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/"> ".

    < types >

    < xsd: Schema

    " targetNamespace = ' http://xmlns.Oracle.com/orawsv "" "

    elementFormDefault = "qualified" >

    < xsd: element name = "query" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "DDL_text" type = "xsd: String".

    minOccurs = "0" maxOccurs = "unbounded" / >

    < xsd: element name = 'query_text' >

    < xsd: complexType >

    < xsd:simpleContent >

    < xsd:extension base = "XSD: String" >

    < xsd: attribute name = "type" >

    < xsd:simpleType >

    < xsd:restriction base = "xsd:NMTOKEN" >

    < value xsd: Enumeration = "SQL" / >

    < value xsd: Enumeration = "XQUERY" / >

    < / xsd:restriction >

    < / xsd:simpleType >

    < / xsd: attribute >

    < / xsd:extension >

    < / xsd:simpleContent >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: Choice minOccurs = "0" maxOccurs = "unbounded" >

    < xsd: element name = "bind" >

    < xsd: complexType >

    < xsd:simpleContent >

    < xsd:extension base = "XSD: String" >

    < xsd: attribute name = "name" type = "xsd: String" / >

    < / xsd:extension >

    < / xsd:simpleContent >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: element name = "bindXML" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: all / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Choice >

    < xsd: element name = "null_handling" minOccurs = "0" >

    < xsd:simpleType >

    < xsd:restriction base = "xsd:NMTOKEN" >

    < value xsd: Enumeration = "DROP_NULLS" / >

    < value xsd: Enumeration = "NULL_ATTR" / >

    < value xsd: Enumeration = "EMPTY_TAG" / >

    < / xsd:restriction >

    < / xsd:simpleType >

    < / xsd: element >

    < xsd: element name = "max_rows" type = "positiveInteger" minOccurs = "0" / >

    < xsd: element name = "skip_rows" type = "positiveInteger" minOccurs = "0" / >

    < xsd: element name = "pretty_print" type = "xsd: Boolean" minOccurs = "0" / >

    < xsd: element name = "indentation_width" type = "positiveInteger" minOccurs = "0" / >

    < xsd: element name = "rowset_tag" type = "xsd: String" minOccurs = "0" / >

    < xsd: element name = "row_tag" type = "xsd: String" minOccurs = "0" / >

    < xsd: element name = "item_tags_for_coll" type = "xsd: Boolean" minOccurs = "0" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: element name = "queryOut" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: all / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Schema >

    < / types >

    < name of message = "QueryInput" >

    < name of part = element "body" = "tns:query" / >

    < / message >

    < name of the message 'XMLOutput' = >

    < name of part = element "body" = "tns:queryOut" / >

    < / message >

    < portType name = "ORAWSVPortType" >

    < operation name = "XMLFromQuery" >

    < input message = "tns:QueryInput" / >

    < output message = "tns:XMLOutput" / >

    < / operation >

    < / portType >

    < connection name = "ORAWSVBinding" type = "tns:ORAWSVPortType" >

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

    < operation name = "XMLFromQuery" >

    " < soap: operation soapAction = ' http://our_db:8080 / orawsv "/>

    < input >

    < use of soap: body = "literal" / >

    < / Entry >

    < output >

    < use of soap: body = "literal" / >

    < / output >

    < / operation >

    < / binding >

    < service name = "ORAWSVService" >

    < documentation > Oracle Web Service < / documentation >

    < name of port = "ORAWSVPort" binding = "tns:ORAWSVBinding" >

    " < soap: address location = ' http://our_db:8080 / orawsv "/>

    < / port >

    < / service >

    < / definitions >

    ----------------

    | Second WSDL.

    ----------------

    <? XML version = "1.0"? >

    < name of definitions = "CALCPRODUCT."

    " targetNamespace = ' http://xmlns.Oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "" "

    " xmlns =" http://schemas.xmlsoap.org/wsdl/ "

    ' xmlns:tns = ' http://xmlns.Oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "" "

    " container = ' http://www.w3.org/2001/XMLSchema "

    ' xmlns:soap = ' http://schemas.xmlsoap.org/WSDL/SOAP/ ">

    < types >

    " < xsd: Schema targetNamespace = ' http://xmlns.Oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "" "

    elementFormDefault = "qualified" >

    < xsd: element name = "SNUMBER-CALCPRODUCTInput" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "G-NUMBER-OUT" >

    < xsd: complexType / >

    < / xsd: element >

    < xsd: element name = "B-NUMBER-INOUT" type = "xsd: double" / >

    < xsd: element name = "A-NUMBER-IN" minOccurs = "0" maxOccurs = "1" type = "xsd: double" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: element name = "CALCPRODUCTOutput" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "RETURN" type = "xsd: double" / >

    < xsd: element name = "G" type = "xsd: double" / >

    < xsd: element name = "B" type = "xsd: double" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Schema >

    < / types >

    < name of message = "CALCPRODUCTInputMessage" >

    < name of part = "parameters" element = "tns:SNUMBER - CALCPRODUCTInput" / >

    < / message >

    < name of message = "CALCPRODUCTOutputMessage" >

    < name of part = "parameters" element = "tns:CALCPRODUCTOutput" / >

    < / message >

    < portType name = "CALCPRODUCTPortType" >

    < operation name = "CALCPRODUCT" >

    < input message = "tns:CALCPRODUCTInputMessage" / >

    < output message = "tns:CALCPRODUCTOutputMessage" / >

    < / operation >

    < / portType >

    < connection name = "CALCPRODUCTBinding".

    Type = "tns:CALCPRODUCTPortType" >

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

    < operation name = "CALCPRODUCT" >

    < soap: operation

    soapAction = "CALCPRODUCT" / >

    < input >

    < soap body parts: = 'settings' use = "literal" / >

    < / Entry >

    < output >

    < soap body parts: = 'settings' use = "literal" / >

    < / output >

    < / operation >

    < / binding >

    < service name = "CALCPRODUCTService" >

    < documentation > Oracle Web Service < / documentation >

    < name of port = "CALCPRODUCTPort" binding = "tns:CALCPRODUCTBinding" >

    < address soap:

    " location = ' http://our_db:8080 / orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "/>

    < / port >

    < / service >

    < / definitions >

    -----------------

    | SQL Developer |

    -----------------

    SET serveroutput ON

    -------------

    | First WS.

    -------------

    DECLARE

    V_SOAP_REQUEST XMLTYPE: = XMLTYPE (' <? xml version = "1.0"? > < env:Envelope xmlns:env = "http://www.w3.org/2002/06/soap-envelope " > < env:Body > < query xmlns = "http://xmlns.oracle.com/orawsv" > < type of the argument texte_requete = "SQL" > <!) ([CDATA [SELECT * FROM for_web_info WHERE the INSTR (UPPER (we_are_from),: e) > 0]] > < / query_text > < link name 'e' = > SLOVENIA < / bind > < false pretty_print > < / pretty_print > < / query > < / env:Body > < / env:Envelope > ');

    V_SOAP_REQUEST_TEXT CLOB: = V_SOAP_REQUEST.getClobVal ();

    V_REQUEST UTL_HTTP. REQ;

    V_RESPONSE UTL_HTTP. RESP;

    V_BUFFER VARCHAR2 (1024);

    URL VARCHAR2 (4000): = ' http://our_db:8080 / orawsv ';

    BEGIN

    V_REQUEST: = UTL_HTTP. BEGIN_REQUEST (URL = > URL, METHOD = > 'POST');

    UTL_HTTP. SET_AUTHENTICATION (R = > V_REQUEST, username = > 'OUR_U', PASSWORD = > 'OUR_P'); -not case-sensitive

    V_REQUEST. METHOD: = 'POST';

    UTL_HTTP. SET_HEADER (R = > V_REQUEST, NAME = > 'Content-Length', VALUE = > DBMS_LOB.) GETLENGTH (V_SOAP_REQUEST_TEXT));

    UTL_HTTP. WRITE_TEXT (R = > V_REQUEST, DATA = > V_SOAP_REQUEST_TEXT);

    V_RESPONSE: = UTL_HTTP. GET_RESPONSE (V_REQUEST);

    LOOP

    UTL_HTTP. READ_LINE (V_RESPONSE, V_BUFFER, TRUE);

    DBMS_OUTPUT. PUT_LINE (V_BUFFER);

    END LOOP;

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    EXCEPTION

    WHEN UTL_HTTP. END_OF_BODY THEN

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    END;

    anonymous block filled

    " <? xml version ="1.0"? > < envelope soap: xmlns:soap = ' http://www.w3.org/2002/06/SOAP-envelope ' > < soap: Body > < queryOut xmlns = " http://xmlns.Oracle.com/orawsv "> "

    < set of LINES > < ROW > < SOME_HELLO_TEXT > HI everybody :-) < / SOME_HELLO_TEXT > < WHEN_INSERTED > 03.10.14 < / WHEN_INSERTED > < WE_ARE_FROM > Ljubljana, Slovenia < / WE_ARE_FROM > < / ROW > < / rowset > < / queryOut > < / soap: Body > < / envelope soap: >

    --------------

    | Second WS.

    --------------

    DECLARE

    V_SOAP_REQUEST XMLTYPE: = XMLTYPE ("<?") XML version = "1.0"? > < soap envelope: xmlns:soap = "http://www.w3.org/2002/06/soap-envelope" > < soap: Body > < xmlns SNUMBER-CALCPRODUCTInput = ""http://xmlns.oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT"(> < A-NUMBER-IN > 2 < / A-NUMBER-IN > < B-NUMBER-INOUT > 3 < / B-NUMBER-INOUT > < R-NUMBER-OUT / > < / SNUMBER-CALCPRODUCTInput > < / soap: Body > < / SOAP: envelope > '); "

    V_SOAP_REQUEST_TEXT CLOB: = V_SOAP_REQUEST.getClobVal ();

    V_REQUEST UTL_HTTP. REQ;

    V_RESPONSE UTL_HTTP. RESP;

    V_BUFFER VARCHAR2 (1024);

    URL VARCHAR2 (4000): = ' http://our_db:8080 / orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT ';

    BEGIN

    V_REQUEST: = UTL_HTTP. BEGIN_REQUEST (URL = > URL, METHOD = > 'POST');

    UTL_HTTP. SET_AUTHENTICATION (R = > V_REQUEST, username = > 'OUR_U', PASSWORD = > 'OUR_P'); -not case-sensitive

    V_REQUEST. METHOD: = 'POST';

    UTL_HTTP. SET_HEADER (R = > V_REQUEST, NAME = > 'Content-Length', VALUE = > DBMS_LOB.) GETLENGTH (V_SOAP_REQUEST_TEXT));

    UTL_HTTP. WRITE_TEXT (R = > V_REQUEST, DATA = > V_SOAP_REQUEST_TEXT);

    V_RESPONSE: = UTL_HTTP. GET_RESPONSE (V_REQUEST);

    LOOP

    UTL_HTTP. READ_LINE (V_RESPONSE, V_BUFFER, TRUE);

    DBMS_OUTPUT. PUT_LINE (V_BUFFER);

    END LOOP;

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    EXCEPTION

    WHEN UTL_HTTP. END_OF_BODY THEN

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    END;

    anonymous block filled

    <? XML version = "1.0"? >

    " < envelope soap: xmlns:soap = ' http://www.w3.org/2002/06/SOAP-envelope/ ">

    < soap: Body >

    < soap: Fault >

    < Code: soap >

    < soap: value > SOAP: sender < / SOAP: value >

    < / Code: soap >

    entry processing < soap: reason > error < / SOAP: reason >

    < soap: detail >

    " < OracleErrors xmlns =" http://xmlns.Oracle.com/orawsv/faults "> "

    So OracleError >

    < ErrorNumber > ORA-19202 < / ErrorNumber >

    < message > <! [CDATA [error has occurred in the processing of XML]] > < / Message >

    < / OracleError >

    So OracleError >

    < ErrorNumber > ORA-06550 < / ErrorNumber >

    < message > <! [CDATA [line 1, column 24:]] > < / Message >

    < / OracleError >

    So OracleError >

    < ErrorNumber > PLS-00302 < / ErrorNumber >

    < message > <! [CDATA [component "WS_CALC" must be said]] > < / Message >

    < / OracleError >

    So OracleError >

    < ErrorNumber > ORA-06550 < / ErrorNumber >

    < message > <! [CDATA [line 1, column 7:]]

    [[PL/SQL: statement ignored]] > < / Message >

    < / OracleError >

    < / OracleErrors >

    < / Details: soap >

    < / soap fault: >

    < / soap: Body >

    < / envelope soap: >

    With reference APEX web service, the response is exactly the same and apex_web_service.make_request also work.

    Thanks again.

    The SOAP request is not correct.

    must be:

    So again, it does not solve the problem:

    -Which user you are using to authenticate on the other side?

    If it's another user the owner of the package, then of course you must grant the execute privilege appropriate to this user (and possibly one explicit SELECT on the table referenced too privilege).

  • Basic authentication with the RESTful WEb service and a Web Service reference

    Hi all

    We have made significant progress on getting an application to work with RESTful web services, but are now trying to understand how to lock a RESTful Web service while making it available for a particular application.

    We use one of the 'emp' table sample web services come with Apex 4.2 and are trying to apply the Basic Auth to the WEb Service using Weblogic filter defined in the web.xml file. Which works very well. I now get challenged when I try to go to:

    https://wlogic.edu/Apex/BNR/ACE/HR/empinfo/

    And when I authenticate this challenge, I am able to get the data. (we are usiing the Weblogic-level LDAP authentication)

    However, I'm not sure how to get even basic authentication to work with Web Service reference in my application. I see the error message in the application when I try to call this Web Service:

    401 Unauthorized <

    And I see:
    "The request requires user authentication. It MUST contain a header field WWW-Authenticate (section 14.46) containing a fault that is applicable to the requested resource. The client MAY repeat the request with a suitable authorization (section 14.8) header field. If the request already includes identification of the authorization information»

    How can I provide the credentials in the Web reference or provide credentials in the Application?
    Web service works fine if I remove the auth basic RESTful web service in the Web.xml file.

    We should NOT use basic auth and auth Weblogic web service definition basic RESTful Workspace use instead. If so, how would we implement THIS basic authentication in the definition of Web Service and the Web SErvice reference on the application?

    Thank you
    Pat

    Hello Scott,

    Thank you. There is a function for rest in the package:

    function make_rest_request(
    --
    -- This function invokes a RESTful Web service with the supplied name value pairs, body clob, or body blob
    -- the response as an clob.
    --
    -- Arguments:
    --   p_url                  The url endpoint of the Web service
    --   p_http_method          The HTTP Method to use, PUT, POST, GET, HEAD or DELETE
    --   p_username             The username if basic authentication is required for this service
    --   p_password             The password if basic authentication is required for this service
    --   p_proxy_override       The proxy to use for the request
    --   p_body                 The HTTP payload to be sent as clob
    --   p_body_blob            The HTTP payload to be sent as binary blob (ex., posting a file)
    --   p_parm_name            The name of the parameters to be used in name/value pairs
    --   p_parm_value           The value of the paramters to be used in name/value pairs
    --   p_wallet_path          The filesystem path to a wallet if request is https
    --                          ex., file:/usr/home/oracle/WALLETS
    --   p_wallet_pwd           The password to access the wallet
    --
        p_url               in varchar2,
        p_http_method       in varchar2,
        p_username          in varchar2 default null,
        p_password          in varchar2 default null,
        p_proxy_override    in varchar2 default null,
        p_transfer_timeout  in number default 180,
        p_body              in clob default empty_clob(),
        p_body_blob         in blob default empty_blob(),
        p_parm_name         in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_parm_value        in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_wallet_path       in varchar2 default null,
        p_wallet_pwd        in varchar2 default null ) return clob;
    

    My point was that using the API makes things easier if you have to look for a solution.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Geocoding an address using the Google web service

    Hello

    Is it possible to access Google geocoding web service from an Oracle procedure? If Yes, then can you please give an example?
    I want to provide an address that is not formatted as an input parameter and get the coordinates, if the address is valid.

    Thank you
    M.R.

    Hello M.R.,.

    Yes, it is possible.

    Here is an example that I use myself:

     create or replace function getLatLon( p_address varchar2 ) return varchar2 is
        l_http_req  utl_http.req;
        l_http_resp utl_http.resp;
        l_response long;
        l_latlon long;  
    
        l_responsecode number;
        l_accuracy number;
    
        l_google_key varchar2(100 char) := 'Put_your_google_key_here';
    
      begin  
    
        l_http_req := utl_http.begin_request(
          url => 'http://maps.google.com/maps/geo' ||
                 '?q=' || utl_url.escape( url=> p_address, url_charset=> 'utf-8' ) ||  -- address to geocode
                 '&output=csv' ||                         -- simplest return type
                 '&gl=DE' ||                                 -- set this to your own country code
                 '&key=' || l_google_key              -- Google API site key
        );
    
        l_http_resp := utl_http.get_response( l_http_req );
        utl_http.read_text( l_http_resp, l_response );
        utl_http.end_response( l_http_resp );  
    
        l_latlon := substr( l_response, instr( l_response, ',', 1, 2 ) + 1 );  
    
        l_responsecode := substr(l_response,0,3);
        l_accuracy := substr(l_response,5,1);
    
        if l_responsecode = 200 and l_accuracy >= 8 then
          return l_latlon;
        else
          return l_latlon;
        end if;
    
      exception
        when others then return null;
      end getLatLon;
    

    This code uses the older v2 of the google api, so you still need a google api for that key. But it shouldn't be hard to change the code to use the new api v3.

    Hope this helps,
    Dirk

  • The truncated Web Service response

    In my AIR application built with Flex Builder 3, I am correctly call a web service and return a response. The response contains an object that contains data of fifty-four of a mixture of chain, fields of number and Boolean types. No string field is outrageously long. The entire frequency is 4.5 k. I look at this frequency item get filled in the debugger, I see valid data until about halfway through the object. Then for each field later, I see a bunch of NULL and NaN values for fields that have data. There is nothing wrong with the service or the configuration of my computer/OS, because I am able to call in other ways and capture valid responses.

    Are there any ideas on what could be going on here and how I could fix this? It is an essential element of functionality in a demonstration of our products to potential customers. Any help would be greatly appreciated. Thank you.

    Thank you all for your help. We have control over the server that exposes web services, so what I'll do is drop it is a servlet that handles the operation. I can spend the minimum data in the fields of URL parm to the servlet. It is a cleaner well based, and it avoids the marshaling of Flex bugs and mess of raw XML data manipulation.

Maybe you are looking for