aspose file tools*
The moose likes Web Services and the fly likes call a  siebel webservice through java code(using servlet) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "call a  siebel webservice through java code(using servlet)" Watch "call a  siebel webservice through java code(using servlet)" New topic
Author

call a siebel webservice through java code(using servlet)

Vivek Pinto
Greenhorn

Joined: Apr 19, 2012
Posts: 16


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


Regards
V F Pinto
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Apr 19, 2012
Posts: 16

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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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.
 
Consider Paul's rocket mass heater.
 
subject: call a siebel webservice through java code(using servlet)