Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wrapped web service issue

 
Sgc Manorite
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Sgc Manorite
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic