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.

Bug 252187 - Generate REST client fails with IDE registered REST application
Summary: Generate REST client fails with IDE registered REST application
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-30 18:31 UTC by emiddio
Modified: 2015-05-01 00:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
wadl file generated without ?detail=true (250.67 KB, application/octet-stream)
2015-04-30 18:37 UTC, emiddio
Details
wadl file generated as .../application.wadl?detail=true (662.49 KB, application/octet-stream)
2015-04-30 18:40 UTC, emiddio
Details
good file generated - as from project (4.44 KB, application/octet-stream)
2015-04-30 18:50 UTC, emiddio
Details
bad generated file - as IDE Registered (1.63 KB, application/octet-stream)
2015-04-30 18:50 UTC, emiddio
Details
another bad file - longer (2.50 KB, application/octet-stream)
2015-04-30 18:52 UTC, emiddio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2015-04-30 18:31:52 UTC
I generated a REST service from DB tables. Deployed the service to gfv4.1. The service method i tested works.

When I right click project - new RESTful Java Client and select the URL of deployed service i get a properly built java client without compilation errors.

When I register that same URL with the IDE as a registered REST web service and then try to generate a RESTful java client from the registered REST service I get bad generated code.

I will upload both of the generated clients - good, and bad - and the application.wadl from the deployed service.
Comment 1 emiddio 2015-04-30 18:34:17 UTC
correction - the web service that works was selected as 'from project' the one that fail was selected as IDE registered.
Comment 2 emiddio 2015-04-30 18:37:07 UTC
Created attachment 153481 [details]
wadl file generated without ?detail=true
Comment 3 emiddio 2015-04-30 18:40:28 UTC
Created attachment 153482 [details]
wadl file generated as .../application.wadl?detail=true

cannot get IDE to generate the com.att.db.paymentcsiinfo REST client. Does work if i select the com.att.db.paymentcsiinfo REST resource with 'From Project'
Comment 4 emiddio 2015-04-30 18:48:30 UTC
correction - replace com.att.db.paymentcsiinfo with com.att.felix.db.paymentcsiinfo
Comment 5 emiddio 2015-04-30 18:50:09 UTC
Created attachment 153483 [details]
good file generated - as from project
Comment 6 emiddio 2015-04-30 18:50:45 UTC
Created attachment 153484 [details]
bad generated file - as IDE Registered
Comment 7 emiddio 2015-04-30 18:52:01 UTC
Created attachment 153485 [details]
another bad file - longer
Comment 8 emiddio 2015-05-01 00:16:56 UTC
I've dug into this further - making use of the WADL projects source code - https://svn.java.net/svn/wadl~svn.

The problem seems related to the import in the initial wadl provided by my service.