Which class, Spring Framework or Web Aervices with Java?

So, I hope it's okay to post this type of question here. I'm trying to figure out which would be better to take, a 4-day course from SpringSource on the core capabilities of the Spring Framework, or a 4-day course on building web services with Java? I'm very interested in both. Both would be equally relative to the work I do. I guess the question I have is, which would be better for a J2EE developer to take?
Keith

Spring is actively used, so are web services.
But remember that "SOA" is NOT web services. Web services may be a part of it, but it's a lot more.
Web services are in flux, what you learn today may be outdated tomorrow. Better get some good books and experiment on your own rather than spend thousands of Euros on some training course written with last year's hyped tech.
Same is of course true of all specific technologies. If you take a Spring course today based on Spring 2.0 or 2.5, in a year or so it'll have been overtaken by the next version.
That said, at least the basic concepts behind Spring are unlikely to change fundamentally :)

Similar Messages

  • Preparations to learn Web Services with Java

    I have only worked with JSP,JDBC, JavaBeans and Servlets in Tomcat using MVC architecture the past couple years. I have never used Struts framework. I am thinking about taking a Web Services with Java course and was wondering if my background will be enough to keep up with the advance topic of Java web service?

    Yes, at first you should have to worry about understanding the basic concepts, WSDL, and a little bit of XML (it does not make very senso to study far too much because sometimes you won't use all the api you may study).
    The focus point is understanding that you can build a web service infrastructure passing using many different approaches: starting from wsdl, starting from java, based on WSDL, based on REST and things like that.
    JAX-WS is a very powerful toolkit that covers well all the possible approaches you may have.
    Anyway starting from scratch is quite frustrating... it is difficult to find around a good guide that covers all the aspects and make you understand the Big Picture. That's really the focus point.
    There is a very good book about written by Mark Hansen.
    Check out also that there are so many franmeworks around that implements the specification: almost every Corp. implements its own stack.... Sun, Apache, Spring, IBM, JBOSS and so on.
    This is quite misleading at first.
    Metro is very good and very well implemented with netbeans, and it's easier to start with it. anyway it hides you sometimes what's going on underneath.
    I find CXF is a very good framework, and if you love the SPring wayyou should consider give it a chance.
    I have no experience of other frameworks.

  • SAP Web Dynpro With Java

    Hi Guys
    A situation at work has forced me to learn web dynpro    with java. I already have some experience with the ABAP    web dynpro   . Now the question is how much "java" do i need to learn to learn sap WebDynpro    based on java. Should I first try and get a fair 'hands on' on core java and then shoot for web dynpro    or should I take the other approach, that is just learn as much java as is required for web dynpro   . Any suggestions?
    thanks
    sameer

    Hi Sameer,
    I believe you need not thoroughly know Core Java to begin for Web Dynpro Java but yes, you should have a fair idea about object, class and exceptions that i believe you would already have after working in ABAP. The UI elements can be just inserted into the component by drag and drop and codes correspondly would be auto generated. Only for customization of some functionalities, you will have to write code in Java using APIs.
    Just go through the following tutorials recommended by SAP to start over Web Dynpro Java on NWDS.
    http://help.sap.com/saphelp_nw70/helpdata/en/16/c0d93f5e0f9015e10000000a155106/frameset.htm
    Regards,
    Tushar Sinha,
    Infosys,
    Hyderabad

  • Web site with Java Scripts ( on iphone4)

    try to open a web site with Java scripts , but it just show empty on the scripts section , anyone can help ? (on iphone 4 with iOS 4.1)

    Hi, welcome to Apple Discussions.
    Web pages that make use of Javascript should work just fine. Those that have embedded Java applications won't. Java & Javascript are two different animals despite the similarity in the names. Like Flash, Java is not supported on iOS.
    tt2

  • On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this?

    On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this ?

    Thanks for posting this!
    I would only mention that your definition is incomplete for this -
    Contextual selector A type of Style Sheet Selector that
    and that it's most often referred to now as a Descendent selector, not a contextual selector.  It's basically the same as the Compound selector that you have already defined....

  • Web site with java benchmarks for various cpus?

    Is there a web site that shows java benchmarks run on various P4 and AMD cpus, so that it is possible to see the relatively speed at which java runs on these cpus?

    You'll find a few if you search around, but none will be meaningful. The problem with Java, or any other Virtual Machine type runtime language is you can not design a benchmark that really has meaning, in any context but the benchmark itself. First off, you're not benchmarking "Java" you're benchmarking the "JVM". I try to convince people to not waste so much time on these speed issues. Your time would be better learning how to write better code, which would give a much bigger speed increase then switching from a P4 to an Athlon. Developers often make mistakes and oversites in their work that slows a program down by an order of magnitude. You're never going to see that kind of performance difference in CPUs. So get a good deal on machine, the most "bang-for-your-buck" if you will, and go to town, and stop worrying, hotspot is fast.
    Sparc Chips are different story because a little thing called register coloring... but you didn't mention sparc chips, so I won't tell the story.
    Spinoza

  • Weblogic - a web service with java.lang.Object parameter

    hi all,
    i'm creating a web service with a java.lang.Object parameter.
    my question is as follows:
    when a client calls the web service, how to i get the soap message object and convert it to soap message string using the parameter?
    thanks,
    alex

    Here's some code from one of the Axis samples, this shows the basic process of making a call:
    package samples.message;
    import org.apache.axis.client.Service;
    import org.apache.axis.client.Call;
    import org.apache.axis.message.SOAPBodyElement;
    import org.apache.axis.utils.Options;
    import org.apache.axis.utils.XMLUtils;
    import org.w3c.dom.Element;
    import java.net.URL;
    import java.util.Vector;
    public class TestMsg {
    public String doit(String[] args) throws Exception {
    Options opts = new Options(args);
    opts.setDefaultURL("http://localhost:8080/axis/services/MessageService");
    Service service = new Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress( new URL(opts.getURL()) );
    SOAPBodyElement[] input = new SOAPBodyElement[2];
    input[0] = new SOAPBodyElement(XMLUtils.StringToElement("urn:foo",
    "e1", "Hello"));
    input[1] = new SOAPBodyElement(XMLUtils.StringToElement("urn:foo",
    "e1", "World"));
    Vector elems = (Vector) call.invoke( input );
    SOAPBodyElement elem = null ;
    Element e = null ;
    elem = (SOAPBodyElement) elems.get(0);
    e = elem.getAsDOM();
    String str = "Res elem[0]=" + XMLUtils.ElementToString(e);
    elem = (SOAPBodyElement) elems.get(1);
    e = elem.getAsDOM();
    str = str + "Res elem[1]=" + XMLUtils.ElementToString(e);
    return( str );
    public static void main(String[] args) throws Exception {
    String res = (new TestMsg()).doit(args);
    System.out.println(res);

  • Call ABAP Web Service with Java code only

    Hi all,
    First of all, I am writing script in Adobe form but am not using the one in SAP.
    I am trying to call the web service and process the result with script open (i.e. no dataconnection created), because I am trying to do that in a dialog.
    I can call a non-SAP web service without problem, but I am not able to call a simple web service with only a single string input, anyone have any example?
    Here is the SOAP for input:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:rfc:functions">
       <soapenv:Header/>
       <soapenv:Body>
          <urn:Z_RFC_GET_STAFF_BANK_INFO>
             <A_STAFF_ID>0123456</A_STAFF_ID>
          </urn:Z_RFC_GET_STAFF_BANK_INFO>
       </soapenv:Body>
    </soapenv:Envelope>
    Here is my code to call:
         var cURL = "http://some-host-name:port/sap/bc/srt/wsdl/bndg_DEDB492BB032E7F1B09F001CC4FBCEC9/wsdl11/allinone/ws_policy/document?sap-client=300";
         var response = SOAP.request(
              cURL: cURL,
              oRequest: {
                   "urn:sap-com:document:sap:rfc:functions:Z_RFC_GET_STAFF_BANK_INFO": {
                        A_STAFF_ID: "0123456"
    Regards
    Bill

    Hello I have the same problem, were you able to execute the WS through the JS code now?
    I would like to call an ABAP WS using JavaScript to return complex structures that I would like to manage directly with JS.
    I tried with this code and I get the error "RaiseError: Acrobat Raise." when the request is executed:
    var WSUrl = "http://<server>:<port>/sap/bc/srt/wsdl/bndg_4D15C75529330AF1E10000000A150429/wsdl11/allinone/ws_policy/document?sap-client=500";
    var VendorNumber = xfa.form.DATA.DATAFLOW.SF_HEADER.VENDOR_NUMBER.rawValue;
    try {
    // Create request structure, read Input out of text field
    var request = {
              "urn:sap-com:document:sap:soap:functions:mc-style:ZWsTest" : {ILifnr: VendorNumber}
    SOAP.wireDump = true;
    // Call web service using SOAP object
    var response = SOAP.request ({
            cURL: WSUrl,
            oRequest: request
    //        cAction: "urn:sap-com:document:sap:soap:functions:mc-style"
    } catch (e) {
        xfa.host.messageBox(e.toString()); //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
    with this other code I get the error "SOAPError: CX_ST_MATCH_ELEMENT:XSLT exception.System expected element 'ILifnr'":
    try {
        var myProxy = SOAP.connect(WSUrl);
        var result = myProxy.ZWsTest( { ILifnr: VendorNumber } );
        xfa.form.DATA.DATAFLOW.SF_HEADER.E_DESCRIPTION.rawValue = result;
    // Display the response in the console:
       console.println("Result is " + result);
    } catch (e) {
        xfa.host.messageBox(e.toString()); //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
    in the second option, if I make the field ILifnr optional the call is succesfully performed but the parameter is not passed to the WS. So the call is working.
    Using stand-alone LiveCycle designer 8.1 and Adobe Reader 8
    Any suggestions?
    Many thanks,
    G.
    Edited by: Guillem Mateu Navalón on Jan 13, 2011 1:13 PM

  • I can't see the iViews or jpegs which I added into the Web Page with WPC

    Hello,
    I'm using Netweaver 2004's.
    I created a Web Page in the Web Page Composer and in the Site Navigation a Navigation Node to this Web Page.
    Then I added a jpg and an iView to this webpage.But I can't see this iView or this jpeg if i open the Web Page.
    I'm superadministrator and i have the rights to watch this page
    But if i click "Edit Page" i can see everything.
    What can be wrong ?

    Tobias -
    I think Ursula is on the right track here.
    I was having the same issue (not seeing iviews in the page - even in edit mode).
    I think the solution (somehow) is configuring the initial permissions in the Security Zones.
    The only problem is that the documentation is incorrect. The correction is in an SAP Note.
    Below is the configuration (correction is bolded!):
    Documentation says:
    Defining Permissions for Security Zones
    1. Navigate to Security Zones &#8594; com.sap.nw.wpc &#8594; <b>wpc (not pagebuilder!).</b> (The documenation says com.sap.nw.pagebuilder. This is incorrect!)
    2. Define permissions for Web site owners and, if necessary, for authors.
    a. From the context menu of the medium_safety folder, choose Open Permissions.
    b. Give the wpc_editor_role role - or a user group - the permission End User.
    You can leave the default entry for the Administrator column as None.
    c. Choose Reset Child Permissions.
    d. Choose Save.
    3. Define permissions for users.
    a. From the context menu of the no_safety folder, choose Open Permissions.
    b. Give the everyone group - or another user group - the permission End User.
    You can leave the default entry for the Administrator column as None.
    c. Choose Reset Child Permissions.
    d. Choose Save.
    I made this change, and now I can see iviews in the page.  I won't swear this is the solution, but that is the only change I have made lately.
    Hope this helps.
    BTW - this <u><b><i>corrected</i></b></u> setting of the security zones corrected other problems I was having. Before I did this, a user with the WPC role - but not super admin - could not edit pages from the published page (the Edit Page link at the top of the page in runtime). Now the user can.

  • Java Web Service with Java 1.4

    I had been using JAX-RPC (DII) and Dynamic Proxy to call Sharepoint web service. I can make it work with static web service but not dynamic web service.
    I am just seeking for other web service technology to work on dynamic web service. Do you think Axis2 or jax-ws works with ajava 1.4?
    Thanks.

    Cristian,
    Please post the question in relevant forum
    Thanks
    Bala Duvvuri

  • How can I create a web server with Java?

    I was interested in working on a program that runs through it's own port on the server similar to webmin.. Basically I'd like a light-weight no thrills web-server for the base of my program I can tweak it later. How can I do this?

    -I agree! but you dont have to re-invent the
    wheel.....Sometimes it is fun to...You only say that because you are a (lovely) nerd :)I got promoted from a "geek" to a "nerd" :)
    I agree that it is fun to implement application
    servers etc, but you also have to think about the
    cost (if some one else than you is paying for your
    time)I get lots of "paid" free time occasionally. But I haven't got as far as implementing web servers (or application servers).

  • Connecting a web script with JAVA

    Hi
    I am Trying to connect a php script from a java program. But I don't wan to implement a socket capability in the PHP script. My Main aim is to just measure how long it takes for the Entire PHP script to run. so my code might just look like this
    var1 = System.currentTimeMillis();
    connect the webserver script
    var2 = System.currentTimeMillis();
    response_time = var2 - var1;
    Is there any way i can recognise that my script(PHP) has completed executing? so that I can goto the step var2 = ..
    Basically I just want the code for "connect the webserver script". :)
    cheers
    ashay

    Open the URL directly back to the server with;-
       String host = getCodeBase().getHost().toString();
         try {
              URL url = new URL("http://"+host+"/cgi-bin/myStuff.php");
    // then
    URLConnection conn = url.openConnection();
            conn.setDoOutput(true);
            OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
            wr.write("more stuff n nonsense");
            wr.flush();
            wr.close();You don't need to open a socket + u can use printWriter dataOutputStream or whatever works best for you

  • Web URL with Java Dependency in Azure??

    I have a website URL that requires a certain version of Java that is not supported by Windows 7. My only options are to "virtualize" the IE URL either with Citrix or MedV type of solution. Is is possible to host this URL in Azure with the Java
    dependency?

    Hi,
    I didn't know this "website URL", but from my experience, we can build java application, and deploy it to azure, refer to
    http://msdn.microsoft.com/library/azure/hh690944(VS.103).aspx for more details. If I misunderstand, please feel free to let me know.
    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.

  • Set filter value for a web template with java

    hi experts,
    i need to set a variable dynamicaly  depending on the Logon Name. Ok first step i did, i made a small script for the Username:
    _var url = this.location.href;
    _var x = url.substring(url.length-6, url.length);
    _var lifnr = ("0000" + x);
    _alert (LIFNR);
    ok if the username i.e B200221 my variable LIFNR gets a valid value  in this case 0000200221. but how can i use this variable in the bi commands ?
    here my xhtml coding from my webtemplate, where i want to use my variable LIFNR as template parameter:
    _var url = this.location.href;
    _var x = url.substring(url.length-6, url.length);
    _var lifnr = ("0000" + x);
    _alert (LIFNR);
        QUERY_VIEW_DATA_PROVIDER name="DP_1"
                    INITIAL_STATE type="CHOICE" value="QUERY"
                    QUERY value="VSAG_MM_VMI_KONS_US" text="VSAG_MM_VMI_KONS_US" /
                    INITIAL_STATE
                QUERY_VIEW_DATA_PROVIDER
                TEMPLATE_PARAMETERS name="TEMPLATE_PARAMETERS"
                    WEB_TEMPLATE_ACTIONS type="COMPOSITE"
                        ACTION_BEFORE_FIRST_RENDERING type="COMPOSITE" /
                        ACTION_BEFORE_RENDERING type="COMPOSITE"
                            INSTRUCTION
                                SET_SELECTION_STATE_SIMPLE
                                    TARGET_DATA_PROVIDER_REF_LIST type="ORDEREDLIST"
                                        TARGET_DATA_PROVIDER_REF index="1" value="DP_1" /
                                    TARGET_DATA_PROVIDER_REF_LIST
                                   CHARACTERISTIC value="0VENDOR" text="Lieferant" /
                                    RANGE_SELECTION_OPERATOR type="CHOICE" value="EQUAL_SELECTION"
                                        EQUAL_SELECTION type="CHOICE" value="MEMBER_NAME"
                                        MEMBER_NAME value="0000200221" text="0000200221" /
                                        EQUAL_SELECTION
                                    RANGE_SELECTION_OPERATOR
                                SET_SELECTION_STATE_SIMPLE
                            INSTRUCTION
                        ACTION_BEFORE_RENDERING
                    WEB_TEMPLATE_ACTIONS
                TEMPLATE_PARAMETERS
    how can i use my variable LIFNR  at this point :  MEMBER_NAME value="0000200221"    ?
    thanks for any idea's.
    Tony

    hi experts
    does no one have an idea, how i can use my own java variable at   BI Filter  command's in the XHTML Code ?
    thx
    tony

  • Virtual Web Camera with JMF

    Hi
    I have tried to use virtual web camera with Java Media Framework.
    And what I wanted to point out why these are important is:
    We can use them as wireless web cameras and use with Java Media Framework
    Here we need two softwares
    1. softwares available to use our mobile phones as a wireless web cameras. ex- http://www.motvik.com/
    2. Softwares which acting as virtual web camera (comes with Windows Driver Model(WDM) driver)
    Once we installed both and completed the rest of the configuration. 1st software acting as a wireless web camera and the 2nd software detects the first software as a web camera. The important thing is it acting as a virtual web camera driver. Some of them even provide SDKs.
    So as they claim their provides WDM driver and supports all the VFW and DirectShow applications,([here is a one|http://www.e2esoft.cn/vcam/]) they must detect as capturing device by the JMF registry.
    But it is not.
    Can anyone please put some attention on this? Can any one please put some light?
    If I am wrong please correct me.
    Thank You
    Edited by: deshan on May 6, 2009 9:41 AM

    Hi captfoss thanx for answering.
    Actually my web camera(real one) is detected by JMF registry as vfw:Microsoft WDM Image Capture (Win32) : 0
    So as u said if it is not a must to detect the all the cameras I have to find the hardware ID of the virtual web cam driver. It is better to ask it from original developers. Also I am interesting to develop windows virtual web cam driver, So we have full access.
    So any body has tried this kind of application?

Maybe you are looking for

  • Application sync issue

    I have the latest generation Ipod Touch with Version 3.1.2 on it and also an Iphone 3G. When I tried to sync my ipod touch tonight it removed applications from it first saying they were not compatible with my Ipod touch. When I hit sync again it said

  • Accessibility (tagging) in Acrobat 9.3.3

    I routinely tag single-page and 2-page documents for accessibility after converting them from Word 2007, and usually this is pretty straightforward. Today, I'm trying to tag a 115-page document (a fairly simple document, not a lot of graphics), and I

  • My add and remove program

    I am asked to create an add method with the following rules: When adding new elements, check to ensure there is room in the array data. If there is no unused array index, grow the array by delta elements. When removing existing elements, shrink the a

  • Comparing two XML using DOM

    Hi All, I am comparing two XML nodes having same nodes using DOM parser. <?xml version="1.0"?> <compare value="xml1"/> < test name="java">       <compare value="xml">           <node>012</node> </compare> </test> < test name="java1">       <compare v

  • Importing java class from forms 6i

    Dear people I want to import very simple java class from forms 6i, i went to programs then i choose import java classes, then it gives me error message PDE-UJ1001 failed to create the jvm. please tell me how to solve the problem. Yasser