I have a strange problem with the class generated by Add Web Reference
(VB 2005) for an Axis web service. There is one function, getUser(),
that has a nillable positiveInteger user_id parameter. When Nothing is
passed for this parameter, it is omitted rather than being sent with a
true nil attribute. The really odd thing is that the problem appears to
be related to the presence of two other methods that also have a
user_id parameter.
I have found three ways to work around the problem:
1. Remove the generated code for the two other methods.
2. Change the name of the user_id parameter for getUser() in the
generated code.
3. Use wsdl.exe to generate the proxy class instead.
Doing any of these things causes a null value to correctly generate the
element with a nil attribute.
Is there a known bug that would cause this behavior? Thanks for any
leads on this.
Mark
(VB 2005) for an Axis web service. There is one function, getUser(),
that has a nillable positiveInteger user_id parameter. When Nothing is
passed for this parameter, it is omitted rather than being sent with a
true nil attribute. The really odd thing is that the problem appears to
be related to the presence of two other methods that also have a
user_id parameter.
I have found three ways to work around the problem:
1. Remove the generated code for the two other methods.
2. Change the name of the user_id parameter for getUser() in the
generated code.
3. Use wsdl.exe to generate the proxy class instead.
Doing any of these things causes a null value to correctly generate the
element with a nil attribute.
Is there a known bug that would cause this behavior? Thanks for any
leads on this.
Mark