• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Multiplue lines in soap message

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am creating a declaration webservice which should recieve a declaration with one ore multiple declarationrows.

I have a class definition Declaration which contains an array of DeclarationRows. Of course there are other datatypes in declaration to, but they don't give me problems.


my webservice contains the method: cudDeclaration(Srting Action, Declaration declaration)

when i access the webservice my soap message body looks like:

The message arrives at the webservice and it is being processed. The only thing is that i only have 1 row.
What am i doing wrong or what do i have to do to process all rows?
[ January 02, 2009: Message edited by: Jasper Suijker ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

The only thing is that i only have 1 row.


What does this mean? Where do you have only a single row? What code are you using to receive the results of the WS call?
 
Jasper Suijker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ulf thnx for the quick response.

In the java code of the webservice (cudDeclaration) i have a logging of the array length

cuddeclaration(String action, Declaration declaration){
log.debug("", "number of rows: " + declaration.getRows().length);
}

results in: number of rows: 1

With the soapmessage shown in first post
 
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic