/ Published in: Java

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import java.io.IOException; import java.net.MalformedURLException; import java.rmi.RemoteException; import javax.xml.rpc.ParameterMode; import javax.xml.rpc.ServiceException; import org.apache.axis.client.Call; import org.apache.axis.client.Service; import org.apache.axis.encoding.XMLType; private static String webServiceCall(String in0, String in1) throws ServiceException, MalformedURLException, RemoteException { //---------- IF SECURITY NEEDED //---------- Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress(new java.net.URL("https://webserv.pki.gva.es:8443/axis/services/serviciospki")); call.setOperationName("getToken"); call.addParameter("in0", XMLType.XSD_STRING, ParameterMode.IN); call.addParameter("in1", XMLType.XSD_STRING, ParameterMode.IN); }
Comments
