Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Axis2 and customizing an XML schema in a bottom-up approach

I am using axis2 to create a web service from a java class I created. Everything works well, but I'd like to be able to customize the wsdl and I cannot figure out how to do it. I tried using some JAXB annotations with my objects (using axis1) but it had no effect on the wsdl generation.

I'd like to be able to specify nillable=true for some elements and make others required. I'd also like to be able to change element names and other things. Shouldn't axis2 look at the JAXB2.0 annotations if there's no WSDL included in the META-INF folder?

I have been trying to google how to map out the schema in a bottom-up approach but I have not had luck. The axis2 website only shows basic steps for creating a web service or a client, but nothing about customizing the schema.

like image 433
ravun Avatar asked Nov 05 '22 19:11

ravun


1 Answers

To use JAXB annotation with AXIS2, you should have a look at this article :

Java Web services: JAXB and JAX-WS in Axis2

like image 166
jruillier Avatar answered Nov 11 '22 18:11

jruillier