Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

National ID System Web Services (Netbeans)

843833Jun 5 2008 — edited Jun 5 2008
Hi;

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2008
Added on Jun 5 2008
0 comments
139 views