NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Re: Feedback: Getting Started with REST Services in NetBeans IDE 6.1

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Jeff Rubinoff
Posted via mailing list.





PostPosted: Wed Jan 21, 2009 12:23 am    Post subject: Re: Feedback: Getting Started with REST Services in NetBeans IDE 6.1 Reply with quote

Miles,
I'm afraid your question is outside the scope of the tutorial. I have
forwarded it to the nbj2ee alias (see address line). You can subscribe
to this alias by sending a blank email to
address-removed.

Jeff

address-removed wrote:

Quote:
I have my GlassFish Server setup so that my http-listenter-1 has SSL enabled. When I test
my webservice, I get an incorrect URL
"http://localhost:0/CustomerDB/resources/application.wadl" in the "WADL:" box. The
correct URL should be: "http://localhost:443/CustomerDB/resources/application.wadl".

What should I do to fix this problem?

----
Submitted via the contact form at: http://www.netbeans.info/appl2//index.php
Referer page: http://www.netbeans.org/kb/docs/websvc/rest.html



Back to top
Nakamura, Miles M CIV USA
Posted via mailing list.





PostPosted: Wed Jan 21, 2009 12:26 am    Post subject: Re: Feedback: Getting Started with REST Services in NetBeans IDE 6.1 Reply with quote

Thanks Jeff. I have already subscribed, so hopefully I'll be hearing something from them.

----- Original Message -----
From: Jeff Rubinoff <address-removed>
Date: Tuesday, January 20, 2009 14:23
Subject: [nbj2ee] Re: Feedback: Getting Started with REST Services in NetBeans IDE 6.1
To: address-removed, address-removed, address-removed, nbj2ee-sc.1212397718.bdngfglmkbbecpnnkiaf-jeffrey.rubinoff=address-removed


Quote:
Miles,
I'm afraid your question is outside the scope of the tutorial. I
have
forwarded it to the nbj2ee alias (see address line). You can
subscribe
to this alias by sending a blank email to
address-removed.

Jeff

address-removed wrote:

Quote:
I have my GlassFish Server setup so that my http-listenter-1 has
SSL enabled. When I test
Quote:
my webservice, I get an incorrect URL
"http://localhost:0/CustomerDB/resources/application.wadl" in the
"WADL:" box. The
Quote:
correct URL should be:
"http://localhost:443/CustomerDB/resources/application.wadl".>
Quote:
What should I do to fix this problem?

----
Submitted via the contact form at:
http://www.netbeans.info/appl2//index.php>Referer page:
http://www.netbeans.org/kb/docs/websvc/rest.html>
Back to top
Ayub Khan
Posted via mailing list.





PostPosted: Wed Jan 21, 2009 1:04 pm    Post subject: Re: Feedback: Getting Started with REST Services in NetBeans IDE 6.1 Reply with quote

Hi Nakamura, Miles,

There could be an issue in the https port retrieval code of Netbeans.
Workaround is

1. Run "Test RESTful Web Services" (browser will show the error you got
earlier, do no close the browser), then
2. Click Tab "File" in NB 6.5 IDE, then edit file
"/build/generated/rest-test/test-resbeans.html", search for line

var baseURL =
"http://localhost:8080/CustomerDB/||ServletAdaptor||/resources/*";

replace with

var baseURL =
"http://localhost:443/CustomerDB/||ServletAdaptor||/resources/*";

3. Refresh the browser.

Note:
1. If you do hit "Test RESTful Web Services" again, you have to repeat
step #1, else
2. The test client is a standalone AJAX app, so if you close the
browser, you can run it using URL that looks something like this
file:///<xyz>/CustomerDB/build/generated/rest-test/test-resbeans.html
(you can locate the exact location of this file from your NB output window)

Hope this helps.

Thanks
Ayub


Nakamura, Miles M CIV USA USAMEDCOM wrote:
Quote:
Thanks Jeff. I have already subscribed, so hopefully I'll be hearing something from them.

----- Original Message -----
From: Jeff Rubinoff <address-removed>
Date: Tuesday, January 20, 2009 14:23
Subject: [nbj2ee] Re: Feedback: Getting Started with REST Services in NetBeans IDE 6.1
To: address-removed, address-removed, address-removed, nbj2ee-sc.1212397718.bdngfglmkbbecpnnkiaf-jeffrey.rubinoff=address-removed



Quote:
Miles,
I'm afraid your question is outside the scope of the tutorial. I
have
forwarded it to the nbj2ee alias (see address line). You can
subscribe
to this alias by sending a blank email to
address-removed.

Jeff

address-removed wrote:


Quote:
I have my GlassFish Server setup so that my http-listenter-1 has

SSL enabled. When I test

Quote:
my webservice, I get an incorrect URL
"http://localhost:0/CustomerDB/resources/application.wadl" in the

"WADL:" box. The

Quote:
correct URL should be:

"http://localhost:443/CustomerDB/resources/application.wadl".>

Quote:
What should I do to fix this problem?

----
Submitted via the contact form at:

http://www.netbeans.info/appl2//index.php>Referer page:
http://www.netbeans.org/kb/docs/websvc/rest.html>

Quote:


Back to top
Nakamura, Miles M CIV USA
Posted via mailing list.





PostPosted: Wed Jan 21, 2009 4:21 pm    Post subject: Re: Feedback: Getting Started with REST Services in NetBeans IDE 6.1 Reply with quote

Thanks Ayub!! Your sugggestion worked, but I have to edit "test-resbeans.html" everytime I build my project.

I have to correct my URL from http://localhost:0 to https://localhost or http://localhost:443, every time I run my other web projects. Do you have an estimate of when the "port: retrieval code" will be fixed?

----- Original Message -----
From: Ayub Khan <address-removed>
Date: Wednesday, January 21, 2009 3:04
Subject: Re: [nbj2ee] Re: Feedback: Getting Started with REST Services in NetBeans IDE 6.1
To: address-removed


Quote:
Hi Nakamura, Miles,

There could be an issue in the https port retrieval code of
Netbeans.
Workaround is

1. Run "Test RESTful Web Services" (browser will show the error
you got
earlier, do no close the browser), then
2. Click Tab "File" in NB 6.5 IDE, then edit file
"/build/generated/rest-test/test-resbeans.html", search for line

var baseURL =
"http://localhost:8080/CustomerDB/||ServletAdaptor||/resources/*";

replace with

var baseURL =
"http://localhost:443/CustomerDB/||ServletAdaptor||/resources/*";

3. Refresh the browser.

Note:
1. If you do hit "Test RESTful Web Services" again, you have to
repeat
step #1, else
2. The test client is a standalone AJAX app, so if you close the
browser, you can run it using URL that looks something like this
file:///</CustomerDB/build/generated/rest-test/test-resbeans.html
(you can locate the exact location of this file from your NB output window)

Hope this helps.

Thanks
Ayub


Nakamura, Miles M CIV USA USAMEDCOM wrote:
Quote:
Thanks Jeff. I have already subscribed, so hopefully I'll be hearing something from them.

----- Original Message -----
From: Jeff Rubinoff <
Date: Tuesday, January 20, 2009 14:23
Subject: [nbj2ee] Re: Feedback: Getting Started with REST Services in NetBeans IDE 6.1
To: address-removed, address-removed, address-removed, nbj2ee-sc.1212397718.bdngfglmkbbecpnnkiaf-jeffrey.rubinoff=address-removed



Quote:
Miles,
I'm afraid your question is outside the scope of the tutorial. I
have
forwarded it to the nbj2ee alias (see address line). You can
subscribe
to this alias by sending a blank email to
address-removed.

Jeff

address-removed wrote:


Quote:
I have my GlassFish Server setup so that my http-listenter-1 has

SSL enabled. When I test

Quote:
my webservice, I get an incorrect URL
"http://localhost:0/CustomerDB/resources/application.wadl" in the

"WADL:" box. The

Quote:
correct URL should be:

"http://localhost:443/CustomerDB/resources/application.wadl".>

Quote:
What should I do to fix this problem?

----
Submitted via the contact form at:

http://www.netbeans.info/appl2//index.php>Referer page:
http://www.netbeans.org/kb/docs/websvc/rest.html>

Back to top
Apache82



Joined: 18 Feb 2009
Posts: 7

PostPosted: Wed Feb 18, 2009 6:59 pm    Post subject: WADL Reply with quote

Hi all, I'm a really newbie so excuse me if the question could be stupid.
I read the tutorial about RESTful and when I try to test it the browser tell me that it could not find the WADL!!
The question is: where could I found the WADL ?
I use Safari as browser and mac osx as OS.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo