It's not a secret anymore!*
The moose likes Web Services and the fly likes how to convert my legacy code using JAX-RPC to JAX-WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to convert my legacy code using JAX-RPC to JAX-WS" Watch "how to convert my legacy code using JAX-RPC to JAX-WS" New topic
Author

how to convert my legacy code using JAX-RPC to JAX-WS

Jacob Sonia
Ranch Hand

Joined: Jun 28, 2009
Posts: 174
Please tell me how can i do this...
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
This depends on the approach with which your JAX-RPC code was developed:
  • If it was code-first, then yo will have to read up on JAX-WS and manually rewrite the code.
    You may be able to take the WSDL of a code-first JAX-RPC web service and use JAX-WS wsimport to generate code artfacts, which you then fill in by hand - depends on what the WSDL look like.
  • If it was WSDL-first, then you still have to do some reading, but mainly on how to generate JAX-WS code artifacts from WSDLs.

  • Best wishes!
    Jacob Sonia
    Ranch Hand

    Joined: Jun 28, 2009
    Posts: 174
    actually i didn't exactly understand the meaning of code first and wsdl first.
    shivendra tripathi
    Ranch Hand

    Joined: Aug 26, 2008
    Posts: 263
    In case of code first approch you will first write the code and then generate WSDL to expose it as web service. While in WSDL first you already have the WSDL and you are consuming that WSDL to generate service.


    SCJP 1.5(97%) My Blog
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: how to convert my legacy code using JAX-RPC to JAX-WS