This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Multiplue lines in soap message" Watch "Multiplue lines in soap message" New topic

Multiplue lines in soap message

Jasper Suijker

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

Joined: Mar 22, 2005
Posts: 39578
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?

Ping & DNS - updated with new look and Ping home screen widget
Jasper Suijker

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:
subject: Multiplue lines in soap message
Similar Threads
Does WSAD 5.1.0 support SOAP 1.2
Two questions on " JSP SYNTAX 1.2 " issued by SUN
SOAP body - multiply choice parts
Axis 1.4 does not validate input parameters?
Help needed to call a web service after TAM authentication - (401)Unauthorized