• 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
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issue with Webservices in WLS9.2

 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In wls9, when I generate wsdl for our custom objects, the first letter of properties is capitalized. Existing web service clients(which are developed sing WLS8) expect lower case and we want to avoid making the changes on the client side.

Basically, it seems jwsc simply remove get/set and keep the rest of the method name as a property. For example, if we have the following:

private String test;
public String getTest();
public void setTest(String test);

I expect the wsdl to contain:
<xs:element minOccurs="1" name="test" nillable="true" type="xs:string"/>
Instead, we get:
<xs:element minOccurs="1" name="Test" nillable="true" type="xs:string"/>

The only workaround I found is to declare the variable public, then jswc ignores the getter/setter and just uses the variable as-is.

This is what we use to compile the webservice:

<jwsc srcdir="src" destdir="${dir.exploded}" keepGenerated="true" classpathref="ssmbeans.module.classpath" >
<jws file="/test/ComplexImpl.java" />
</jwsc>

If i use the servicegen task it works fine. But as per the bea docs http://edocs.bea.com/wls/docs92/webserv/intro.html#8.1diff it is a deprecated task so i cannot use it.

Please assist.
 
Nilesh Raje
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any views?
reply
    Bookmark Topic Watch Topic
  • New Topic