私はユーザーIDの入力を持ち、SQLデータベース(最初は '1'に設定されている)からフラグを取得するシンプルなWebサービスを持っています。Webサービスは、初期値が設定された応答の定義を返します
私は(私はSQL Serverで1に設定されている)フラグのデフォルト値をユーザに照会するときしかし、私は次の応答を得る:私はの値を変更した場合、しかし、
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<result xsi:type="ns1:getPWFlagResponse" xsi:nil="1" xmlns:ns1="<NamespaceURL>"/>
</soapenv:Body>
</soapenv:Envelope>
をフラグ、私は他のすべての要求に対して正しい応答を得る:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<result>
<result>1</result>
</result>
</soapenv:Body>
</soapenv:Envelope>
(結果は0に等しい)
私は最初に何かを初期化していない可能性があると思っていましたが、テーブルのPWResetFlagカラムに初期値を設定しないと、webServiceは正しい応答を返します。
これはSQLサーバーで、既定値などを設定していますか?
おかげ
これはおそらくコードによって異なります。私たちにそれを示してください。 –