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?

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 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

  • APEX 4.2.3 consume the web service returning a PDF problem

    Using APEX 4.2.3 on a database of Oracle 11 g R2, Firefox 31.7, we ask a service web restful one before the process of page header, to download a PDF Code file used:

    declare

    CLOB l_clob;

    l_blob blob.

    l_sql_delimiter varchar2 (30);

    l_lang_context integer: = DBMS_LOB. DEFAULT_LANG_CTX;

    l_warning integer: = DBMS_LOB. WARN_INCONVERTIBLE_CHAR;

    l_dest_offset integer: = 1;

    l_source_offset integer: = 1;

    l_Json VARCHAR2 (4000);

    Start

    l_clob: = null;

    DBMS_LOB.CREATETEMPORARY (l_blob, true);

    -Generate here the content of your file in l_clob.

    hr_Pkg.Security_Termination_Form(:P4200_PERSON_HR_ID,l_Json);

    hr_Pkg.call_rest_webservice (l_Json, 'TestME.Pdf', l_Clob);

    Logger.log ('CLOB SIZE IN PAGE: ' | sys.) DBMS_LOB. GetLength (l_clob));

    sys. HTP.init;

    sys.owa_util.mime_header (' application/pdf', FALSE, 'UTF-8');

    sys. HTP.p ("Content-length: ' |") sys.DBMS_LOB.GetLength (l_clob));

    sys. HTP.p ('Content-Disposition: attachment; filename = "TestME.Pdf" ');

    sys.owa_util.http_header_close;

    () DBMS_LOB.converttoblob

    dest_lob = > l_blob,

    src_clob = > l_clob,

    amount = > DBMS_LOB. LOBMAXSIZE,

    dest_offset = > l_dest_offset,

    offset = > l_source_offset,

    blob_csid = > DBMS_LOB. DEFAULT_CSID,

    lang_context = > l_lang_context,

    WARNING = > l_warning

    );

    Logger.log ("SIZE of BLOB: ' |") sys. DBMS_LOB. GetLength (l_blob));

    sys.wpg_docload.download_file (l_blob);

    apex_application.stop_apex_engine;

    exception when others then

    sys. HTP. PRN (' error: ' |) SQLERRM);

    apex_application.stop_apex_engine;

    end;

    We run in the question, that the PDF file is empty with the exception of a few fill-able fields that must be completed in advance by the call to the web service.

    When you run the web service directly from the browser, the PDF that is generated is very well and seems to be complete. And the size of the file that is created as the clob from the web service call is exactly the same size it as the pdf file received directly from the web service.

    When we compare the size of the clob to the size of the blob, we see that the blob is slightly larger in size than the clob.

    Any suggestions? (Sample code for posting to the hosted site for Oracle will not work because you can not call the hosted instance web services and web service is hosted BEHIND our firewall).

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

    Problem is resolved... As opposed to the use of the APEX apex_web_service.make_rest_request must use the utl_http.begin_request and then treats the query returned through utl_http. READ_RAW and who then saving it in a temporary BLOB.

    Maybe when we update to the APEX 5, I'll see if I can deal with it using standard APEX packages...

    Thank you

    Tony Miller
    Software LuvMuffin
    Salt Lake City, UT

  • Consume the RESTful web service - by passing the values of URL parameters

    Hello

    I'm working on a RESTful web service call. It works fine if I encode a URL in the format below (it is not the actual URL, just for your information):

    http://ws.webserviceproducer.com/KEYVALUE/FUNCTIONVALUE/COUNTRY/CP/champs

    where KEYVALUE is required by the Web service provider text

    FUNCTIONVALUE is again fixed and determines what the result is returned in the format

    COUNTRY is the code of the country, e.g. UK, so would need to be replaced by a variable

    Postcode is the postcode for example PO14 2JN or postal code and must be replaced by a variable

    field text is again fixed and is used to determine the output format.

    My question is simple how can I replace the two fields, COUNTRY and POSTAL code with variables of the elements of the apex.

    I tried using the headers HTTP REST and the REST of the settings entry but without any luck so far. I tried substitution of variables directly in the URL also without success.

    Thank you

    Chris

    Have you tried this APEX_WEB_SERVICE ?

  • DPS Web method returns a value even if the printer does not exist

    Hello

    I use the Print Services Web Services Document to print documents in AutoVue. If I pass the VueBeanWS.print printer on my network, it prints just as one would expect. But if I pass a printer not valid of the string returned by the method .print said also that he printed successfully. Is this expected behavior?

    FYI: I use c# .net 2.0.

    Thank you

    Robert

    No, if the name of the printer is invalid, you will receive an exception like this message:
    javax.xml.ws.soap.SOAPFaultException: java.lang.IllegalArgumentException: name of the printer «...» ' is not valid!

    However, if you do not set any printer name in the call, then the default printer will be used.

  • Unable to return objects from the Java web service

    Hi all

    I'm new to flex and I'm trying to consume an object (containing a string and int) of the web service. I read the post here but could not solve the problem. I set the resultFormat = "e4x" (tried with object as well but could operate either)

    In which case it's important... I use axis2 and jboss5.0 to deploy the service and using flex 3.

    Any help pointers will be highly appreciated.

    My code flex and my java web service code is attached. So although I m debugging, I'm not able to see the object that I'll be back in the variable _xml, nor in the res.result.

    Thank you much for the help.


    I managed to solve the problem and blog it. http://myflexblog.blogspot.com/2008/07/Flex-and-Java-Web-services.html

  • Catch the event Web Service Session Timeout

    Hi all

    I have a LV Web Service communicate to a web client (Chrome, IE, FF, etc.).  The user connects to the server and create a new session for him to help create Session VI.  One of the entrances to this function is a timeout value (default 60000ms).  The sessions behavior is such that if the user does not activate an application for web service (GET/POST/PUT/etc) within the time limit, then the session is automatically destroyed by the web service.  That's what I want, it's fantastic.

    My question is How can I detect when the session timeout happens? Another way to say, How can I detect when the user session is automatically destroyed?

    What I tried:

    • Of course, I can provide a "logout" link to the user calling ultimately "Destroy Session" VI, but I can't count on the user actually click this link (e.g. you really explicitly sign out of gmail or simply close your web browser?)
    • I thought that the only way to proceed would be to save the cookie of session ID returned by create Session VI and then query this ID to see if the session still exists (check if Session exists VI).  If the session does not exist, well, I know it has expired or the user manually destroyed it.  However, even if I save the cookie ID, I don't see where I can actually use it any where (especially not check if Session is VI). It just seems no value given to the range of sessions.

    Is this possible?

    Thank you

    Rory

    Sorry, Thomas, but that isn't going to work.  Think about it - you do not request a web service during the time-out period. You get ONLY a web service request when the client actually asked something.  The customer does not have during a timeout; It's just times out... so, there is no node on the block diagram to check because there is no block diagram... get it?

    No worries, however, I found the solution [read: workaround], even if the LV can do it (from 2013sp1).

    The best way to detect if a user session times out / out times would be for LV to this exhibit as an event in the web service. The following approach would be for LV accepts a cookie as an entry ID and then provides information on this session (i.e. the session exists).  I have a smell of two feature requests...

    But because BT cannot do these things (or not exposed to the developer), you will need to get creative on the client side.  Since I'm on Javascript/jQuery/AJAX on my front end, then it is possible for me to detect when the customer leaves the page or close the browser.  It comes to $(window) .unload () in jQuery.  Then, I can take this event and an asynchronous AJAX command of fire to one of my web service VI that will eventually call the "destroy Session" VI.

    For more information see the site here:

    http://lavag.org/topic/18490-catch-session-timeout-events-in-LV-Web-service/

    Hope this helps someone.

  • [MAF - AMPA] How the custom/override error after the failure of the asynchronous Web service call?

    Hi Experts,

    I am looking for a best practice to make the error handling in the MAF.

    Currently my application is using AMPA and call the REST service.

    However, I would like to know how to handle this kind of error

    1. the device is not connected to the network (can we personalized it?)

    error2.png

    2. the device is connected to the network but cannot call service

    error1.png

    3 and the other exceptions of the asynchronous call to the AMPA

    In addition, how to mark a method call in the exception handler?

    referring to this http://multikoop.blogspot.com/2014/02/adf-handling-exceptions-from_14.html in ADF tf we mark as exception handler.

    Best regards

    Hendry

    Hendry,

    You have several options. It depends on how you want to handle exceptions:

    -If you just want to hide the mistakes of web service end-user call, you can set the showWebServiceInvocationErrors property in the persistence - mapping.xml to false (you want to generally this set to false, by putting your application in production, the default value is true, because during development, it is more convenient to directly see the errors of appeal WS)

    -If you want to display a custom error message, you can create a subclass of RestJSONPersistenceManager, register for this subclass using the property "remotePersistenceManager" in persistence - mapping.xml and override the handleInvokeRestServiceError method.

    It depends also how you want to process POST/PUT/DELETE requests that fail. Do you want the AMPA runtime register this request as pending for the runtime synchronization action automatically tries to return the claim later? Or you just want to display an error message to the end-user with a text like "try again later?

    Steven Davelaar,

    Oracle Mobile A-team.

  • 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).

Maybe you are looking for