Can i call a webService through Swing

Hii Javaites
I am developing a appliction where the client can be offline, , while he is offliline , he can do certain things like fill timesheets.Later on when he connects to net , and when he goes to my site , he can upload his timesheets to a webservice.
So for achieving this , i ma planning to make the client side(offline component ) in SWING , and when he connects to net , he can synchronize his timesheets with the database , on the server.
So i wnt 2 know , tht is this approach right and possible.
is there any other way 2 go about it.

well, whether the approach is right or wrong, depends on your business needs. But it is possible to connect to a web service from a java application.
~Debopam

Similar Messages

  • Can we call a webservice  using standalone java application  ?

    Hi friends,
                   Can we call configurd webservice in xi , using standalone java application by just giving url of webservice ?
                  OR
                  Only by means of WEBDynapro we can call  ?
                    Can you please tell me the answer for this .
    Regards .,
    V.Rangarajan

    HI Ranga Rajan
    well, If at all if you have webservice...you can import that werbserivce as External definition in to IR.
    How to import:
    1) Go to IR and and move to your requied component and there you can see the option called imported objects...select on imported objects where you can give the name and you can select the webservices which you want to use it.
    2) Hope you are aware of that a werbservice will have the request and response.
    3) Create the mapping program accroding to your requirement.
    Go through blogs of Bhavesh and Naveen which talks about calling webservice in a specific condition:
    Webservice Calls From a User Defined Function - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    Consuming/Calling webservices from DataBases - /people/sap.user72/blog/2005/10/20/consumingcalling-webservices-from-databases
    Also check this help file on Web Services:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • Can we call a webservice which is defined outside SAP system from ABAP

    Hi All,
      i am very new to the ABAP. i would like to know how we can call a webservice which is defined in some other system from the ABAP code. if you are providing any sample code then it will be very help ful for me.
    Thanks in advance.
    - Siva

    yes its possible. check out the weblog
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    Regards
    Raja

  • Can we call a  webservice  to   insert a value to r3 table  - using XI ?

    Hi friends  ,
                       At present we are directly going to the r3 screen and   we are giving input to the particular  table.After succcesfull insertion  that will return a status as 's' .
                           Can we do it through weservices ?
                            How xi can play a role here   ?
    Best Regards .,
    V.Rangarajan

    Hi ranga Rajan,
         Yes we can achive this, by using SOAP adapter at sender side so that u can send data from webservices to XI which inturn will pass to R/3.
    if u need acknowledgement, u can use RFC at receiver side.
    regards
    harsha 
    **if u found this, assign points**

  • I can not call the webservice?!?!?

    Hello,
    I want to call a webservice, but the Inputfields are all disabled. I have used a simple Weahterservice where I can input a city.
    I can not use it.
    Also I have follow the steps in the weblog: /people/anilkumar.vippagunta2/blog/2005/07/20/developing-web-application-without-writing-single-line-of-code-my-first-web-log
    But there is the same problem. I can not use the input-fields. In this example I have create the output for the state of delivery. When I push the button, the request is shown on the form: "Please enter correct from email address to send this message". So I think, that the webservice work.
    What is my mistake? If anybody want to help me, I can send my project-files. It's only the usage of the webservice.
    Thanks,
    Peter
    Edited by: Peter S on Jan 14, 2008 11:21 AM
    The Webservice I used in my own sample is : http://www.webservicex.net/WeatherForecast.asmx
    for WSDL use http://www.webservicex.net/WeatherForecast.asmx?wsdl

    I have not called the class which was under response

  • How can I restrict a webservice through SRA by user

    Hi,
    currently, we have a webservice authenticating by IP. We are installing the JES Portal Server and SRA.
    How can we continue authenticating the webservice by client IP, if the request pass through gateway SRA without modify the webservice.
    The problem is, the webservice is not available for all users. Other solution can be restrict the access to the webservice to some users. How we can get restricted by user?
    Thanks in advance for your answer.
    Oscar Armando

    How can we continue authenticating the webservice by
    client IP, if the request pass through gateway SRA
    without modify the webservice.You can not. If the request is going the SRA, then that is what your web app will think the client IP is.
    The problem is, the webservice is not available for
    all users. Other solution can be restrict the access
    to the webservice to some users. How we can get
    restricted by user?Sorry, again. The gateway service is only configurable globally. It can not be changed be user.
    One suggestion would be to exclude this webservice from SRA, so that links to it are not rewritten, and requests for it do not go through SRA. Then, requests come directly from the client to the webservice, which properly authenticates by IP. Under the 'Rewriter' tab, add the webservice to the URI's not to rewrite box.

  • Can we call a wepage through sap report

    Hi
      experts can u people please tell me that can a webpage (like yahoo.com) be called from a report.

    Hi,
    go through the following example....
              I N T E R N A L     T A B L E
    DATA: BEGIN OF URL_TABLE OCCURS 10,
          L(25),
          END OF URL_TABLE.
         S T A R T - O F - S E L E C T I O N
    START-OF-SELECTION.
    *-append internal table---
    URL_TABLE-L = 'http://www.yahoomail.com'.
    APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.gmail.com'.
    APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.sap.com'.
    APPEND URL_TABLE.
    URL_TABLE-L = 'http://email.rapidigm.com'.
    APPEND URL_TABLE.
             P R I N T    T H E    U R L    L I N K
    LOOP AT URL_TABLE.
      SKIP. FORMAT INTENSIFIED OFF.
      WRITE: / 'Single click on '.
      FORMAT HOTSPOT ON.
      FORMAT INTENSIFIED ON.
      WRITE: URL_TABLE.
      HIDE URL_TABLE.
      FORMAT HOTSPOT OFF.
      FORMAT INTENSIFIED OFF.
      WRITE: 'to go to', URL_TABLE.
    ENDLOOP.
    CLEAR URL_TABLE.
            E V E N T  F O R  C L I C K
    AT LINE-SELECTION.
    IF NOT URL_TABLE IS INITIAL.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
                commandline     = URL_TABLE
                INFORM         = ''
              EXCEPTIONS
                PROG_NOT_FOUND = 1.
    *- sy-subrc check----
      IF SY-SUBRC <> 0.
         WRITE:/ 'Cannot find program to open Internet'.
      ENDIF.
    ENDIF.
    *-- End of Program
    **********do rewards if usefull
    vijay

  • CAN i CALL OLAP DML THROUGH JDBC IN JAVA PROGRAM

    I HAVE ORACLE V 9.2.0.1.0 AND AFTER CREATING A CUBE FROM ENTERPRISE CONSOLE I HAVE TO GO WITH EITHER SQL PACKAGES OR OLAP DML PROGRAMS ,SO PLS GIVE ME PROPER WAY AND LINK OF SOURCES TO WORK WITH OLAP DML IN JAVA PROGRAMS
    CAN I USE AS PREPARED STATEMENT OR CREATE STATEMENT IN JAVA
    TO CALL OLAP DML? BECAUSE NORMALLY WE MUST USE OLAP WORKSHEET TO EXECUTE OLAP COMMANDS
    Message was edited by:
    user594151

    The access OLAP objects via Java you have two options. You can code directly against the OLAP API and I think someone has already provided you with the link to the supporting documentation. The OLAP API docs provide worked examples on access OLAP metadata and retrieving OLAP data. However, this is extremely low level coding. An alternative is to use the Business Intelligence Beans. Oracle Business Intelligence Beans enables developers to productively build business intelligence applications that take advantage of the rich OLAP functionality in the Oracle database. OracleBI Beans includes presentation beans - graph and crosstab, data beans - query and calculation builders and persistence services, which may be deployed in both HTML client and Java client applications. OracleBI Beans is seamlessly integrated into Oracle JDeveloper to provide the most productive development environment for building custom BI applications. For more information goto the the BI Beans home page
    http://www.oracle.com/technology/products/bib/index.html
    Specifically on executing OLAP DML see the following example:
    Developing a Dashboard Application with Oracle BI Beans:
    http://www.oracle.com/technology/products/bib/1012/viewlets/MS%20Developing%20Executive%20Insight.html
    Adding controls to execute OLAP DML      This viewlet demonstrates how to quickly and easily add the controls to execute OLAP DML models that can be executed to update the What If presentation.
    http://www.oracle.com/technology/products/bib/1012/viewlets/Pages/What_If_Analysis_Part_4_viewlet_swf.html
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • How can I call remote ejb through jsp?(null)

     

    Trying the code:
              <%@ page import="si3.*,javax.ejb.*,javax.naming.*,java.util.*,java.rmi.RemoteException" %>
              <%
              int h=8;
              int w=8;
              Hashtable p = new Hashtable ();
              p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
              p.put(Context.PROVIDER_URL,"t3://192.168.0.203:7001");
              Context ctx= new InitialContext(p);
              Object homeref = ctx.lookup("si3.test");
              addHome home = (addHome) PortableRemoteObject.narrow(homeref, addHome.class);
              add the_ejb = home.create();
              out.println(the_ejb.add(h,w));
              out.println("adf");
              the_ejb.remove();
              %>
              yzj wrote:
              > I have two server running weblogic5.1.
              > If the jsp and ejb locate the same server running weblogic 5.1 ,works well .But one deploys the ejb (jndi name si3.test),the other runs the jsp.I use jsp call the remote ejb ,catch exception :
              >
              > GMT+08:00 2000:<E> <ServletContext-General> Root
              > > cause of ServletException
              > > javax.naming.NameNotFoundException: 'si3.test'; remaining name 'si3.test'
              > > at
              > > weblogic.jndi.toolkit.BasicWLContext.resolveName(BasicWLContext.java,
              > > Compiled Code)
              > > at
              > > weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:133)
              > > at
              > > weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:574)
              > > at javax.naming.InitialContext.lookup(InitialContext.java:349)
              > > at jsp_servlet.client._jspService(client.java:90)
              > > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > > :124)
              > > at
              > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > > l.java:744)
              > > at
              > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > > l.java:692)
              > > at
              > > weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              > > Manager.java:
              > > 251)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              > > Code)
              >
              > Why? Can you help me? Thanks.
              > The jsp's source(Client.jsp ):
              > <%@ page import="si3.*,javax.ejb.*,javax.naming.*,java.util.*,java.rmi.RemoteException" %>
              > <%
              > int h=8;
              > int w=8;
              > Hashtable p = new Hashtable ();
              > p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
              > p.put(Context.PROVIDER_URL,"t3://192.168.0.203:7001");
              > Context ctx= new InitialContext(p);
              > addHome home = (addHome) ctx.lookup("si3.test");
              > add the_ejb = home.create();
              > out.println(the_ejb.add(h,w));
              > out.println("adf");
              > the_ejb.remove();
              > %>
              >
              >
              [att1.html]
              

  • Calling a webservice through B1i

    Hi Everyone
    Can we somehow link B1i call to get acess of a web service (like exchange rates, time servers etc).
    Help would be highly appreciated..
    thnx n regards

    Hi Nitin,
    Theres a Web Service sample in which you can retreive the time of server (www.xmlwebservices.cc). I need to check if this webpage will still be up and running as now is down.
    The sample includes and IPO step, a bizflow, xsl file and xml file (which also be attached to the Thread)
    Just to let you know I'm on it.
    Best regards,
    Felipe

  • How can I call DLL's Through Forms5.0

    I've done the following exercise for calling DLL's
    I tried to put thier dll in orant/bin directory but unable to get the values from DLL. I used user_exit D2K built in function but not able to get the result..
    Ex:
    DLL is = api1.dll
    This dll having n number of functions in that one of the function is GetUid..This contain one in parameter which will take length of userid and one out parameters which will return Userid from DLL..
    The syntax I used in D2K is as follows.
    First I hv put this dll in orant/bin directory
    and used following syntax in D2K
    user_exit('GetUID(:global.uid,20)');
    But it was dispalying the msg GetUID does not exist..
    I have put one entry in registry like FORM50_USEREXITS orant/bin/api1.dll.
    But the same error repeats..
    Please revert as to how I can go about it.
    null

    Assuming that you don't need to do anything with that pointer aside from pass it around, you can declare that parameter as a "ByVal Long image" in your declaration.  Declare a variable (as a Long) to pass in to the image parameter. 

  • Calling a webservice through altova tool

    Hi ,
    I posted the same earlier .
    the error is not yet solved.
    If u tell me the email id i will send the screen shots and tell me where exactly the problem is.
    Thanks
    Srini

    Hi,
    What is the error ? try out with SOAP Client tool to test the webservice.
    about SOAP client - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9b16d790-0201-0010-4e9b-baa5f42830d8
    Regards,
    moorthy

  • Can't call a webservices from a servlet

    I run the webservices example of wls6.1 sp2 and it work great from the normal java
    client.
    I transpose the client code in a servlet and I got this error when creating new
    InitialContext():
    Cannot instantiate class: weblogic.soap.http.SoapInitialContextFactory. Root
    exception is java.lang.ClassNotFoundException: weblogic.soap.http.SoapInitialContextFactory
    the client.jar is in the classpath... here is the code:
    in the doGet:
    String url = "http://localhost:7001";
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.soap.http.SoapInitialContextFactory");
    h.put("weblogic.soap.wsdl.interface",
    Weather.class.getName() );
    h.put("weblogic.soap.verbose", "true" );
    try {
    Context context = new InitialContext(h);
    Weather service = (Weather)context.lookup(url+"/weather/statelessSession.WeatherHome/statelessSession.WeatherHome.wsdl");
    System.out.println("Temperature in Beverly Hills is " + service.getTemp("90210"));
    } catch(NamingException ex) {
    ex.printStackTrace();
    thanks

    For those interested in the solution, the problem turned out to be two things.
    The first is if you want to be able to load a prototype of the VI in TestStand, you will need to either share the VI or create a dummy VI. If the shared VI uses subVIs you do not have access to, then you are better of creating a dummy VI that has matching connector panes.
    The second problem had to do with how the remote VI path was specified. If you have shared the VI, then you will enter in the shared folder path as your remote VI path. If you have not shared it, then you will need to enter in the VI path as it is on the remote machine.
    Rohama K.

  • Can only call webservice once

    I can only call a webservice once, after that I get the following error, it works fine on the 1st call.
    java.lang.NullPointerException
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:45)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper. (StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
         at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java:465)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:240)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

    This issue is happening with the following stack trace. We are trying to understand the causes.
    Help on this issue is very welcome.
    SOAPAction: "http://www.openuri.org/RequestAssegna"
    User-Agent: Axis2
    Transfer-Encoding: chunked
    ]] Root cause of ServletException.
    java.lang.NullPointerException
    at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:45)
    at javax.servlet.GenericServlet.init(GenericServlet.java:241)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
    at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java:486)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:240)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3717)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

  • How can i call webservices in trigger event

    Hi Everybody,
    iam new to webservices... how can i call the webservices when trigger fire?.
    any help would be appreciated,
    thanx,
    Reddy.

    This is not the right forum to post your question; You could get a better help if you post it at
    [http://www.nabble.com/Axis---User-f232.html]
    Regards,
    Alan Mehio
    London, UK

Maybe you are looking for

  • US Iphones in the UK

    If I buy an Iphone in the USA can I use it with a pay as you go sim in the UK?

  • I got one too. Life is very good.

    After reading all the negative reviews here and elswhere, I was curious to hear what it sounded like. (I also needed to return the JBL On Tour travel speakers I bought last week; very nice sounding but too tinny). So I went to the Apple Store in Brea

  • SAP - PS Report on goods received, committments

    Hi, We are looking for a report that can show us all of the commitments on a project at a point in time. We tried to use CJI5 but it doesnt seem to show entire quantities of items ordered or the full amounts. In addition, we also need to be able to s

  • Handling FPM Events in Java WDP

    Hi All, I have a requirement for a simple WDPJ iView that responds to the selection of an employee in MSS. Is it possible to handle the employee selection event from Business Package for Manager Self-Service (mySAP ERP) from a simple WDPJ iView that

  • Feature request: View layer comps in both Comments and Extract

    Good day, I'd like to see the layer comps dropdown duplicated and applied to the Comments panel of Extract, in hopes that when viewing layer comps over the web, there's better, faster performance when reviewing comps. Extract is wonderful, but not ev