• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Wrapped web service issue

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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





 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Could you hold this puppy for a sec? I need to adjust this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic