Ann: Web Services Enable your Database

This article, published by the Web Services Journal, will give you an overview on how to turn your database into a web services provider and consumer
http://otn.oracle.com/tech/webservices/content.html
Kuassi

Hi Noyesbox,
Have you updated the firmware on your printer so the firmware datecode shows version 20110826?
You can find the download, if needed, here.  After selecting an operating system you will see a firmware option with the download and directions.
If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
Although I work for HP, my posts and replies are my own opinion and not those of HP.

Similar Messages

  • HP Web Services enabled, but info sheet not printing

    Hi all
    Just installed my new LaserJet Pro MFP M128fw and networked it with a static IP to suit my network.
    Printer is accessible to ALL computers on the network.
    Can print, scan, copy and fax without ANY problem from any computer. Can ALSO print from my networked mobile phones.
    ALL computers, mobiles and my new HP printer are configured with static IPs. ALL have DNS of 8.8.8.8 and default gateways installed.
    NO problem accessing the net from any one of the computers or mobiles.
    The printer is  web service enabled and I am able to access the printer's web page from my computer wirelessly AT WILL.
    I can enable web services (successful enabling from both computer OR Printer) WITHOUT any problems. Able to view the email address sent by HP's ePrint service BOTH on the computer AND on the printer.
    Problem:
    Then comes the problem - I am unable to print the Information Sheet which contains the code to register my printer on the HP ePrint Website. Have tried entering the printer email ID (characters before the @) at the printer registration prompt, but the website says that it is invalid, because apparently, the Information Sheet print out on MY printer is required, to complete the registration of my printer for the HP ePrint services.
    Have tried removing web services from the printer and restarting and re-enabling. Have tried shutting down my router and restarting. Have tried at various times over the past 48 hours just in case it was an HP website overload. When I try to print the information sheet directly from my printer, it goes into perpetual "Connecting..." until it just goes off. NOTHING WORKS!!! NO ERROR MESSAGES!!! JUST NOT PRINTING THE INFORMATION SHEET.
    Am now beginning to feel that perhaps the EPrint service is not available for India, but can't seem to locate that information on the HP website. If so, would DEFINITELY look at it as a lacuna / default in terms of clarity and consumer service, as this was one of the principal reasons for my purchase of THIS particular model. Believe me, it wasn't cheap. 

    Hi Gappu,
    Thank you for the updates.
    I can definitely understand your reluctance to change how your network is setup. If you are like me you’d get started doing it and someone would interrupt enough that you don’t remember where you were when you were interrupted and something simple but important gets missed.
    I have included a link by @VisionAiry titled Check the Anti-Virus for Blocked Ports and Timed Scans and it is regarding the ports that are used. I’m wondering if one of the ports might not be configured correctly for ePrint.
    Please let me know how it goes.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Can a web service query a database at set intervals?

    Can someone verify if this is feasible?
    I need to display live data via browsers .  I would like to have the query to the database executed server side and have the web service provide the data to the browsers.
    Here is what I propose :
    I would like to have a web service run on a web server for an intranet.
    Have the web service  query a database every 20 seconds and update the data into a table or an array variable. 
    On the browser side I want the browser to refresh every 20 seconds with the updated data from the web service.
    Any other recommendations would be greatly appreciated.
    Thank you.
    Chris W.

    Hi ChrisTW1,
    Thank you for posting in MSDN forum.
    Based on your issue, I suggest you can try to use the JS to call the web service to set the intervals. For more information about how to use the JS to call the web service to set the intervals, please see:
    http://www.codeproject.com/Tips/647322/Calling-ASP-NET-Webservice-using-JavaScript-on-Reg
    In addition, since
    this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. If you have any issues about the set the
    intervals for the web service, I suggest you can post this issue directly to the WCF forum:https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf, maybe
    you will get more help.
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ARIS Web Services  enables and ARIS connect  in SM

    Hi all,
    1.How to enable the ARIS Web Services  enables in Solution manager?
    2.How To connect the ARIS Server to Solution manager?
    Regards,Neni

    Hi Neni,
    Did you get any chance to go through the below links? It will be much appreciated if you could share the effort taken from your end to find the answers so that the team can provide you exactly what you require than giving all!
    Prerequisites & steps needed to connect SolMan  to the Aris server?
    Re: ARIS and Solution Manager
    SolMan - ARIS synchronization guide and u201Cbest practiceu201D documents
    http://help.sap.com/saphelp_nw70/helpdata/EN/84/da224272eeda2ce10000000a1550b0/frameset.htm
    Re: Aris Installation
    Rajeev

  • WebLogic 10.3.0, web-service enabled session beans, and CMT transactions

    Does WebLogic 10.3 support CMT for JAX-WS Web-Service enabled EJB 3.0 session beans?
    When a client invokes the following Web service:
    @WebService
    @Stateless
    @TransactionManagement( TransactionManagementType.CONTAINER )
    public class TestService       
        @WebMethod   
        @TransactionAttribute(TransactionAttributeType.REQUIRED)
        public String echo( @WebParam( name = "param" ) final String param)
            Context context = new InitialContext();
            TransactionSynchronizationRegisttry registry =
              (TransactionSynchronizationRegistry)
                context.lookup( "java:comp/TransactionSynchronizationRegistry" );
            registry.putResource("foo", "bar");
            return param;
    }WebLogic throws this exception:
    SEVERE: Transaction does not exist
    java.lang.IllegalStateException: Transaction does not exist
         at weblogic.transaction.internal.TransactionManagerImpl.putResource(TransactionManagerImpl.java:2033)
         at weblogic.transaction.internal.TransactionManagerImpl.putResource(TransactionManagerImpl.java:2029)Is this a bug in WL 10.3.0?
    Thanks in advance.
    Edited by: user572625 on Aug 18, 2011 12:29 AM

    This is fixed now. Someone had defined a Servlet for the web service in web.xml that was preventing the EJB container to kick in.
    Edited by: user572625 on Aug 25, 2011 11:54 PM

  • Web services enabled RFC for SO creation in SAP  5.0 is not responding

    Dear Members,
    Third party application is not able to getting response from SAP R/3 web service enabled RFC.
    We have created a RFC for creation of Sales order by passing mandatory values into SAP thorugh third party application from outside SAP. Accessing RFC in SAP through Web service is not sending response properly. However Sales Order is getting created in the SAP system perfactly, in return to third party application to out side SAP through web service throughing an Exception.
    As standalone RFC in SAP, which is creating Sales order perfactly.
    Here we have deleted web service of RFC many times and recreated also, still the problem is not get resolved.
    Web services is got configured perfactly in the SAP, because other RFCs are working fine.
    Please someone suggest how to resolve this issue in case of Sales Order creation through web service enabled.
    Sudheer

    Hi ARC,
    Here the issue is that, Sales Order is getting created but while sending the Order num. to Webpage through web service then rasing below Exception.
    Runtime Error UNCAUGHT_EXCEPTION
    Except. CX_SOAP_CORE
    Date and Time 07.05.2008 20:13:24
    ShrtText
    An exception that could not be caught occurred.
    What happened?
    The exception 'CX_SOAP_CORE' was raised but was not caught at any stage in the
    call hierarchy.
    Since exceptions represent error situations, and since the system could
    not react adequately to this error, the current program,
    'CL_SOAP_TRANSPORT_EXTENSN_ROOTCP', had to
    be terminated

  • Enable Web Service access for a Web service-enabled client

    Hi,
    I want to access data in Oracle CRM On Demand from a Web services-enabled client. The "Oracle Web Services On Demand Guide" suggest the Web Services Access should be granted by Customer Care representative. By default, this access is enabled for the Administrator role for new companies. However my admin account can't access web services from a web enable client.
    Can anyone please suggest me the setting/step that i need to enable Oracle On Demand Web service access from a Web services-enabled client?
    Note: I am new to oracle on demand so my query can be a silly thing.
    Thanks & Regards
    Ravish

    I was able to resolve this issue. Actually, i was trying with trial account that don't allow the OCOD web service integration.

  • SMS web service in PLSQL(Database)

    hi all
    any one can help me to call this web service in PLSQL(Database)
    URL :=*http://IP../SMS_web_service?WSDL*
    Function 1: login
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <Login xmlns="http://tempuri.org/">
    <UserName>username</UserName>
    <Password>password</Password>
    </Login>
    </soap:Body>
    </soap:Envelope>
    Function 2: Send SMS
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <SendSMS xmlns="http://tempuri.org/">
    <xmlData> SMS Info (Message text + Mobile No.)</xmlData>
    <token>'_Function 1 (result)_ '</token>
    </SendSMS>
    </soap:Body>
    </soap:Envelope>
    Thanks

    Have the short version here: http://www.liberidu.com/blog/?p=1249, with demo script here: http://www.liberidu.com/blog/images/demo02.sql
    The longer one here: Re: Using utl_dbws to call web service
    It should give you a start how to set it up, I guess...
    Edited by: Marco Gralike on Jul 21, 2009 11:01 PM

  • Is posible built web services on oracle8i database

    I want to know if is possible built web services over Oracle8i database and what tool i need

    Grrr....still not working....I couldn't really get it to work under 8.1.7 or even 9iR1 as the SOAP code depends a lot on XMLTYPE (I assume it's possible to work around, but I don't have the time).
    I installed 9iR2 and then created a general purpose database....I then had to do a initxml.sql at xmltype was still not installed with the database; xml loaded but complained about dbms_registries (is this important?).
    I then coded up the required soap utility code as described in the article, essentially I used the demosoap package, but renamed it to edmssoap.
    I coded up my invokation function/package...tried running it and got this...
    SQL> exec dbms_output.put_line(price_service.get_contract_price('10761', '4', '2002-08-13'));
    -- I turned this on for debugging in my code...
    <SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Body>
    <calculateContractPrice xmlns="http://mpzarde.palmtreebusiness.com:6060/edms/"
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <param0 xsi:type="xsd:int">10761</param0>
    <param1 xsi:type="xsd:int">4</param1>
    <param2 xsi:type="xsd:string">2002-08-13</param2>
    </calculateContractPrice>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1222
    ORA-29270: too many open HTTP requests
    ORA-06512: at "EDMS.EDMSSOAP", line 76
    ORA-06512: at "EDMS.PRICE_SERVICE", line 13
    ORA-06512: at line 1
    On OC4J console I got this...
    com.evermind.server.http.HttpIOException: Connection aborted by peer: socket write error
    at com.evermind.server.http.EvermindServletOutputStream.flush(EvermindServletOutputStream.java:261)
    at org.apache.soap.transport.TransportMessage.writeTo(TransportMessage.java:462)
    at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:652)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    My wsdl is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions name="PriceCalculationWebService" targetNamespace="http://com.palmtreebusiness.edms.web.service/PriceCalculationWebService.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://com.palmtreebusiness.edms.web.service/PriceCalculationWebService.wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <documentation>WSDL for Service: PriceCalculationWebService, generated by Oracle WSDL toolkit (version: 1.0)</documentation>
    - <types>
    <schema targetNamespace="http://com.palmtreebusiness.edms.web.service/PriceCalculationWebService.xsd" xmlns:tns="http://com.palmtreebusiness.edms.web.service/PriceCalculationWebService.xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
    </types>
    - <message name="calculateContractPriceInput">
    <part name="param0" type="xsd:int" />
    <part name="param1" type="xsd:int" />
    <part name="param2" type="xsd:string" />
    </message>
    - <message name="calculateContractPriceOutput">
    <part name="output" type="xsd:double" />
    </message>
    - <portType name="PriceCalculationWebServicePortType">
    - <operation name="calculateContractPrice">
    <input message="tns:calculateContractPriceInput" />
    <output message="tns:calculateContractPriceOutput" />
    </operation>
    </portType>
    - <binding name="PriceCalculationWebServiceBinding" type="tns:PriceCalculationWebServicePortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
    - <operation name="calculateContractPrice">
    <soap:operation soapAction="urn:com-palmtreebusiness-edms-web-service-PriceCalculationWebService/calculateContractPrice" />
    - <input>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:com-palmtreebusiness-edms-web-service-PriceCalculationWebService" />
    </input>
    - <output>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:com-palmtreebusiness-edms-web-service-PriceCalculationWebService" />
    </output>
    </operation>
    </binding>
    - <service name="PriceCalculationWebService">
    - <port name="PriceCalculationWebServicePort" binding="tns:PriceCalculationWebServiceBinding">
    <soap:address location="http://localhost:6060/edms/priceCalc" />
    </port>
    </service>
    </definitions>
    And my invoking function is:
    CREATE OR REPLACE PACKAGE BODY price_service AS
    FUNCTION get_contract_price(contractkey IN VARCHAR2, productkey IN VARCHAR2, evaldate IN VARCHAR2) RETURN NUMBER IS
    req edmssoap.request;
    resp edmssoap.response;
    BEGIN
    req := edmssoap.new_request('calculateContractPrice', 'xmlns="http://mpzarde.palmtreebusiness.com:6060/edms/"');
    edmssoap.add_parameter(req, 'param0', 'xsd:int', contractkey);
    edmssoap.add_parameter(req, 'param1', 'xsd:int', productkey);
    edmssoap.add_parameter(req, 'param2', 'xsd:string', evaldate);
    resp := edmssoap.invoke(req, 'http://mpzarde.palmtreebusiness.com:6060/edms/priceCalc',
    'urn:com-palmtreebusiness-edms-web-service-PriceCalculationWebService/calculateContractPrice');
    dbms_output.put_line(resp.doc.getstringval());
    RETURN edmssoap.get_return_value(resp, 'output', 'xmlns="http://mpzarde.palmtreebusiness.com/edms/"');
    END;
    BEGIN
    utl_http.set_persistent_conn_support(TRUE);
    END;
    What am I missing? Do I need to grant port or something?
    TIA,
    Marty

  • How to call web services from oracle database 10g

    Hi all ,
    How can i call web services from oracle database 10g ?
    thanks ...

    abdou123 wrote:
    but how can i get complex result
    for example
    i pass input parameter like National Id Number
    and get the person details ( name , age , date of birth , ............ ) .Basic approach to web services using UTL_HTTP explained in {message:id=10448611}.
    An example of using a pipeline table function as a data transformation process (turning web data into rows and columns) in {message:id=10158148}.

  • Re: Enable/Disable Web Services on your printer

    I cannot enable my printer to print..... prompt promt

    Hi Kimikofumi,
    Welcome to the HP Support forums.  I see that you are unable to print using your HP printer.
    To better assist you, would you please supply some additional information:
    What make/model/product number of HP printer do you have? How Do I Find My Model Number or Product Number?
    How is the printer connected (USB cable, ethernet, or wireless)?
    What operating system are you using on your computer?
    Based on the thread title, are you also trying to enable web services?
    Are you getting any error messages? If yes, what does the message say and where is it displayed (printer or computer)?
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Invoke Web Service in 9i database using UTL_HTTP

    I am trying to explore Oracle's UTL_HTTP package to invoke external web service without having to use java stored procedure. I downloaded a demo scripts from OTN web site (http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html) and bumped into problems when invoking it.
    select * from book_quote
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1022
    ORA-12545: Connect failed because target host or object does not exist
    ORA-06512: at "APPS.DEMO_SOAP", line 71
    ORA-06512: at "APPS.BOOK_SERVICE", line 13
    I checked the wsdl at the given website and it's valid. Is the database machine unable to connect to the internet? If so how can I enable it?
    Can anyone help?
    Thanks,
    Tom

    Hi,
    You need to use Adaptive Web Service Model for that.
    Check the tuorial in the link for accessing web services.
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#16
    Regards
    Pankaj

  • Consuming a web service from the database

    Hello,
    We have 10.2.0.2.0 database,oas 10.1.3.0.0, jdeveloper 10.1.3.
    We have to call our webservice deployed to the OAS from the database. The webservice is deployed and works fine (we can call it from a java application).
    The web service itself and the client proxy have been generated by the jdeveloper.
    The proxy has been loaded to the database and wrapped into a plsql package function using Jdeveloper "Load java and stored procedure deployment profile".
    When we run the function we receive the following error:
    calling http://z0001-app0821-s.hodc.ad.allstate.com:7779/amcddout_dvlp/DDRequesterWSSoapHttpPort java.lang.NoClassDefFoundError      at HTTPClient.HttpURLConnection.<clinit>(HttpURLConnection.java:166)      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.createConnection(HttpSOAPConnection.java:697)      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:347)      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:796)      at java.security.AccessController.doPrivileged(Native Method)      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:149)      at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(Unknown Source)      at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(Unknown Source)      at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:169)      at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:110)      at com.amc.dd.ws.test.runtime.DDRequesterWSSoapHttp_Stub.sendMessage(DDRequesterWSSoapHttp_Stub.java:77)      at com.amc.dd.ws.test.DDRequesterWSSoapHttpPortClient.sendMessage(DDRequesterWSSoapHttpPortClient.java:42)      at com.amc.dd.WsTest.callWS(WsTest.java:12)
    Has anybody had the same problem?
    Thank you
    Kate

    Hi, I've dropped and reloaded all jars, and it started to work.
    Just in case someone else is struggling with the same problem, here is our configuration:
    10.2.0.2.0 database,oas 10.1.3.0.0, jdeveloper 10.1.3.
    Here is the command I've used to load the libraries:
    loadjava -u %CONN_STR% -r -v -f -genmissing -s -grant public %ORACLE_HOMEj%\soap\lib\soap.jar %ORACLE_HOMEj%\lib\dms.jar
    %ORACLE_HOMEj%\jlib\javax-ssl-1_1.jar %ORACLE_HOMEj%\j2ee\home\lib\servlet.jar %ORACLE_HOMEj%\j2ee\home\lib\mail.jar
    %ORACLE_HOMEj%\j2ee\home\lib\activation.jar %ORACLE_HOMEj%\j2ee\home\lib\http_client.jar
    %ORACLE_HOMEj%\j2ee\home\lib\ejb.jar %ORACLE_CALLOUT%\dbwsclientws.jar %ORACLE_CALLOUT%\dbwsclient
    And here are the priviledges that must have been granted to the user:
    dbms_java.grant_permission( 'myuser', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' )
    dbms_java.grant_permission( 'myuser', 'SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar', '' )
    dbms_java.grant_permission( 'myuser', 'SYS:java.util.PropertyPermission', 'HTTPClient.socket.idleTimeout', 'write' )

  • JAVA WEB SERVICE AND ORACLE DATABASE

    Hi,
    I working with Oracle database 10g, Oracle Bpel 10.1.2.0 and JDeveloper 10g on windows xp home.
    I have created a java class with incapsulated sql statement (jdbc protocol).
    All it's ok when the class runs from command line (JCreator).
    After that i created the web service from java classes (with JDeveloper) and I connected (with success) database to OC4J and run the web service, i have this xml message like result:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.lang.NullPointerException</faultstring>
    <faultactor>/DipendentiWebService/DipendentiWebService</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Which's my error?
    Thanks

    Hi Frank,
    thank you for the reply, but i don't undertsand what do you mean "add print statement to java class".
    follows the java class code that loads a mail address from database oracle:
    import sqlj.runtime.*;
    import sqlj.runtime.ref.*;
    import java.sql.SQLException;
    import java.util.*;
    import java.sql.*;
    import utility.*;
    import java.lang.*;
    import java.io.*;
    public class DipendentiWS{
    protected static String matricola = null;
    protected static String email = null;
    private static DBConnectionManager connMgr;
    private static Connection conn = null;
    private static Statement st = null;
    private static PreparedStatement pstmt;
    private static ResultSet rs = null;
    private static final String FIND_BY_MATRICOLA = "SELECT Email FROM ARDIP.DIPENDENTI " +
                                                           "WHERE Matricola = ?";
    // metodo ausiliario per il rilascio delle risorse
    * @webmethod
         public static String leggiMail(String matricola)throws SQLException{
         // Caricamento dati Dipendente da DB
         try {
    connMgr = DBConnectionManager.getInstance();
         Connection conn = connMgr.getConnection("access");
    if (conn != null) {
         conn.setAutoCommit(false);
    st = conn.createStatement();
    pstmt = conn.prepareStatement(FIND_BY_MATRICOLA);
                   pstmt.setString(1, matricola);
                   rs = pstmt.executeQuery();
    if (rs.next()) {
    email =rs.getString(1);
    conn.commit();
    // conn.setAutoCommit(true);
    catch(SQLException e){
         e.printStackTrace();
         System.err.println("ATTENZIONE!!!!");
              finally {
         try {st.close();}
         catch(SQLException ex){ ex.printStackTrace();}
              return email;      
         }

  • Java Studio Creator -- web service -- spring -- hibernate -- database

    Hello,
    Has somebody already worked on an architecture 3 tier including : hibernate, spring, a deployment of the classes "spring" in wsdl (Web service).
    With Tomcat and Axis i deploy some web services (classes --> wsdl), with java studio creator i call the web service and the methods ...
    I would know if it possible to deploy some "spring" classes to have finally (wsdl) ?
    Thanks

    Heh heh heh....welcome to the club.
    There are <b>many</b> of us wanting to integrate Spring with JSC.
    I am working on doing this now, and plan to submit a quick tutorial on the subject to this forum once (if) I get it working.
    To start you off in the right direction though, here are some things I <b>think</b> you need to do.
    1) Make JSC Spring aware by adding the Spring.jar file in the Project Navigator (right click...Create New Library Reference).
    2) Add the package structure you need in Project Manager
    3) Add you Spring configuration file (application-context) in web/WEB-INF
    4) Add your ContextLoaderListener to web.xml.
    5) Get a servlet context and use it to get a WebApplicationContext
    6) Use that to retrieve the bean you need to work with

Maybe you are looking for

  • Error while creating the Flash Chart

    Hi , While creating the Flash Chart i got the following error.. Error Item ID (4789301958029267) is not an item defined on the current page. What does it mean???? My Chart Series is: SELECT NULL LINK, DISTRIBUTOR, CLGASSETS, FOLIOS FROM ( select NULL

  • Why wont this RUN and Set a New-Service..?

    PS C:\WINDOWS\system32> New-Service -Name RunSafe -BinaryPathName C:\Users\3steveco33_01\Skydrive\Documents\Adminstartup.ps1 -DisplayName 'Active Protraction Service' -Description Safety and Security -StartupType Manual -Credential 'Admin_01' -Depen

  • Waiting message and grey icon won't go away

    How to fix this problem, the icon unresponsive

  • REP-1800 error

    I am trying to run a report from my web deployed form. The report is supposed to be displayed on the screen in a PDF format. The problem is when i try to run it from forms through a button it gives me "REP-1800 Formatter error". I dont get this error

  • BPC 5.0: Packages Hanging

    We have a Linked Server, hosting an ERP, which is used to load data into BPC 5.0(OutlookSoft 5). I updated the remote login and password for this linked server through SQL Management Studio. To test, I ran the packages but they hang - do not error, b