• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

WebService Client - Unexpected SubElement Exception

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


I am new to WebServices and i am using axis2-1.4.1 Version of Axis to generate stubs from the WSDL file. The WSDL file when tested with the SoapUI gives the expected response but when i tried for the same response using the webservice client it shows the unexpected subelement exception .

Two service methods are

and the generated WSDL file is


and the client class looks like this


and the generated exception is

and the generated stub class is


Help me out to solve this issue.

Thanks in advance.

Regards,
Logeswaran
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the exact request you are using to test in SOAPUI?

This usually means you are passing in a request element that the XSD does not expect.
 
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Logeswaran,

Unexpected subelement idReturn


From your WSDL, there is no element defined as "idReturn". Unless you define it in WSDL, Axis will not understand this when processing stub generation logic. Have you created any service which returns id? For me it seems, WSDL in not inline with your service. You may have to re-look at your service.
 
reply
    Bookmark Topic Watch Topic
  • New Topic