• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting default value in WSDL - WAS 6.1  RSS feed

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It's great to read through this forum for WS related issues I encounter everyday. Thanks to all the knowledgeable people who contribute their time to help us newbies.

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>

So Server is not picking up this 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?

Awaiting your response. With regards.
We find this kind of rampant individuality very disturbing. But not this tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!