Axis1.4 about WebService release

Source: Internet
Author: User

How to publish WebService with axis1.4

The service class "org. gdt. sgcda. WF. impl. definitionmanageserviceimpl" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly.

Cause: the JAX-RPC1.1 does not support the return type as list type when processing the saop-XML ing.

Solution: Change the return type of list to the array type. For example, change list <userbean> to userbean [].

Background: The JAX-RPC has been deleted in javaee1.5 and is no longer in use. JAX-RPC is Java API for XML Remote Procedure client (Java Application of Remote Procedure Call Based on extensible markup language XML)ProgramInterface ).

JAX-WS (Java for XML WebService) is the evolution of the JAX-RPC, the biggest difference between the two: JAX-RPC is the RPC/encoded style WSDL, but the JAX-WS does not provide support, where the JAX-WS is mostly annotation.

Use axis1.4 to publish WebService selection style and use

Cause: axis1.4 is too old and uses the JAX-RPC to handle the mappings between saop and XML, while the JAX-RPC only supports rpc/encoded styles if you use document/literal (wrapped) or the document/literal client cannot recognize that the return type is the object or list type, array type value.

Solution: 1. Use jdk1.6 or later or the WebService provided by jdk1.6. 2. Release axis2. 3. Select rpc/encodded as the release style for axis1.

The above is my experience in using WebService and I hope to help you.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.