Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jacob Sonia
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell me how can i do this...
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Posts: 183
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    actually i didn't exactly understand the meaning of code first and wsdl first.
     
    shivendra tripathi
    Ranch Hand
    Posts: 263
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic