This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
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: 41123
    
  45
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 - my free Android networking tools app
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
 
Similar Threads
Axis 1.4 does not validate input parameters?
SOAP body - multiply choice parts
Two questions on " JSP SYNTAX 1.2 " issued by SUN
Does WSAD 5.1.0 support SOAP 1.2
Help needed to call a web service after TAM authentication - (401)Unauthorized