a***@gmail.com
2007-11-02 14:26:31 UTC
Greetings,
I am encountering a strange issue with my Webservices. I am tryting to set a default value for a wrapper type (Integer). I tried with primitive type int as well. Here is what I am doing in the wsdl
<element name="someValue" type="xsd:int" nillable="true" default="20"/>
When message is going across wire from client to server, my stubs do not send out the default value. Through tcpmon I see the following:
<someValue xmlns="http://somenamespace">0</someValue>
Ofcourse Server is not picking up the default value when it's de-serializing the soap request. My online research tells me that this is the standard way to set a default value. Any chance this needs to be set in a different way for WAS 6.0/6.1?
Awaiting your response. With regards.
I am encountering a strange issue with my Webservices. I am tryting to set a default value for a wrapper type (Integer). I tried with primitive type int as well. Here is what I am doing in the wsdl
<element name="someValue" type="xsd:int" nillable="true" default="20"/>
When message is going across wire from client to server, my stubs do not send out the default value. Through tcpmon I see the following:
<someValue xmlns="http://somenamespace">0</someValue>
Ofcourse Server is not picking up the default value when it's de-serializing the soap request. My online research tells me that this is the standard way to set a default value. Any chance this needs to be set in a different way for WAS 6.0/6.1?
Awaiting your response. With regards.