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 Wrapped web service issue 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 "Wrapped web service issue" Watch "Wrapped web service issue" New topic
Author

Wrapped web service issue

Sgc Manorite
Greenhorn

Joined: Jun 05, 2008
Posts: 12
Hi,

I am using wrapped web service, getPoints with 3 params v.i.z. Group[] grp, XDate start, XDate end where Group is an array of object containing one member; name and XDate has one Date variable.

I deployed the web service using the foll. in my wsdd.



The WSDL...


I am calling the web service with th foll. request using soapUI tool.



The issue is that I'm getting null as the value for the Group[] param in my method. I do get three elements in the Group array but their value is null Where am I going wrong? Is the is the deployment descriptor that needs some change? Help is appreciated.

-Manorite





Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Sgc Manorite wrote:


If you look at the WSDL, it looks like you should have one <groups> element for each of the child elements of the <groups> element above if you want an array of groups that contains three groups. Thus, I would try:

I am not entirely sure that this solves your problem, though.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Sgc Manorite
Greenhorn

Joined: Jun 05, 2008
Posts: 12
Hi,

Thanks for the correction regarding passing more than 1 group name in the request xml.
But even when I pass only one group name as follows, I get the group name in the array as null.

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi again!
Can you show the declaration of the datatype of the <groups> element in the WSDL? It is the type used here:


Then, there seems to be a typo in the WSDL - I don't know if it is just in the posting:


Best wishes!
Sgc Manorite
Greenhorn

Joined: Jun 05, 2008
Posts: 12
Sorry I should have attached the WSDL before. I have edited my original post and have pasted the WSDL for your reference and expert suggestions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wrapped web service issue
 
Similar Threads
wstools unable to parse WSDL from Axis1.4
Java class to WSDL
Axis generating Elements instead of Attributes
Problem with mapping Array String into HashMap in Axis
How do I consume Web Services in Swing