0

Situation : I am coding a web service in which soap client sends the request to web service which will update the database.

Suppose, there is a table project_team_members and service will be updating info of individual team member.
There is a column in table IS_TEAM_LEADER which can have '0' or '1' as value.

Problem: When updating TL info, if I am not sending IS_TL field from SOUP UI (A SOAP Client), it is automatically received as 'false' by default in java code.

How can i know if user is sending it or not, i mean i am not able to send null in case of boolean data-type from SOAP client

4

1 回答 1

0

这么多年后重新审视我自己的问题。
在 2012 年对自己做出回应 :)

一种选择是,将数据库中的任何内容按原样发送回服务器。但是对于这个事先读取调用是必要的。

杰西的(有问题的评论)给出了另一种选择作为答案/解决方案

如果有任何字段,例如 Foo,则通常有一个关联的 IsFooSpecified 属性来确定该值是否已设置。如果您可以访问 IsIsTeamLeadSpecified 属性?

PS:杰西没有建议任何领域,但这可以帮助其他人。

于 2018-05-09T08:55:55.573 回答