National ID System Web Services (Netbeans)
843833Jun 5 2008 — edited Jun 5 2008Hi;
I want connect JAXRPC Web Services with NetBeans over https.
I have tried the exapmle at http://users.skynet.be/pascalbotte/rcx-ws-doc/jaxrpchandler.htm
It gives error = "port: {http://kps.nvi.gov.tr/WS}KPSSoap does not contain operation: ilListesiGetir"
Code:
URL url = new URL("https://kps.nvi.gov.tr/Mernis.KPS.Web.SI/KPS.asmx?WSDL");
QName serviceName=new QName("http://kps.nvi.gov.tr/WS", "KPS");
QName portName = new QName("http://kps.nvi.gov.tr/WS", "KPSSoap");
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService( url, serviceName);
HandlerRegistry hr = service.getHandlerRegistry();
List handlerChain = hr.getHandlerChain(portName);
HandlerInfo hi = new HandlerInfo();
hi.setHandlerClass( KpsSecurityHandler.class);
handlerChain.add(hi);
//this line gives error
KPSSoap port = (KPSSoap) service.getPort(portName, KPSSoap.class);
ArrayOfIlBilgisi ilListesi = port.ilListesiGetir();
List liste=ilListesi.getIlBilgisi();
for (int i = 0; i < liste.size(); i++)
out.println( liste.indexOf(i) + "\n");
Note: I can connect "KPS" service and "KPSSoap" port succesfuly. But when i tried to connect operation "ilListesiGetir" it gives the error port: {http://kps.nvi.gov.tr/WS}KPSSoap does not contain operation: ilListesiGetir
NetBeans Version 6.1
Please help us.
Thanks.