Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Error in web service creation : java.io.IOException: Non nillable element

 
Ranch Hand
Posts: 45
  • 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 web service, and i have to create web service.
i have wsdl file and i have to develop web service using that file only.

i am using eclipse 3.2 WTP.

After importing file, when i am cretaing web service, i am getting messge,




after that when i am creating web service client, using wsdl file, which is in
Webcontent/wsdl/SampleWS.wsdl, i am getting same msg.

and when i am executing that i am getting error :




so, what is the error ?
error is in wsdl file..?

i have only wsdl file and i have to create web service using that file only.

please, help me...
its urgent...



Error in web service creation : java.io.IOException: Non nillable element
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sachin

Which SOAP engine are you using in your application.I have worked with the Axis 1.4 SOAP engine. In Eclipse you can import the axis jar file and set the source and the destination end points for the WSDL and the Client Side Stubs generated from the WSDL. I think there may some mistake in this as the engine you are using is not able to get hold of the WSDL.Check for proper syntax to be used to do this operation.

For the client side exception that you are getting see if you are passing the correct parameter to your webservice.it looks like the SOAP engine is not able to serialize the object or the parameter you are passing.try to always pass non null values to your service or you have to do proper exception handling.

Regards
Vikram K
 
sachin kataria
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for reply.
I also try that but getting same errors.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic