Tutorials about WebServices and Java

I am looking for general info on how to use WebServices in Java. Has anybody have sample Code?
I want to implement a WebService that sends large amounts of data to the client. Can a WebService send complex Objects to the client?
thx

It took me almost 3 seconds to find this so I can see why you would ask. http://java.sun.com/webservices/tutorial.html

Similar Messages

  • SOAP, webservice and JAVA

    Hi, all,
    If there are two different business systems need to exchange data, after sending and receiving messages, they both have to update their database. Do you think directly using JDBC adapter to insert/update each other's tables is a secure and effient way? Or using JAVA/APAB proxy to send out data, then using SOAP adapter to receive the data, and then using Java program to update database is much better?  Can anybody provide any sample scenario and Java programs for the later? Any comment will be highly appreciated!
    Marea

    Hi Marea,
    I am slightly confused with your question... Anyways i have given you all the info regarding JDBC Adapter and how it actually works...
    A JDBC sender adapter has 2 essential fields,
    1. SQL Statement
    2. Update Statement
    Your SQL statement will contain your SELECT statement and once your SQL statement is executed, UPDATE statement is executed. This is done so that records that have been selected by the SQL statement should not be selected again as the JDBC sender adapter will poll over the database for every poll interval.
    If you want to SELECT something from your Database, then you will have to go for a JDBC sender adapter.
    But, if you want to insert/update your Database, then you can go for a JDBC receiver adapter.
    Multiple insertions are possible for a JDBC receiver, but multiple Selection queries (different select queries) are not possible for a single JDBC sender adapter.
    Just check these links to understand how JDBC adapters work,
    If you wanna do update/insert you will have to follow the
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm">Document Formats for the Receiver JDBC Adapter</a>
    For Configuring the Receiver JDBC Adapter refer:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm">Configuring the Receiver JDBC Adapter</a>
    For Configuring the Sender JDBC Adapter refer:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm">Configuring the Sender JDBC Adapter</a>
    To access any Database from XI, you will have to install the corresponding Driver on your XI server.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Or on the JDBC end you can write a stored procedure to make your data update more efficient.
    Go through this blog for stored procedures.
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    Please go through this blog and see if it helps you.
    /people/prasadbabu.nemalikanti3/blog/2006/02/27/collecting-and-bundling-vendor-records-from-different-multiple-interfaces-file-systempeoplesoft-and-sending-to-sap-r3-system-part-2
    For more info, just take a look at these links also,
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    I would suggest you to go through the following documents for use of JAVA in relation to database.....
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    Please go through the steps mentioned in all of these links.
    Regards,
    Abhy

  • WebServices and Java/Weblogic RPC Client

    Hi,
    I have a simple usability question :
    - Where would I want to use a java client that invokes the (WebLogic) Webservice
    using RPC/SOAP - especially the static client model?
    - Probably the corollary to that would be - why wouldn't I simply invoke the ejb
    using the EJB interface invocation?
    In both cases, the information required by the developer to write the code is
    same, the coding effort is same (only the Properties object being passed to obtain
    the InitialContext is populated with different values) - and everything is hardcoded
    i.e. no dynamic behavior advantage.
    I ran some quick and dirty benchmarks and the webService client is slower than
    the mundane ejb client to the order of magnitude of 1:4, 1:5. (duh .. xml!)
    Two advantages that I can think of are :
    - Because of HTTP, firewall/port issues may be circumvented when using WebServices.
    - The thin client.jar maybe easier to distribute than weblogic.jar.
    Shall deeply appreciate any insight to the utility from a business perspective
    (read ~ convincing clients).
    Thanks,
    Ajay

    It took me almost 3 seconds to find this so I can see why you would ask. http://java.sun.com/webservices/tutorial.html

  • Question about webservice and wsdl file

    Hi All.
    I have this scenario , the customer wants to send some information as they happen
    The customer wants to use a web service to our database(JDBC)
    I understand that from this requirement , I have to develop the Object in PI , and create the wsdl file to send it to the customer , this wsdl file will have the URL and other information for the consuming of the webservice.
    Now the weired thing is the customer insists that we should use their wsdl file , I am confused about this , I understand that when the customer send their wsdl file , it is because they will act as a receiver to our request , right ?
    but if they want to act as sender , then the wsdl file should be sent from PI side based on the configuration.
    My question is it possible to create a scenario based on the cunstomer wsdl file eventhough the customer is the sender .
    if so what and how the URL will be.
    Thanks.

    Malu Mader wrote:
    > Now the weired thing is the customer insists that we should use their wsdl file , I am confused about this , I understand that when the customer send their wsdl file , it is because they will act as a receiver to our request , right ?
    > but if they want to act as sender , then the wsdl file should be sent from PI side based on the configuration.
    refer Walkthrough - SOAP  XI  RFC/BAPI
    your URL will be;
    The inbound address for SOAP messages is: http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel
    Under party:service:channel enter the party name, the service name, and the name of the communication channel. If no party has been created, enter the following: channel=:service:channel

  • I need help about algorithmics and java.

    I want to resolve the next problem:
    A technologic factory with M workers has sended N products to a conference about them.The "n" product have a list of workers which have worked in his developement and can make the presentation. Each worker have a number between 1 and N, every presentations are a in a diferent hour.The factory want than all products have presented but with the minimum number of workers.
    Implment an algorithm based of in branching to make this rule.
    THAN YOU; I NEED YOUR HELP.
    If you want to see the problem in Spanish go to:
    http://www.dlsi.ua.es/asignaturas/ea/ea.html

    You have a simple algebra problem. Break down your problem in mathematical term. Isolate each step of your problem. Solve each step in Java and you will have your algorithm.

  • Created Outside-In webservice and Java Proxy

    Hi,
    I had created Outside-In webservice using XI 7.1 and implemented java bean with MDM API.
    I had retreived the image from MDM and converted to binary and stored in local.
    Now i wanted to attached the image in the response structure.
    How to acheive that to send data via httpsoap request?? Since the we need to attach the response structure with image.
    Anyone please give some idea or inputs..It will be helpfull..
    Thanks
    Sabari

    Hi,
    I had created Outside-In webservice using XI 7.1 and implemented java bean with MDM API.
    I had retreived the image from MDM and converted to binary and stored in local.
    Now i wanted to attached the image in the response structure.
    How to acheive that to send data via httpsoap request?? Since the we need to attach the response structure with image.
    Anyone please give some idea or inputs..It will be helpfull..
    Thanks
    Sabari

  • About BC4j and java stored procedure

    Is it possible create a java stored procedure using BC4j and deploy to Oracle9iR2 VM?
    If it is possible, how about the performance compare to PL/SQL stored procedure?

    In 9.0.3.3 it will be possible again. The ability to deploy a BC4J-based, local-mode Java Stored Procedure was broken in 9.0.3 before this upcoming maintenance release.
    PL/SQL will almost surely be faster if you are talking about just doing basic DML type of operations, when compared to Java stored procedures.

  • Question about Flash and Java in OS X 10.6.6...

    I am about to get a MacBook Pro this weekend (after having numerous problems with Windows and getting it to work with my hardware - that led to me thinking of buying a Mac. Nothing to do with viruses actually ;))
    Anyhow - does Snow Leopard 10.6.6 ship with Adobe Flash, or do I need to install Flash myself? I'm not too concerned with doing that (I prefer to as I know I'm installing the latest version - just like Windows!)
    Secondly - does Apple provide updates for Java as well? Do I need to install Java myself, or does Snow Leopard ship with Java pre-installed too?
    Lastly - this is just your opinions, but which out of Safari, Chrome, Opera and FireFox do you consider to be the safest (and securest) browser for Mac?
    Thanks,
    Xavier12.

    It is best to follow Adobe's instructions for updating its software, which varies by the product & versions involved. This usually works well but Adobe is one of those companies big enough to play by its own rules, sometimes ignoring Apple's developer guidelines or inventing its own API's instead of using the Apple provided ones that do the same thing, so there is a small chance things won't go as expected even when you follow the instructions to the letter.
    If this happens it is best to seek advice on a product by product, version by version basis.

  • About Flash and Java in OS X Lion

    Hi.
    I see that Apple released two different updates to remove flashback trojan. I have read that it depends on your installation and if you have Java installed or not.
    I thought that Java was included in the OS, wasn't it?
    Lion doesn't have it and you have to install by yourself?
    Flash should be downloaded from Adobe's site, but what about Java? It's need to install it? Should be installed? What should be safer?
    So, all new computers doesn't include neither Flash neither Java, or is it something related to a clean install?
    Thank you!

    diego iceman wrote:
    So, Lion, anyway you get it, won't have Java intalled, right? It doesn't matter if you get a new Mac, if you upgrade from 10.6.8, or if you clean install Lion?
    Correct.
    No new Mac will bring Java anymore? It's due to security?
    Well, sort of. It's also due to an agreement with Oracle that they would be responsible for Java 7 and higher, but they weren't quite ready when Lion was released (it's available now).
    And what about Java preferences.app? If I try to use it, it ask me to install a Java enviroment...it's just a normal thing, right?
    Yes, it's normal.
    Is it really more safe to have it uninstalled?
    Not today, but there are known vulnerabilities in the current version that someone might figure out how to exploit in the same manner as Flashback and a couple of other malware developers did with the last version.
    What can I miss if I don't install it?
    You will be told if you need it. There are a few applications written either partially or completely in Java (CrashPlan is probably the most popular). Some web sites still use it. A few banks and someone said they could not get into their AT&T account without it, but I've not had any problems. I read some statistics that slightly over 5,000 of the top 1 million web sites contained Java code, so not very many.

  • General doubt about devices and java applets

    I have one general doubt abt devices.
    Do all devices come with an SDK so that any language can interact with them?.
    Whats does it mean if i say that i need to build a CAB file for the devices
    and use them in my html object tag.
    Can programming languages like java(applets) or asp interact with devices
    once if we specify the classid and the cab file location(codebase)

    Let me make it more clear
    What i need is if we r using an ActiveX Component then we pack the .ocx and inf file into a cab file and give the location of the CAb file in the codebase attribute of object tag.
    When the browser renders the page, it will look into the classid attribute of object tag to see whether there is an entry in registry if not it will go to the location specified in the codebase and get it registered locally.
    As you know ActiveX works on windows.
    I want to implement the same thing in a platform independent way.
    So i chose java applets.
    Now i don't know what to do in this codebase part.
    i need to install the device driver files and all from the server once a person view the web page.
    when we use activex the classid field represents the device's entry but when we use applets thats the version of java being installed.
    Can any one suggest an idea to move.

  • About JavaFX and Java Web Toolkit

    DZone web site published a post named "JavaFX 2.0 Without Java VM in Web Browsers: Java Web Toolkit (JWT) compiles JavaFX down to HTML5 and JavaScript".
    It's a great new!
    Is this Java Web Toolkit an offcial part of JavaFX 2?

    May be Oracle is also planning to do something same like Adobe did for fla to HTML5(Wallaby).
    I found the performance is quiet bad during fla to html5. So I wish it wouldn't be happen to JavaFX 2.0.
    Thanks.
    Narayan

  • Jdev webservice and java.util.Collection

    Hi,
    i write a web service based on an stateless
    session EJB i have 2 method who return double
    and they work fine.
    But i have added a method who return a Collection and
    when i try to regenerate my web service i got
    a message error because the return type does not
    have an xml chema mapping and/or serializer
    specified.
    How can i fix this problem ?
    I use jdev 9.0.5.2 and oracle 9ias 9.0.4.1.
    Thank you for your help.

    I'm not a WS PM, but I think the problem here is that a java.util.Collection is a supported type for WS based on the 904 release. From what I remember the supported types are the Java primitives, their wrappers (ie java.lang.Long), java.lang.String, arrays of these and JavaBeans which have fields of these types.
    I think if you want to use Collections then you need to use the JAX-RPC enabled Web Services which we provide in the 10.1.3 releases of JDev and OC4J.
    cheers
    -steve-

  • Problem about aix and java.util.Date

    Hello,
    I am using AIX 5.1 with JDK 1.4 and i got a problem
    using this JDK 1.4
    I was using the jdk 1.2.2 and it gets to me the correct
    date from the system ... i've never exported any environment
    variable like lc_type, lang , etc ...
    but now, using jdk 1.4, i get wrong time, one hour less,
    can i have to export some environmental variable? which ones?
    because i've tried with LANG=es_ES , LC_TYPE and it doesn't
    work
    thank you
    [email protected]

    It seems to have to do with default time zone.
    You can consider explicitly defining the time zone you want the dates to be formatted against.

  • About VRML and JAVA question?

    i have some question......
    import vrml.*;
    import vrml.field.*;
    import vrml.node.*;
    public .........
    when i complie the file contain this, the complier said that there haven't this files or function, how can i use this function? where can download this?
    Thank you

    when i complie the file contain this, the complier
    said that there haven't this files or function, how
    can i use this function? where can download this?There are no packages called vrml.* in the jdk. What do you want to do with the files? If you want to visualise the models you could have a look at Java3D, they have some preprogrammed model loaders for VRML if I remember correctly. If you just want to manipulate the markup you can also use the DOM or SAX parsers.

  • Question about database and java

    Suppose i have a form with a bunch of textboxes etc.
    What is the best way to send the data from the
    result set to the form objects.
    Thanks in advance
    Maggie

    hi,
    first you use the array of buttons then in a loop
    you should adopt the logic
    for(i=0;i<=10;i++)
    myButton.setTrxt(RecordSet[i]);
    where condition depends on the no of buttons.
    zafir

Maybe you are looking for

  • How do i transfer music from my old ipod to my new one?

    how do i transfer music from my old ipod to my new one?

  • Install drive error

    Acrobat X installer (from DVD) apparently has a default drive which probably cannot be a network share.  I am trying to install and it kicks back an error concerning my H: drive which  is my network share.  How can I get it to install on C: or D:? Th

  • Modfification of ESS~Cod application.

    HI Experts, I have a requirement to modify the ESS Chnage Own Data Application where we are storing inofmation like telephone no and fax no. While i have download the DC ESS~cod , but i am unable to find the view , where i can get these fields like f

  • Error printing with CUPS (SOLVED)

    Could some kind CUPS guru help me with a problem printing through CUPS? I have a postscript file which rendesr normally in all the software I have (okular etc) but for some reason does not print. The CUPS log shows: D [18/Dec/2012:08:27:57 +0000] [Jo

  • Description of 0TCTBWOBJCT (Query Runtime Object in Technical Content)

    Hello, who can explain to me the meaning of $-objects in the masterdata of the characteristic 0TCTBWOBJCT? The object type is ELEM. So what special kind of queries are these? Examples: $!1<infoprovider>, $<infoprovider>, $1|<infoprovider> $VIRTUAL-00