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.
1. Invoke Add Web Service action on Web Services node in Services tab. 2. Select Local File and fill in the path to a file with the following file. 3. Press OK => SOAP web service is registered instead of REST web service Content of the file: <?xml version = '1.0' encoding = 'UTF-8'?> <application xmlns:soa="http://www.oracle.com/soa/rest" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/FlightInfoDBService" xmlns="http://wadl.dev.java.net/2009/02"> <doc title="FlightPlanRestService">FlightPlanRestService</doc> <grammars> <schema xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/FlightInfoDBService" schemaLocation="FlightInfoDBService_table.xsd"/> </schema> </grammars> <resources base=""> <resource path="/"> <method name="GET" soa:wsdlOperation="FlightInfoDBServiceSelect"> <request> <param name="state" style="query" soa:expression="$msg.FlightInfoDBServiceSelect_inputParameters/top:state" default="OUTBOUND" type="xsd:string"/> <param name="minutesPre" style="query" soa:expression="$msg.FlightInfoDBServiceSelect_inputParameters/top:minutesPre" default="30" type="xsd:string"/> <param name="minutesPost" style="query" soa:expression="$msg.FlightInfoDBServiceSelect_inputParameters/top:minutesPost" default="60" type="xsd:string"/> <param name="direction" style="query" soa:expression="$msg.FlightInfoDBServiceSelect_inputParameters/top:direction" default="DEPART" type="xsd:string"/> </request> <response status="200"> <representation mediaType="application/json" element="cns:VFlightplanCollection" xmlns:cns="http://xmlns.oracle.com/pcbpel/adapter/db/top/FlightInfoDBService"/> </response> </method> </resource> </resources> </application>
All files that contained 'wsdl' substring were incorrectly interpreted as WSDL files. I have removed this silly rule. Modified file: https://hg.netbeans.org/web-main/rev/21c5303b9431