This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
 
subject: call a siebel webservice through java code(using servlet)
 
Similar Threads
Diff. bet Webservice calls & Non-Webserice calls ( Java )
What should I choose : Siebel CRM or Java/J2EE
Webservices using XML Over HTTP
java code to connect Siebel webservice
Call a siebel webservice using java code(jsp,servelts)