JAX-WS return empty lists

后端 未结 2 1126
情深已故
情深已故 2021-01-23 04:32

I\'m new in web services. I have faced some problem. At the server side i\'m using spring-ws. At the client side i\'m using jax-ws. With wsimport tool i have generated java clas

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-23 05:02

    I just answered a similar question in How can I handle Castor unmarshaling of SOAP messages when the namespace is defined inside the operation tag? - if you're using Spring-WS, you're writing contract-first web services, so make sure you really nail that contract down. Put all your elements in a namespace, make sure your XSD schema expects elements to be qualified, and declare ns-uri and ns-prefixes in your Castor mappings. It's worth the effort.

提交回复
热议问题