Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add the headers to the soap request while invoking webservice using client code?  RSS feed

 
Krishna Navat
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to add the headers to the soap request while invoking webservice using client code?

I am using below code to invoke the webservice.

-----------------------------------------------------------------------------------------------------------------------------------
CalculatorService svc = new CalculatorService_Impl("http://localhost:7001/CalculatorProject/Calculator?WSDL");

Calculator calculator = svc.getCalculatorSoapPort("SriKrishna","12345678");

int result = calculator.sub(2,1);

System.out.println("Result->"+result);
------------------------------------------------------------------------------------------------------------------------------------

- Krishna Navat
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!