• 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

XML schema bindings generated by java2wsdl

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

I am using the "com.ibm.websphere.ant.tasks.Java2WSDL" ant task to generate the web service from a annotated SEI. The web service makes use of other pojos which are referenced through the jar files. Below is a snippet of one of the POJOs with which I am facing a problem. There are other POJOs with which the same problem occurs



With the above example, the java2wsdl task does not generate the java-->xml type in the XXXX_mapping.xml file and the WSDL file for 'getBundleSize' method. From what I understand; the java2wsdl task will generate the mappings for all the public methods. So I dont know why this doesn't work in my case. below is wsdl snippet for SessionData complex type

<complexType name="SessionDataStore">
<sequence>
<element name="name" nillable="true" type="xsd:string"/>
<element name="bundleList" nillable="true" type="tns4:BundleList"/>

I have tried running the Apache Axis 1.3 'axis-java2wsdl' ant task on the same SEI and it generates the entries for all the public methods in the POJO. WSDL snippet below

<complexType name="SessionDataStore">
<sequence>
<element name="bundleList" nillable="true" type="tns4:BundleList"/>
<element name="name" nillable="true" type="xsd:string"/>
<element name="bundleSize" type="xsd:int"/>

Can someone help me please? is there something wrong that I might be doing and what should I do so that all the mappings are generated.

Thanks in Advance
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic