• Post Reply Bookmark Topic Watch Topic
  • New Topic

Missing tag in soap package

 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have developed a web services that returns a soap package containing address data.

Part of the wsdl I use contains the following :-


If I call the service for a person that does not have any eastings data
the data tag is missing.

I would like it to always display the following empty tag if no data is present
<my:eastings/>

I dont have this problem with addressType as it either displays:-
<my:addressType>my address in here </my:addressType>
or
<my:eastings/>


Mat


 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Could it be that you in the addressType case return an empty string when there is no data and in the eastings case return null?
If so, one possible solution is to change the eastings type form long to string and to return an empty string if there is no eastings data.
Best wishes!

P.S. Congratulations! You are the victim of my 2000th post here!
 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ivan,
I have ocnverted it to a String at it works fine.
Glad to be your 2000th victim

Mat
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!