Solve com. Sun. xml. Internal. ws. streaming. xmlstreamreaderexception: Unexpected xml tag.

Source: Internet
Author: User

Before DevelopmentArticleIn the example of Jax-ws handler in, when I need to establish a corresponding WebService client, Com. sun. XML. internal. WS. streaming. xmlstreamreaderexception: Unexpected xml tag. error

 

I found a lot of problems with the Jax-ws version, but I am not doing this.

 

In fact, the problem lies in the implementation of handler. When I implement the soaphandler interface, I use eclipse to automatically generate functions defined by excuses, among which

@ Override <br/> Public Boolean handlemessage (soapmessagecontext context) {<br/> // todo auto-generated method stub <br/> return false ;//!!! <Br/>}

The value "false" is returned when automatic generation is generated, which means that the current WebService will be terminated after the handler, that is, the WebService will not return a normal result, this also causes the tag recognition error when the client wants to return the SOAP message from parse. So it will be normal if it is set to true. This function will be called twice, one is WebService inbound and the other is outbound.

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.