This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes RPC mapping file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "RPC mapping file" Watch "RPC mapping file" New topic

RPC mapping file

Kumaran Loganathan

Joined: Jun 27, 2006
Posts: 3

I am new to web services. I have to write a standalone web service client. I have the wsdl for the web service. I used Axis2 libraries to generate the stubs from wsdl. The web service method takes a complex type as parameter and returns a complex type.My doubt is do i need a RPC mapping file at the client side?If I need one, how do i reference the mapping file from my standalone web service client.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41068
Welcome to JavaRanch.

If you have generated the client classes from the WSDL, then all the mapping should be taken care of by the generated classes. Is that not the case?

Ping & DNS - my free Android networking tools app
Peer Reynders

Joined: Aug 19, 2005
Posts: 2921
As far as I know Axis 1.x never supported JAX-RPC mappings (they were only a requirement for certified J2EE 1.4 platforms (using JAX-RPC 1.1)). In Java EE 5 (which uses JAX-WS 2.0) JAX-RPC mappings were dropped. So again it is unlikely that Axis 2 supports JAX-RPC mappings as its implementation is guided by JAX-WS.

Originally posted by Ulf Dittmer:
then all the mapping should be taken care of by the generated classes.

The idea of JAX-RPC mapping files was to support a type of (declarative) data-type coercion so that your weren't stuck with the standard WSDL-to-Java/Java-to-WSDL data type mapping. The JAX-RPC mapping file lets you specify WSDL-to-Java and Java-to-WSDL mappings to non-standard but compatible types.

In practice is was simpler to cast or transform the types programmatically, especially if your mappings weren't one-to-one over the entire application.
[ July 24, 2007: Message edited by: Peer Reynders ]
I agree. Here's the link:
subject: RPC mapping file
Similar Threads
Sample Questions for 288 - Need answers
client accesing webservice
Java -> WSDL and WSDL -> Java
Consuming 3rd Party web services
web service client