• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

call a siebel webservice through java code(using servlet)

 
Vivek Pinto
Greenhorn
Posts: 16
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi can anyone give me a sample code which demonstrates how to invoke siebel webservice through java(servlet request and response).

Thanks In advance
Pinto
 
Tim Moores
Bartender
Posts: 2747
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A WS is generally invoked via SOAP or REST, not through a servlet. If you're asking how to invoke a WS from within a servlet, then that doesn't differ from how you'd invoke it from any other piece of Java code. Maybe I'm misunderstanding what you're asking?
 
Vivek Pinto
Greenhorn
Posts: 16
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:A WS is generally invoked via SOAP or REST, not through a servlet. If you're asking how to invoke a WS from within a servlet, then that doesn't differ from how you'd invoke it from any other piece of Java code. Maybe I'm misunderstanding what you're asking?


Hi Tim
!,I would be very grateful if you post a piece of code which demonstrates how to call webservice in java,,,,Actually as you said there is no doubt that the WS is called through SOAP or REST....My requirement is to call siebel webservice from a application...that is i have wsdl file that should be input to the call which will talk to siebel db and xml will be sent back as result and after xslt its displayed on UI...
let me put this in diff way...when we use SOAP UI,the output is XML format na!Which is not userfriendly!!so i am doing a application(webpage)in which i want to call siebel webservice which will pull data from siebel database!!!Hope you got my point.
 
Tim Moores
Bartender
Posts: 2747
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All major SOAP implementations have tools that can create Java client code for a given WSDL. Check the documentation of whichever implementation you're using; for example, Axis2 has a tool called "wsdl2java" for this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic