• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
Bartenders:
  • Himai Minh
  • Carey Brown
  • Frits Walraven

RPC mapping file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

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.
 
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 think I'll just lie down here for a second. And ponder this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic