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 251986 - WADL file loaded as WSDL file
Summary: WADL file loaded as WSDL file
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Manager (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-22 12:49 UTC by Jan Stola
Modified: 2015-04-22 13:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2015-04-22 12:49:15 UTC
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>
Comment 1 Jan Stola 2015-04-22 13:00:03 UTC
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