• Post Reply Bookmark Topic Watch Topic
  • New Topic

XML schema bindings generated by java2wsdl

 
Sky zhere
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!