0

I want to call a web service "gatewaedi" from java code.

I am not getting how to call it, could someone please provide an example?

1
  • Check the apache cxf project. cxf.apache.org Commented Mar 10, 2012 at 7:03

1 Answer 1

1

This is how you call a webservice with JAX-RPC

String wsdlURL = "http://localhost:6080/HelloWebService/services/Hello?wsdl"[1];

String namespace = "http://Hello.com"[2];

String serviceName = "GatewaediWebService";

QName serviceQN = new QName(namespace, serviceName);

ServiceFactory serviceFactory = ServiceFactory.newInstance();

Service service = serviceFactory.createService(serviceQN);
  1. Should be replaced by the gatewaedi webservice call, which I can not find now.

  2. Should be replaced by the gatewaedi webservice corresponding namespace, that too I can't find.

If you want send me more information about this webservice and I will write you the complete code.

Sign up to request clarification or add additional context in comments.

1 Comment

"services.gatewayedi.com/eligibility/service.asmx?wsdl" this is my wsdl. And i want to call methods of this web service.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.