Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiplue lines in soap message

 
Jasper Suijker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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 ]
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic