Creating a single WSDL file for several classes

We use the “Bottom Up” approach to create web services. We have 10 java classes that we want to represent as a web service. How can we create only one WSDL file for these classes? (The utility java2wsdland its Ant task only accepts one class as a parameter for generating the WSDL file.)

+3
source share
3 answers

I'm not sure if you find any tool that can take multiple Java classes and generate one WSDL for them. You can create WSDLs for each service and then combine them manually by copying the corresponding vomplex types and service operations into 1 WSDL, and then your SOAP servlet can identify these operations and call the corresponding service classes.

I hope someone can say a cleaner approach for this, as the one I propose is definitely not the best way.

0
source

Definitely not the right way to do this, by default, all tools assume that they expose one service.

, , Jax-WS (Metro Axis2 CXF), (), - @WebService "endpointInterface".

0

, , , @shivaspk, - " . WSDL . ."

0

Source: https://habr.com/ru/post/1737258/


All Articles