Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help with SOAP client

 
laxmikant upadhyay
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am new in webservices. i need a simple soap client (which send an image as mime message as attachment ) as well as server side code which handles the request and show the size of the attachment.
please help me with this. its urgent....
 
laxmikant upadhyay
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Acually the client need to invoke a method of server which takes mimemessage as input paramente and retuns its size. how should i go ahead.please suggest....
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We all have urgent stuff to deal with...

You need to encode the image in the SOAP request, decode it at the server, and return a SOAP response.

What are your inputs to the service (request) and what are the outputs (response).

Code these as java objects, then generate the WSDL. Generate the client from the WSDL, host the webservice and you're done.

Easy.

WP
 
laxmikant upadhyay
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi William,
thank you so much for your reply.
do you have any sample code or any link which can be helpful for me.

thanks
Laxmikant
 
laxmikant upadhyay
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i have successfully created demo code for web service and client with available wsdl file using axis2 too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic