File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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