JAX-WS: why nested elements are in “” namespace?

前端 未结 2 2023
谎友^
谎友^ 2021-02-09 19:24

Having a toy service as below

@WebService(targetNamespace=\"http://www.example.org/stock\")
@SOAPBinding(style=Style.RPC,parameterStyle=ParameterStyle.WRAPPED)
p         


        
2条回答
  •  天涯浪人
    2021-02-09 20:14

    This behavior is proper per the WSI-Basic Profile. If you look at:

    http://www.ws-i.org/profiles/basicprofile-1.1.html#Part_Accessors

    section 4.7.20, assertion R2735 specifically states that for RPC/Literal, the part accessor elements must be put in elements with no namspace.

提交回复
热议问题