Java web service and pocket pc

Hi all. I am looking for some advice on how best to go about the following. I have looked on the internet and found info on relevent parts, but not sure how to interact them all together.
I want to develop an application for a pocket pc (probably windows mobile 5.0) that will interact with a web service(in java). The pocket pc will send some sort of authentication to the service, which will then query a database and send the relevent information back to pocket pc.
I have read things on SOAP, WSDL and AJAX etc... but am unsure how to put them all together.
If anyone has any advice, good tutorials or links then they are greatly appreciated.
Regards

Hi all. I am looking for some advice on how best to
go about the following. I have looked on the
internet and found info on relevent parts, but not
sure how to interact them all together.Join the crowd :-) For most of this stuff, it seems we're ALL finding our way around.
I have read things on SOAP, WSDL and AJAX etc... but
am unsure how to put them all together.That's kind of like asking "how long is a piece of rope?" It depends on what you need it for.
Try w3schools.org for some great tutorials on some of the underlying technologies that power the above.
SOAP is nice and all if you want to use third-party libraries and you need industry-standard interactivity (for example with vendors or customers), but if you're doing everything in-house (i.e. your own application will consume the web service you wrote) then I'd seriously consider REST-based webservices. They're easier to write because you're free from the limitations of SOAP, and your apps can be smaller and with fewer parts.
Screw WSDL. Use it only if you are forced to. Axis has a great WSDL generator and if you can deploy everything in Axis, then you're good to go. I started writing my webservices using Axis and WSDL->Java generators and I was all cool and stuff because I was doing what everyone said was the best way to write these new applications. It took me a while to realize that most of that advice was coming from the people that were writing the software the real applications were based on, not using the stuff they had written to build real apps with. The perspective is completely different.
Then I had to maintain that mess and it wasn't worth it because all of my uses for webservices are internal. I write the server and client portions both. There's no need to complicate the issue with technologies that are meant for interacting with other systems which you have no control over, nor any knowledge of how they're consuming the information you're providing.
As to specific documentation, that's a little harder to come by. Your best bet is to first and foremost: read the specs on w3.org. No other pieces of documentation will be as in-depth and informative as the spec. If you're using spec-compliant implementations, then you've already got all your documentation. They're dense, I agree. They take forever, I agree. But I have yet to find anything that can rival the depth of understanding I gain from the specifications. Read the specs. All of them. Download them, print them out, stuff them in a fat folder (mine's in a 3-inch binder) and keep them handy. It seems like enterprise-level webservice-enabled apps will require lots of third-party support libraries, use lots of different technologies, and the documentation required to help the developer actually use all of this stuff will become critical. That's why I say print stuff out and keep it in one spot.
If you can get any good out of these third-party libraries for generating clients, then more power to ya. I think they're a waste of time, myself, because I can write a client quicker and make it far more easy to maintain if I just do it from scratch. I'm only interested in using these technologies to make it quicker, more effiicient, easier to maintain, etc... be careful you don't get carried away with the vastly divergent advice you'll get on how to build your app and end up making it much more complicated and harder to maintain than it would have been had you not used industry-standard methodologies. Think small and simple.
To get started, I would get a really good XML IDE. I use oxygen (http://www.oxygenxml.com). Version 7 is out, which has XQuery debugging and lots of other stuff. Have your company buy it. It's worth it. (has eclipse integration too). Then download Sarissa: http://sourceforge.net/projects/sarissa it's a great cross-browser javascript library for doing AJAX stuff. We use it for our AJAX applications and it's great. Fairly well documented too. Then use as much client-side processing as you can get away with because with webservices, your XML processing will hammer the server. Our IBM dual 3GHz/8GB RAM machine is chugging constantly. We process around 300,000 pages of XML in a normal business day, and it's intensive processing (lots of SQL serialization and transforms). We're trying to offload as much work to the client as we can. We're using Mozilla now, so that's making life much easier for us. Even the embedded mozillas have fantastic support for AJAX-friendly technologies.
As for putting everything together, well, you're pretty much on your own there. In our environment, we have a custom XML-based intranet portal, which I had to write myself because there's nothing out there that does what we need it to, we use Postgres as our enterprise database, JBoss as our application server, Apache as our front-end, and oh yeah, we have an AS-400 on which resides all the "real" data. Just try and find documentation on serving data via an AJAX-enabled enterprise app from data that resides on DB2/400 and generating the interface on the client using XSLT. Or how about getting data from the postgres server into an RPG program using a webservices client on the 400. I don't even think I'm supposed to be doing stuff like that, let alone be able to find documentation on a solution that someone has come up with.
Now if someone would just make a good JavaScript IDE, AJAX would take off like a bat out of hell. How long has JavaScript been around now? 10 years-ish? And how many good IDE's are there for JavaScript? Zero. Really irritates me sometimes... A good Mozilla-based AJAX-friendly JavaScript IDE would be a HUGE and I mean HUGE benefit to the webservices community.

Similar Messages

  • 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 Web Services and hosting companies

    Hi
    At this moment I am looking for a web hosting companies.
    I will be developing website in Java and I will also develop Web Services.
    Can you tell if I am able to host Web Services with any hosting company that supports Java. Or is there any special requirement on the behalf of the hosting companies to support Web Services written in Java
    regardas

    No Problem at all
    Nomally the Web Service is big different between Web application. or you can build your Web service structure like web application structure. It depends on the web server:
    If the Web Server of hosting company has WEB Service framework, you just need know how to deploy your Web service to Web Service framework and How to deploy to Web Server. In this case, you need deploy it two time, one is for Web Server framework and one is for Web Service framework
    If the Web Server of hosting company doesn't has WEB Service framework, you need build your own Web Service framework into a web application, then you just need know how to deploy your web application with Web service into Web Server framework

  • Java Web service and dynamic entry list

    Hello,
    In my VC mode, I have a combo box with a dynamic entry list. This entry list call a web service function which the source is :
    public EntryListBean[] getEntryList() {
              EntryListBean[] liste = new EntryListBean[2];
              liste[0] = new EntryListBean();
                    liste[0].setText("1");
              liste[0].setValue("Liste 1");
              liste[1] = new EntryListBean();
                    liste[2].setText("2");
              liste[1].setValue("Liste 2");
              return liste;
    In output port, i have:
    VALUE -
    > @value
    TEXT    -
    > @text
    When i test this function with 'Test Data Service', it work but when i deploy the model, there is nothing in the combo box. Do you have the same problem ?
    I have installed NWDW v7.0 SP9 with Visual Composer patch 2.
    Regards

    Hi Francois,
    Did u try using dynamic entry list with a BAPI. Is that working fine?
    Actually, I faced the same problem. I used a drop-down list, in which dynamic entry list works fine in case of a BAPI and appears blank in case of a webservice. I applied the latest patch files mentioned in a SAP note. People in forum asked me to do that. Its mentioned in the note that, "Dynamic entry list with webservice bug is fixed in the released patch file". But even after applying the latest patch files, it did not work for me. So, i think this bug is yet to be fixed.
    Regards,
    Kavitha.

  • Java web Service and Tomcat

    Hello,
    how can I set where service save files. Becouse when I save file in web service running on Tomcat 6.0, it is in directory Tomcat\bin.

    Well how do you tell it which file/directory to save it in?
    Just with new File("myFileName.txt") ?
    In that case it just uses the current working directory which normally just happens to be the Tomcat/bin directory.
    Better way is to use the constructor for File which takes two arguments - a directory and a filename
    File saveDirectory = new File("c:/data/webservicefiles/");
    File saveFile = new File(saveDirectory, "myFileName.txt");
    Of course the directory for saving should be configurable somewhere. In a properties file most likely.

  • Java web services and jdk1.3.1

    Hello.
    It seems that the new "webservices Developer pack" 1.3 only works with JD1.4, since it uses the new logging API's.
    My situation is this: I want to use the pack, but I can only run on 1.3.1 for application reasons. I cannot find an old version either?
    Any input, anyone?

    http://java.sun.com/webservices/archive.html

  • Java Web Service Deployed on App server does not run

    hi,
    I created a java web service and deployed it on my Application server. When i open the enterprise manager i find my webservice there. I click on test web service and it gives me two options one with a 4443 port and other with a 7777 port. It picks up a 0.0.0.0 hostname though i deplyoed it on to a different machine.
    I choose to use the 7777 port and test the web service whrn i click invoke it give me the error
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    and when using the 4443 port it gives me the error as
    "SSL Error: unable to find valid certification path to requested target"
    please suggest how i can test a simple java webservice.
    Thanks
    Sravanti

    I think the problem is to add the custom dll files while deploying the application. Could any one please suggest how i can add custom dll file for deployment?
    Thanks
    Sravanti

  • Calling normal java web service from bpel

    hi,
    i want to call a normal java web service (which has been deployed in an application server) and not a bpel process from my .bpel file.
    i see that while creating a partner link , i have to specify the wsdl file location.
    there are two options.
    from local bpel server and
    from local file system.
    since the web service is not a bpel prcess, it can not be deployed in the bpel process manager and i have to choose the wsdl file location from local file system.
    now there are some major differences in the two type of wsdl file, i.e., that of a java web service and a bpel process.
    let me give u all a concrete example.
    let i have a hello world web service which takes a name as input , concatenates the name with "hello" and outputs.
    i created a partner link to this web service.
    after creating the partner link, a local copy of the wsdl file is added into my bpel project which only contains definition import and partnerlink statements.
    but i can not progress any further.
    can any one help me out of this problem.
    also i will be helpful if any one can suggest a tutorial where bpel is used to orchestarate between normal java web services deployed in some other application server and not mere bpel processes.
    thanks & regards.
    sudipto

    Hi Sudipto,
    Just to add to the options. There are three options.
    1 and 2 as mentioned by you.
    3 you can give the hosted wsdl location directly in the text box. (i.e. somthing like http://ws.strikeiron.com/CensusData?WSDL)
    This in turn will create a local wsdl which has partnerLink info and an import of the original wsdl.
    once you have this select the appropreate Partner Link Type and Partner Role.
    HTH
    Dhaval

  • Send an event from Java Web Service to BPEL

    Hi,
    I have a requirement where from an Async BPEL service I have to call a Java Web Service. After the completion of its task Java Web Service will fire an event that has to be consumed by the BPEL to initiate further process. Can anybody help me with how to send an event from Java Web Service and at the same time consume it in BPEL?
    Thanks,
    Anuj

    See the following posts for your answer
    http://blogs.oracle.com/soabpm/entry/event_delivery_network_chapter
    http://blogs.oracle.com/soabpm/entry/using_the_event_api_to_publish
    http://guidoschmutz.wordpress.com/2010/01/12/using-the-event-api-to-publish-an-event-to-the-event-delivery-network-edn-the-spring-way/

  • Using request object in java web service code

    Hi,
    I am working on a java web service and require the request object in my code.
    This is because i want to get the name of the user who is using this web service.
    I am getting error in the line
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    Please guide me how to use the request object.
    Please also suggest if there is any other way to get the name of the user who is using the web service.

    Simple answer: This is not possible due a web service doesn't has such request objects.
    If you want to use the user information you have to pass it from the programm logic you are calling the web service. When you have e.g. a JSPDynPage you can read out the user information and supply this information for your web service.

  • "The Java Web Services" - ant install

    Hi, I recently downloaded "The Java Web Services" and "The Java Web Services Tutorial".
    And I've reached the Creating the Build Properties File portion of the tutorial:
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/GettingStarted2.html#73059
    I'm using Windows ME and I have no idea where to put the build.properties file.
    Can anyone give me any suggestions? I am successfully able to
    ant compile
    but I can't get
    ant install
    to work once I have done the ant compile and I suspect this is because of me not having the build.properties file set... although it could be unrelated to that.
    when I try to use:
    ant install
    I get the following error at the command prompt:
    C:\tim\programs\jwsdp-1_0\docs\tutorial\examples\gs\build.xml:46: java.io.IOExce
    ption: Server returned HTTP response code: 401 for URL: http://localhost:8080/ma
    nager/install?path=%2Fgs&war=file%3AC%3A%5Ctim%5Cprograms%5Cjwsdp-1_0%2Fdocs%2Ft
    utorial%2Fexamples%2Fgs%2Fbuild
    Now tomcat is running on the correct port (8080) and the directory being referenced in the above URL exists. Am I supposed to map tomcat to a particular file system or something?
    Thanks,
    Tim
    PS I have another post in this forum (it contains only my first question concerning the build.properties file), so if you would like the Duke dollars for both posts, feel free to post in both threads and if your answer helps me out, I'll give you the Dollars from both threads.

    Hi Tim
    I have the same problem with the build.properties file. i am not able to solve the problem. did u find any solution for that problem u had. so plz let me knpow about that. i would appreciate if u could mail mne at [email protected]
    thanks in ADV.

  • Consuming Java Web Service with complex return types

    Hi,
    I'm consuming a Java Web Service and the return I get in
    ColdFusion is a typed Java Object (with custom Java classes like
    com.company.project.JavaClass ...)
    Within this object I don't get direct accessible properties
    as when I'm consuming ColdFusion Web Services, instead I get a
    getPROPERTYNAME and setPROPERTYNAME method for each property.
    How can I handle this? I don't want to call this methods for
    each property (and there are nested objects with arrays of custom
    classes below, which would really make this complicated).
    What's the best way to cope up with this?
    Thanks a lot,
    Fritz

    The web service is actually the function, not the cfc and you
    didn't show a function.
    My own opinion is that since webservices by definition should
    be available to any calling app (cold fusion, .net, flash, etc),
    whatever gets returned from the method should be as universally
    recognizable as possible. This generally means text, numbers,
    boolean, or xml.

  • Unable to create java web service

    morning all
    Being new to ejbs I created a simple ejb project comprising one entity bean and one session bean. The session bean exposes two methods one to retrieve individual employee data (return object EmployeeData class which implements java.o.Serializable) and a second retrieving all employee data (return object java.util.Collection).
    When I attempt to create a Java Web Service and select the session bean to expose as a web service the method are grayed out, clicking 'Why Not?' displays a message box showing the message
    'The following parameter types do not have an XML Schema Mapping and\or serializer specified'
    What does this mean and how do I solve it?

    Hi,
    The java.io.Serializable marker is not consulted when determining whether a Java object can be transmitted in a web service invocation. Instead, each parameter and return value of a web service method must conform to one of the 3 rules below:
    1. It is a Java primitive (int, long, byte etc.), Java primitive wrapper (java.lang.Integer etc.), or a java.lang.String.
    2. It is a Java bean with a zero-argument constructor, and a pair of "get" and "set" methods for each property to be exposed. Each property must itself conform to one of these 3 rules.
    3. It is an array of a type that meets either rule 1 or rule 2.
    In the first case, I'd hazard a guess that your EmployeeData class doesn't have the form of a Java bean. Make sure it's got the zero-argument constructor, and that all of the "get" and "set" methods use types which are themselves publishable.
    In the second case, java.util.Collection doesn't conform to any of the 3 rules above. However, once you've fixed your EmployeeData class, you can convert the method that returns the Collection into a method that returns a EmployeeData[], which you will be able to publish in your web service.
    Hope that helps,
    Alan.

  • Web services and EJB3 @resource annotation

    This block of code works fine when NetworkViewBean is left as a @Stateless session bean.
    Once I have JDeveloper 10.1.3 production expose it as a web service, I can no longer call the Entity Manager @Resource.
    I always get a java.lang.NullPointerException returned.
    Any ideas?? thanks for your help!
    @WebService(name = "NetworkViewWS", serviceName = "NetworkViewWS")
    public class NetworkViewBean {
    @Resource
    private EntityManager em;
    public NetworkViewBean() { }
    public String getDeviceVendorModel(String name) {
    if (name == null || name.length()== 0) return "Null Input Parameter Specified";
    NetDevice N= null;
    try {
    N= (NetDevice)em.createNamedQuery("findByDeviceName").setParameter(0, name).getSingleResult();
    catch(Exception E) { E.printStackTrace();  return null; }
    return "Vendor= "+ N.getVendor()+ ", Model= "+ N.getModelNumber();

    Hi Joshua,
    The problem is that you are using a regular Java web service and in 10.1.3.0.0 we do not have support for dependency injection in the container in the web container i.e. you cannot use annotations such as EJB, Resource in any classes in the web container.
    You have two options:
    1. Lookup an EJB from regular Java web service (JSR-181)
    or
    2. Make your Web service as a EJB 3.0 web service
    Here what you can do to create an EJB 3.0 web service from JDev
    1. Create an EJB 3.0 Session bean with remote interface
    2. Change your remote interface to a web service end-point change @Remote to @WebService (import javax.jws.WebService)
    3. You do not have to use @WebMethod, we automatically expose all methods in the end-point interface in the web service
    4. You can inject EJB using @EJB
    5. Create a deployment profile for the EJB-jar and deploy the ejb-jar and the EJB will be exposed as a web service. The context-uri for the web service will be /ejb-jarName
    Hope this helps!
    -Debu Panda
    OC4J Product Management
    blog: http://debupanda.com
    -Debu

  • Need advice about web services and Java beans

    Hi
    I am very new to web services and to Java beans as well.
    I am trying to understand if and how a web service can use functionality I have in a Java bean. I couldn't find any documentation I can use.
    For example:
    InitialContext ic = new InitialContext();
    Adder adder = (Adder) ic.lookup("ejb/AdderJNDI");In a EJB client project (I'm working with Eclipse) if I add the EJB project to the build path, the Adder interface is recognized.
    Theoritacally I thought I can do the same in a web service server project, but the Adder interface is not recognized.
    Is there something I can read to understand how I need to use the EJB or implement the web service?
    Many thanks
    Sigal

    Okay....I think I made some errors with the original scenario:
    It basically comes down to this....I think. OCS Calendar has a set of Java classes and methods that provide an abstraction for their web services interface. I know how to create something to use these classes using an IDE like JDeveloper, but I'm not sure how that would work with HTML DB.
    I've noticed that the SQL Workshop has a place for Java sources and classes, and I've heard mentions of PL/SQL wrapping. Is there a way to import classes into an HTML DB workspace, wrap 'em up, and access them via PL/SQL?
    Thanks again,
    Jonathan

Maybe you are looking for

  • Error message & warning message while creating PO

    Hi, I have one requirement like when user create PO with 'critical material',while saving PO,user should get message "critical material". For this ,in the enhancement MM06E005,EXIT_SAPMM06E_012(functional module), I have written piece of code *critic

  • Migration from HP-UX to Linux DB for UPK3.5

    Hi all I have a customer who wants to migrate the UPK server from one server to other also the repository database used by the UPK server. Old UPK server details UPK server platform:Windows 2003 SP2 UPK version:3.5 Database platform:HP-UX DB Version:

  • Error Message "PLS:707, unsupported construct or internal error "

    I am having a Stored Procedure which runs most of the times successfully when executed.But all of a sudden it throws a error message ERROR at line 1: ORA-06553: PLS-707: unsupported construct or internal error [2601] ORA-06550: line 1, column 7: PL/S

  • Dv7 4296nr change to Solid State Drive

    I have a new dv7 4296nr and I would like to add a 120 to 160 gig Solid State hard drive to run the OS and some apps (AutoDesk Inventor, MS Office etc).  What hard drive should I use? There is room for a second hard drive in the laptop case, what do I

  • What is the best antivirus/malware protection software for my iMac desktop

    What is the best antivirus/malware protection software for my iMac