Ksoap2 uses a sad reminder -- the server cannot process the request --

Source: Internet
Author: User

This is a really sad reminder!

Using android to access. Net's WebService was miserable from the afternoon to the evening due to namespace issues.

Remember that if ksoap2 is used, the namespace must end with a slash (/).

At the beginning, a service is called on the server and the parameter is of the datetime type. Because ksoap2 does not support the date type, all date types are converted to strings on Android. The result shows that the server receives the value 0001-01-01.

If the value is not passed in, change the datetime type on the server to the string type. Always throw"<Soap: Fault> <faultcode> soap: server </faultcode> <faultstring> the server cannot process the request. --- & Gt; the object reference is not set to the instance of the object. </Faultstring> <detail/> </soap: Fault>". Never mind until you get mad. After receiving the tips from the translation group, the translation team was able to solve the problem by failing to "/" after the namespace.

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.