Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Weblogic WSDL problem

 
Nilesh Raje
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic