aspose file tools*
The moose likes Web Services and the fly likes Multiplue lines in soap message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Multiplue lines in soap message" Watch "Multiplue lines in soap message" New topic
Author

Multiplue lines in soap message

Jasper Suijker
Greenhorn

Joined: Jan 02, 2009
Posts: 2
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 ]

When Microsoft creates a product that doesn't suck. It will be a vacume cleaner
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42951
    
  72
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

Joined: Jan 02, 2009
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiplue lines in soap message