Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

Isn't Anyone Migrating from JAX-RPC to JAX-WS?

Thread view: 
Karl Uppiano - 17 Dec 2006 19:52 GMT
Sun is recommending that web services that are based on JAX-RPC in the Java
Web Services Development Pack (JWSDP) be migrated to the new JAX-WS web
services API currently under development in the GlassFish project. JAX-RPC
will be deprecated. I posted the following query on this group and received
zero responses:
----------------------------------------------------------------------
I am having difficulty migrating a JAX-RPC application to JAX-WS.

The JAX-RPC web service uses custom parameters and return data carrier
classes. The data carrier classes look something like this:

   public class WsProperty {
       public String key;
       public String value;
   }

The JAX-RPC web methods look something like this:

   public WsProperty[] getProperties() throws RemoteException;

   public void setProperties(WsProperty[] properties) throws
RemoteException;

The resulting WSDL contains descriptors for the params and return types
along with the method itself.

My JAX-WS web methods look something like this:

   @WebMethod()
   @WebResult(name = "WsPropertyArray")
   public WsProperty[] getProperties() throws RemoteException {
       ...
   }

   @WebMethod()
   public void setProperties(@WebParam(name = "WsPropertyArray")
WsProperty[] properties) throws RemoteException {
       ...
   }

The problem is, I do not see any description of the custom data type in the
WSDL. Although the NetBeans tools seem to generate generic objects with
similar names, they do not implement anything beyond the base Object
methods. I could use reflection to get the data, but that seems wrong. Any
suggestions?
----------------------------------------------------------------------
I am probably missing something obvious.
Karl Uppiano - 18 Dec 2006 05:54 GMT
Okay... evidently... not...

That, in itself, is... interesting... I guess...
Steve W. Jackson - 18 Dec 2006 20:39 GMT
> Okay... evidently... not...
>
> That, in itself, is... interesting... I guess...

Well, in fairness, you posted the previous message on a Sunday when most
US folks aren't working, then waited fewer than 12 hours before
concluding that nobody is doing this....

You would be better off if you looked in on the JAX-WS project page at
<http://java-ws-xml.dev.java.net/>.  Or look for other projects at
<http://www.dev.java.net> (which redirects).  JAX-WS, JAX-RPC and others
there have mailing lists that are not too high-volume and include
participation by Sun staff involved in the development.
Signature

Steve W. Jackson
Montgomery, Alabama

Karl Uppiano - 19 Dec 2006 00:17 GMT
>> Okay... evidently... not...
>>
[quoted text clipped - 3 lines]
> US folks aren't working, then waited fewer than 12 hours before
> concluding that nobody is doing this....

I agree, I did not leave a long time to germinate, however, this is a busy
group, and even on a slow day, many posts see responses within a couple of
hours.

> You would be better off if you looked in on the JAX-WS project page at
> <http://java-ws-xml.dev.java.net/>.  Or look for other projects at
> <http://www.dev.java.net> (which redirects).  JAX-WS, JAX-RPC and others
> there have mailing lists that are not too high-volume and include
> participation by Sun staff involved in the development.

Those are good suggestions -- which I will follow up, but I would still be
interested in hearing from anyone in this group having experience in this
area.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.