This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Creating web service client fails if the application server has an invalid security certificate. | ||
---|---|---|---|
Product: | webservices | Reporter: | rptmaestro <rptmaestro> |
Component: | JAX-WS | Assignee: | Milan Kuchtiak <mkuchtiak> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | cwebster, girixkumar, pjiricka, sigalduek |
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | Other | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 81655 | ||
Attachments: |
Screen shot of error message while accessing WSDL from a site with invalid security certificate.
Example of how I solved the same exception for my web service client. Proposed dialog showing the certificate information Same error message Dialog showing the certificate information log file Image of dialog that opens when typing url in browser browser opened with wsdl file |
Description
rptmaestro
2006-06-28 18:58:57 UTC
Could you please attach that error message ? Marking INCOMPLETE as we do not have exact error message which appears yet. Created attachment 32010 [details]
Screen shot of error message while accessing WSDL from a site with invalid security certificate.
Created attachment 32012 [details]
Example of how I solved the same exception for my web service client.
Removing incomplete keyword as requested information has now been supplied. thanks a lot for them Should be fixed for 55. Created attachment 33027 [details]
Proposed dialog showing the certificate information
I've created a dialog asking user to accept the given certificate. See the previous attachement. Fixed. Added: xml/retriever/src/org/netbeans/modules/xml/retriever/CertificationPanel.java xml/retriever/src/org/netbeans/modules/xml/retriever/CertificationPanel.form Updated: http://xml.netbeans.org/source/browse/xml/retriever/src/org/netbeans/modules/xml/retriever/URLResourceRetriever.java?r1=1.1.2.3&r2=1.1.2.4 http://xml.netbeans.org/source/browse/xml/retriever/src/org/netbeans/modules/xml/retriever/Bundle.properties?r1=1.1.2.4&r2=1.1.2.5 Created attachment 34381 [details]
Same error message
I am reopening since I am not getting any proposed diolog in the build 060921_1 This is a problem of JAX-RPC client only (client in J2EE1.4 project). It should work in J2EE1.5 projects. If you still need to create client in J2EE1.4, the workaround is to create a "dummy" J2EE1.5 project, create the "mappoint" client there, then it should work also for J2EE1.4 project. JVM will remember the credentials to access the certified WSDL. Nevertheless, I am looking for solution also for J2EE1.4 projects. Would another possible workaround for this issue be to create the web service client from local files? If so, the Enterprise Pack workaround would be to run the retriever wizard first and then use the local files as input for the client wizard. How often does it happen that the certificate is invalid? How big problem is this in practice? Is this really a P2, or should we downgrade to P3? Showing Certification dialog also for JAX-RPC client. See tha attachment. Diffs: Checking in Bundle.properties; /cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/Bundle.properties,v <-- Bundle.properties new revision: 1.24.2.4.2.18.2.1; previous revision: 1.24.2.4.2.18 Checking in WsdlRetriever.java; /cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/WsdlRetriever.java,v <-- WsdlRetriever.java new revision: 1.7.32.3.2.3.10.1; previous revision: 1.7.32.3.2.3 Created attachment 34456 [details]
Dialog showing the certificate information
The fix seems to be OK for me; feel free to commit it also to release55 branch Thanks Merged also to release55 : Checking in Bundle.properties; /cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/Bundle.properties,v <-- Bundle.properties new revision: 1.24.2.4.2.19; previous revision: 1.24.2.4.2.18 Checking in WsdlRetriever.java; /cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/WsdlRetriever.java,v <-- WsdlRetriever.java new revision: 1.7.32.3.2.4; previous revision: 1.7.32.3.2.3 Can not generate web service client for: https://testgateway.pcslab.com/ParlayX2Web/services/TerminalLocation?wsdl See attached log Created attachment 34934 [details]
log file
The wsdl file isn't accessible. I cannot open that url in web browser. Please, send me the proper URL, otherwise I'll close this issue. This is the correct URL. When I type it in my browser , I get a security check for the certificate. (see attached images). Select the second botton to accept it temporarily. Created attachment 35072 [details]
Image of dialog that opens when typing url in browser
Created attachment 35073 [details]
browser opened with wsdl file
I cannot access that server. What is it about. My browser (Firefox) fails to open that wsdl. I expect the certificate dialog to open but it doesn't. I am behind the proxy. First we need to access that wsdl outside the IDE (from a browser for example), then we can investigate what's the problem. From the log file messages: the wsdl url isn't accessible from IDE either. I got it, thank you. The problem is in XML Retriever. Looking for a fix. Fixed. Checking in URLResourceRetriever.java; /cvs/xml/retriever/src/org/netbeans/modules/xml/retriever/Attic/URLResourceRetriever.java,v <-- URLResourceRetriever.java new revision: 1.1.2.4.6.2; previous revision: 1.1.2.4.6.1 The problem was in URIResourceRetriever, specifically when secure wsdl references relative file, e.g. (in this case) : <wsdl:import location="parlayx_terminal_location_interface_2_0.wsdl" namespace="http://www.csapi.org/wsdl/parlayx/terminal_location/v2_0/interface"/> the accept() method returned false, since it didn't accept "https:" protocol. The accept method is called with 2 string parameters (in this case): - https://testgateway.pcslab.com/ParlayX2Web/services/TerminalLocation?wsdl - parlayx_terminal_location_interface_2_0.wsdl Reporter, or Re-Opener (Sigal Duek), please decide if this issue is really a showstopper for you. If yes, we need to increase the priority (to P1) before committing to release55 branch. Priority increased to P1 since the Sprint Mobility IDE will be based on 5.5. We will need this fix in order to access all Sprint web services. TIA Sigal, please, is that a common scenario for Sprint IDE that secure wsdl url is redirected to another (secure) url? Original issue reported here is fixed and v. in release55_dev branch. Merge the fix also to release55 branch, please. Thanks. There's still one minor issue, filed as issue 86877, so let's discuss the rest of this there. Fix has been merged to release55 branch. v. in release55 |