The service class does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly

前端 未结 5 496
傲寒
傲寒 2021-01-19 04:51

I am new to Java Webservices, currently I am trying to create a simple SOAP based web-services but getting issue in creating it.

Here is my webservice class:

5条回答
  •  天命终不由人
    2021-01-19 05:35

    The primary reason why the collection classes are not standardized for use in Java Web services is that they are loosely typed collections. In the absence of significant additional data from the user, it is not possible to map a Java collection to a well-defined Schema and clear rules to the runtime for serializing and deserializing elements of the collection.

    Use Java arrays instead of collections to represent sequences of elements in WSDL. Java arrays are strongly typed and, as a result, map to and from strongly-typed Schema, yielding interoperable WSDL and SOAP traffic with clear rules for deserialization and serialization to and from Java. See link.

提交回复
热议问题