relaxation, instead of web service

Hello. In my project, it is necessary to provide a service to the virtual post office or ATM account with our server.

For this need, they (Post Office, ATM) ask the web service method. Unfortunately, our legacy code does not provide it.

Instead of using the web service, we code using tips:

CREATE OR REPLACE TRIGGER trg_virtual
AFTER INSERT
ON 
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
    BEGIN
DBMS_SCHEDULER.CREATE_JOB (
                        JOB_ACTION           => 'BEGIN do_something_within5seconds; END;',
               START_DATE           => SYSTIMESTAMP+ ((V_NUM+1)/(24*60*60)),

Unfortunately, there is sometimes not saved transactions / miss. My question is: is that thing above agreement or not? Thank you in advance.

The best way to service Web. And writing web services very easy.

Here example ix for .net:

[WebMethod]

public XmlDocument MyMethod(string p_1, string p_2,...)

{

AppConn OracleConnection = new OracleConnection ("' connection string");

appConn.Open ();

OracleCommand cmd = new OracleCommand();

cmd connection group appConn;.

cmd.CommandType = CommandType.StoredProcedure;

BindByName. cmd = true;

cmd.CommandText = "myFunctionNameInDb";

Parameters.Add ("p_1", p_1) cmd;

Parameters.Add ("p_2", p_2) cmd;

...

OracleParameter out_parameter = new OracleParameter ("out_result", OracleDbType.Clob);

out_parameter. Direction = ParameterDirection.ReturnValue;

cmd. Parameters.Add (out_parameter);

cmd. ExecuteReader();

OracleClob clob is out_parameter (OracleClob). Value;

XmlDocument xmlDocument = new XmlDocument();

xmlDocument.LoadXml (clob. Value.ToString ());

return of xmlDocument;

}

----

Ramin Hashimzade

Tags: Database

Similar Questions

  • URL of the Web Service, LV2013 vs LV2012 length limits

    (* CROSS POST: http://lavag.org/topic/18435-web-service-url-length-limits-lv2013-vs-lv2012/ *)

    (* Please answer in this forum.  I scored the other thread for responses here. *)

    A that someone noticed a reduction in the limit on the length of the URL for the Web Services between the versions of LV 2012 and 2013?

    Under LV2012, a RESTful web service seems to accept URLS with lengths at least as long as 4096 characters.  With LV2013, the maximum length of URL seems to be 511 characters for RESTful web services as the project item. Unfortunately for me the project, I have converted just travel on this issue. My goal with posting this request here is my understanding of this limitation before deciding the best way to modify my code.  Certainly using POST instead of GET with a long URL is an option, but again, I am looking to understand the change in limitation before choosing a solution.

    To illustrate, I enclose three projects for the most part identical, demonstrating the issue.  In each case, the project contains a webservice consisting of a single VI, 'ComputeLength', which takes a string as an input parameter and that returns the length of the string.  The three projects are the following.

    1 LV2012 RESTful WebService.

    2 LV2013 RESTful WebService.

    3 LV2013 article project web service.

    The web service contains a single VI.  For the relaxing examples, the web service is started by selecting deploy menu of right-click Build specification.  For the example of project item, the web service is started by selecting start in right click menu position of work/WebService. The use of this example is shown with the following URL:

    (Note that the port is 8080 for both relaxing examples and 8001 for the project web service point if used in debug mode, which is the default value for the statement above.)

    http://localhost: 8080/webservice/computelength? string = 1234567890

    And the output looks like this.

    Workaround.  Apparently from 2013 of LV, there is a default limit of 512 to the length of the URL.  The default limit can be overridden as described below.

    Martin

    He is Brian in the technique of applications for National Instruments. I am following up about the 511 character limit in your Web Service HTTP request after the port number. After some research, I realized that the problem is related to a web site by default, the setting of the server called "LimitUri", which limits the maximum length of a URL. The default is 512 characters long that's why we are seeing this problem.

    There are several ways to modify the URL length limit depending on how you use your web service. If you publish the web service using the Application Web Server can change "C:\Program Files (x 86) \National WebServer\NIWebAppServer.conf" and add "LimitUri 4096" at the end of the file without the quotes.

    If you run the Debug Web server simply by clicking start on the web service, and then change "C:\Program Files (x 86) \National 2013\resource\webserver\niwsdebugserver.conf" and add "LimitUri 4096" at the end of the file without the quotes.

  • Why short use SOAP based instead of REST web services

    I have a very basic question about why short uses web services SOAP based instead of RESTING the REST is very light?

    Kumar,

    To a large extent, the choice of the web service protocol is orthogonal to how short Server communicates with Studio (aka short discovered Information).  EID has been designed as a set of tightly coupled of capabilites and we not usually expect users to develop a custom front-end that would require a knowledge of the workings of.

    Ryan S. - EID PM

  • CZ183A: Web Services

    1. My 127fw printer cannot connect to web services how to configure the router and IPv6

    I did some additional research and found that there is another alternative DNS address for LaserJet. Please try this instead:

    Preferred DNS address: 209.244.0.3
    Auxiliary DNS address: 209.244.0.4

    And, you may be able to disable IPv6 from the front panel of the printer, try this: go to configuration, network configuration, network, IPv6 Services and turn it off

    If it is not an option available from the front panel, go back to the built-in Web server and networking on the option in the left menu tab, uncheck the box for IPv6 one select apply settings.

    Please let me know if that solves the problem. Thank you.

  • deployment of web services on a remote computer

    Hello

    Which is the best way and quick to deploy Web services for user WEB interface Builder on a remote computer, where there is no development, but only LV runtime environment?

    (in the case that I have to frequently change the vi that I use to create Web service and deploy it to a remote computer)

    Is it necessary to create an installer with included WS? Is always necessary in LV2012 to use labview.ini and niwebserver.conf to the webservices to run on the remote computer, as it is written on the following knowledge about LV2009 book?

    http://digital.NI.com/public.nsf/allkb/62B9C2D5C91EE8B28625778800609FF2

    I noticed that there is in the folder:

    C:\ProgramData\National Instruments\WebServices\aws

    the webservice is deployed with the screws that are used to operate.

    Is not possible to copy only the VI in this folder when I modify the vi used by the Web service, instead of doing each time the program installation and the whole procedure on the knowledge that I linked above?

    Thank you very much

    Steven

    Hi Steven,

    The best way to install a Web Service on a remote computer is to use an installer.  The reason being that the Web Service will be compiled and the installer will place the screws have respected and associated configuration files in the right place. If you were to put a VI from the development environment in the folder of aws would not correctly.  Any process other than the installer is also considered not supported by OR.

  • VIX file in the user interface designer receives the data from the Web service application that communicates with the SQL server database

    I created the Web service VI ("Mt-insolacije.vi"), which has two terminals of the input string (FROM / TO) for the dates of arrival and exit of two data terminals (table 1 d) from database (MS SQL server). This VI communicates with the database with functions of the database with a DSN and SQL query appropriate palette. There are two tables with two data (time and Insolation) columns in the database.

    This VI works when you run in Labview 2010, but when I used it as VI in UI Builder it returns no data.

    Could you please help me find a solution. Is it possible to communicate with the SQL server database in this way or there is another way?

    There are two files attachmet: Image of .vix file in Interface builder and .vi file ("Mt-insolacije.vi")

    Please help me ASAP!

    Thank you

    Ivan

    I found the solution problem is in the DSN. I've been using the user instead of DSN system DSN.

    It's important to create the system DSN if you want your VI of web service to communicate with the database.

    PS Please put feature bundle format timestamp and XY graph in the web user interface designer. It's complicated to trace data with datetime on X axis without them.

  • Output table in XML format using web services

    I use Labview 8.6 web services to try and a list of power provides a database as XML output. When I table of wire into the Terminal and set the URL for the web services mappings will not build because he says it is an unsupported data type. Any help would be appreciated.

    A web service XML LabVIEW 8.6 supports several types of data. A table is not one of these.

    The best way to work around this limitation is to use a string instead of the indicator table indicator. The antiderivative of flatten it to XML allows you to convert your table to an XML string.

    Alternatively, you can choose your web service method to use the mode of stream instead of the Terminal mode. You can then use the VI of response write in the range of web services to control what to write to the client and when. This seems to be what you mean when you wrote "access to the exit.

    By passerby-tables can serve as exits in LabVIEW 2009 Terminal mode.

    Nathan

  • simple question of Web service

    I use a Web Service to publish data, and this question is, I am sure, from my limited knowledge and use of the web servers.

    I am able to set up a 'add' method, pass 2 numbers to the web server and the web server to return a value. Simple. But, I don't know what to do when I want to get the current value of something that is being updated in a loop.

    For example, let's say I have a VI as below and that the user wants to display the current iteration of the loop in their browser, not permanently, but only when they ask for it. I won't use this VI as the method to call. Instead, I would rather pass the current value of a designated only VI VI to return the value of the digital control to the Web server. But I have no idea how (or if) I can change the value of iteration to a method to be called. Does make sense?

    I thought by using session variables, but this requires constantly written to the session variable in my code, which is probably not a big deal, but it would be nice if she only questioned the current iteration when the user asked for it (kind of like 2 numbers are added only when requested by the user in the example of OR). I'm looking for a way to simply return the current value, only when requested by the user.

    You can do this, but things get a little complicated.  The web server is its own instance of the application, and I don't think you can (or wants to) have a VI running permanently inside.  When you compile an application with active web services, you get two instances of application - execution of the application, the other inside the web server.  I guess that your loop will run in the instance of the main application.  Put a global functional in it that stores the value all what you want to be questioned on the web and make sure you that VI accessible via the server of VI.  Then, in your web services VI, open a connection to the VI for that functional overall server and run, by reference, to get the value that are stored.

  • [COMICS] BlackBerry Web services - create e-mail profiles

    Hello world

    The web service provides a method to create profiles of e-mail for users. However, it is not possible to create a profile of electronic mail user which replaces the default values for the name of the account, email address, username and domain.

    The CreateUserEmailProfilesRequest of Web Services for the Administration of the BlackBerry Business Gets a list of the new e-mail profiles to create such specified by NewUserEmailProfile. The NewUserEmailProfile contains the user settings, the e-mail profile and the specific settings of the user account name, e-mail address, user name and domain. If these user specific settings are specified, they have no effect because there is no parameter to set the parameter "Placeholders Microsoft Active Directory" which is available at the BOTTOM. Without this parameter, the user by email always default profile values in Active Directory instead of using the parameters in the query.

    Request:

    "http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://ws.rim.com/enterprise/admin">
    
    
    
    
    en_US
    6.2.0.20
    0
    
    
    
    53
     
    
    2
     
     DEV-EX@test.com
     DEV-EX@test.com
     DEV-EX
    test.local
                
             
          
        
    Response:
    "http://schemas.xmlsoap.org/soap/envelope/">
       
       
          "http://ws.rim.com/enterprise/admin">
             
                2794992300
                ad0a8300-e425-4f4d-a773-e223786a91ce
             
             >
                SUCCESS
                
             
             
                0-53-2
                
                   SUCCESS
                   
                
             
          
        
    

    Result of the GetUserDetails for this user, after the execution of the request of CreateUserEmailProfiles:

    
    "http://schemas.xmlsoap.org/soap/envelope/">
       
       
          "http://ws.rim.com/enterprise/admin">
             
                1550463700
                c8171dce-ce85-4435-b44e-3f53fa7ae6c8
             
             
                SUCCESS
                
             
             
                53
                
                  SUCCESS
                   
                
                
                   53
                   ...                
                      0-53-2
                      0
                      2
                      DEV-EX@wrongdomain.com
                      DEV-EX@wrongdomain.com
                      DEV-EX
                      wrongdomain.local
                   
                   ...             
             
          
        
    

    And it seems that there is no possibility to change the Email profile later via Web services. Does anyone have a solution for adding a user without using the default settings of the mail profile or workaround?

    I just got confirmation that the ability to override the parameters of AD is not currently available through BWS, but it adds up to a future version.

  • Web service does not work via XMLhttprequest

    Good evening

    I have a problem with calling a web service from Javascript for my Web application work.  I believe it has something to do with the url of the web service, but could use help from anyone.  First turn off the Service works fine on my development computer (using Visual Studio to test via Javascript without an application Web works).

    -Windows XP SP2

    -ASP.Net Web service located on the local host.

    -Eclipse IDE for Java Developers (just downloaded today)

    Version: Helios Release

    Build id: 20100617-1415

    JavaScript code:

    Hello

    Managed to do work on my Simulator (beta2) call a webservice, I was running and debugging in Visual Studio 2010.

    You code looks similar to the most  - except:
       - haven't got the ActiveXObject code
       - I specify the MimeContent e.g. ('application/x-www-form-urlencoded')
         see sample code below ...
       - I set access permissions in config.xml
           e.g. :     
           e.g. :     
           e.g. :     http://mydomain.com" subdomains="true" />
    
       - also check xml.responseText which might be set instead of responseXML
          if your mimetypes aren't correct
    

    Sample call:

        var url = "http://localhost/TestWebService1/service.asmx/HelloWorld";
        xmlHttp.open('GET', url, true);
        xmlHttp.onreadystatechange = callbackFunction;
        xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
        xmlHttp.send(null);
    

    Reminder of the sample:

       function callbackFunction() {
           alert("callbackFunction enter");
    
           if (xmlHttp.readyState != 4)
               return;
    
           alert("callbackFunction response hdrs - " + xmlHttp.getAllResponseHeaders());
           alert("callbackFunction response text - " + xmlHttp.responseText);
           alert("callbackFunction response xml - " + xmlHttp.responseXML);
    
           // ....
           // ....
       }
    

    Hope that helps

    . H

  • Microsoft Active Directory Web Services - 2008 R2 edition

    Hello

    I'm updating the information for the employee on Active Directory (which is on the 2008 R2 version). My research on ADWS, I realized that there are some available in the version 2008 R2 of ADWS web services that are accessible to the public. But I have not any clear documentation confirm us. We try to access any account management Web service via http or soap

    NET. TCP: / /: 9389, ActiveDirectoryWebServices, Windows, AccountManagement

    via a browser after you connect to the host via the VPN network. But it does not work. What I feel is that this service must be hosted on a Web like IIS server for it to be accessible to the public via the Internet.  Like this instead of net.tcp

    http://: 9389, ActiveDirectoryWebServices, Windows, AccountManagement

    But the client side, host of this service indicates that it is hosted on IIS. Could someone please guide me if something is missing here?

    Thanks a bunch!

    SN06

    Hi SN06.
     
     
     
    The question you have posted is related to Windows Server 2008 R2, this is why I suggest you to contact the TechNet forums for help.
     
     
     
    It may be useful
  • Brand new Photosmart 7510 does not connect to Web Services

    Nice day! I am trying to solve a problem for a customer and I hope that someone can help you. I found a couple of other discussions with the people affected by this problem, but the solution did not help. My client has a Photosmart 7510 is all new and it made me get setup for him. The printer is configured, connected to its wireless network, the software is installed on his PC 3 and I can print of each of them. However, we are not able to activate the Services Web is a key reason that he bought the device.

    When we try to turn on Web Services, the printer successfully checks for an update (none are available) but then times out during the server communicating with Web Services... scene. I get the same result if I try to activate Web Services via the printer, thanks to its web Interface or via the installer driver on a PC. Depending on the Network Configuration Page, the printer is properly take an IP address (including DNS) from the router. I tried to set an IP through the web INTERFACE as well by changing the DNS servers 8.8.8.8 and 8.8.4.4 with no improvement. I tried power cycling router of my client and I also tried setting the parameters of encryption on the printer manually instead of using the automatic mode. All computers, my laptop and iPad can use Internet very well, but Web Services will not be activated on this printer.

    Is there any other suggestions that I can try? Is it possible that Web Services are just down right now? This particular unit is defective? My client bought this partially to access ePrint impression from his iPad, so it is essential we get active Web Services. If anyone can help, I would be very happy. Thank you!

    Hello PXAbstraction,

    The servers are being updates not scheduled at this time.  The best thing to do is to wait 1 to 2 hours at least and to 24 hours, then try again.  If this is not enough, let me know and I'll see what I can do.

  • Problems to change my url endpoint data control for Web Service design time vs deploy times. Where is the url of time to deploy the "deployment configuration" stored?

    https://blogs.Oracle.com/ADF/entry/changing_endpoint_url_for_a_web_service_data_control

    Using this link as a reference, I created a data control Web Service, and when I deploy via JDeveloper for different environments I can change my point of endpoint accordingly on this screen:

    Capture.PNG

    However when I change my point of termination at the design time, the changes do not appear in the screen "Configuration of the deployment. This would not normally be a problem, but our automated deployment (maven/ant) seems to keep picking up the url "Deployment Configuration" instead of what we change in the DataControl.dcx. So I have a few questions:

    1. Why is there a difference between what we have in the source code and what is shown on this ""Deployment Configuration "screen for manual deployment of JDeveloper? "

    2. where is this "Deployment Configuration" end point url located? I can change it during an automated deployment as I can on a manual deployment?

    3. What is the best practice to change a url endpoint to the Web Service data control with during an automated deployment?

    It turns out that the connections.xml had the url of the endpoint that the profile of the deployment and jdeveloper was referencing at deployment time.

    In order to get our automated generation work, we use a search and replace of Ant utility to change endpoint in this connections.xml before construction/deployment of the application.

  • Best practices for connecting to a database from a Web service

    I develop Web services that need to connect to an Oracle database. Currently, I connect to the database using jdbc as this class:

    con = DriverManager.getConnection (connectURL, "HR_DATA_READERS", "xxxxx").

    I do not like this approach because it hardcodes the connection string and account information. One of our colleagues has suggested that we use the properties file, but this leaves the user name and password in full view. Given that we can define jdbc dataources on the server of the SOA and the server offers all the nice features like pooled connection etc, is there a way to connect to the database using the data source defined the SOA rather than defining a connection server jdbc in the Web service itself? Is the best way to do it or is there still a way paste?

    Thank you

    Hi, Alix,.

    If you are JEE compatible environment. i.e. WLS 12 c, you can use resource injection approach, instead of manually coding the above proposed DS research.

    More information on injected resources and you will find here - http://docs.oracle.com/cd/E19226-01/820-7627/6nisfjmbl/index.html

    "For example, you can use this tutorial - Servlet JDBC DataSource resource Injection" Open tutorials

    Take a look at sections 5.3 and 5.4 only, which is what the code should look like and how to configure resource in the web.xml file.

    And always use finally to try to close the db connection, otherwise in the case of exceptions, as it is not returned to the pool and at some point he's going to get exhausted.

    Hope this helps,

    A.

  • The Web service exception was not catch!

    Hi experts,


    I use Jdev 11.1.1.5 and I am faced with an extrange problem (hope that's not a bug)

    I call a method AMImpl to a bean to support:

    String result = (String) ADFUtils.getBindingContainer().getOperationBinding("am_method").execute();    
    logger.info ("Result of webservice = "+result);
    

    The AM code calls a Web service:

    try {
       port.webServiceMethod(param1);
       logger.info("Succesfully completed");
    } catch (Exception e) {
       logger.severe(e.toString());
    }
    

    If param1 is null, web service returns an exception, I'd like to catch:

    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          <S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
             <faultcode>S:Server</faultcode>
             <faultstring>Missing parameter</faultstring>
             <detail>
                <ns2:exception class="java.lang.IllegalArgumentException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false" xmlns:ns2="http://jax-ws.dev.java.net/">
                   <message>Missing parameter</message>
                   <ns2:stackTrace>
                      <ns2:frame class="es.senado.regel.RegElectronicoWS" file="RegElectronicoWS.java" line="543" method="actualizarEstado"/>
                      <ns2:frame class="sun.reflect.NativeMethodAccessorImpl" file="NativeMethodAccessorImpl.java" line="native" method="invoke0"/>
                      <ns2:frame class="sun.reflect.NativeMethodAccessorImpl" file="NativeMethodAccessorImpl.java" line="39" method="invoke"/>
                      <ns2:frame class="sun.reflect.DelegatingMethodAccessorImpl" file="DelegatingMethodAccessorImpl.java" line="25" method="invoke"/>
                      <ns2:frame class="java.lang.reflect.Method" file="Method.java" line="597" method="invoke"/>
                      <ns2:frame class="weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker" file="WLSInstanceResolver.java" line="92" method="invoke"/>
    

    My problem is that exception had not been made and or save messages ("Successfully completed" or exception.ToString() ()) is printed.

    It seems that the execution is canceled in the AM and only the first record in the managed bean is printed ("webservice result = null")

    Thanks a lot for your help.
    Jose.

    The finally clause lights OK

    Then it is an internal problem with the implementation of jax - ws (probably ws response cannot be parsed for a reason, for example bad schema xsd etc...).

    You can try to catch Throwable instead of Exception.

    Dario

Maybe you are looking for