Write jax-ws web service and generate WSDL without XSD

后端 未结 3 1090
我在风中等你
我在风中等你 2021-02-14 02:57

I wrote a simple JAX-WS web service for tomcat application server on java.

I have one interface and on implementation class:
interface

@We         


        
3条回答
  •  囚心锁ツ
    2021-02-14 03:41

    AFAIK it ist not possible to have JAX generate a WSDL with schemas inline.

    BTW: Separating the WSDL definition and the XSD schema is a good move (you might want to use the object structure defined by the schema in a different context e.g. storing data to files or something like that).

    That said: If you need an "all in one" WSDL (because some ancient client requires it) you can always have jax-ws generate the WSDL initially and then edit it to your heart's content. The edited WSDL can be included using the wsdlLocation parameter of the @WebService annotation.

提交回复
热议问题