Screencast #WS3: Reliable and Interoperable Web service using WSIT plug-in, NetBeans and GlassFish

In the third part of the screen cast series (#ws1, #ws2), I show how a reliable and interoperable Web service can be developed and invoked using NetBeans IDE and WSIT plug-in. This screencast also shows how WSIT plugin can be manually installed in NetBeans.

Enjoy it here.

Here is a preview of screen casts that are plannned in the next few weeks.

  1. #WS4: Developing a Secure Web service using WSIT plug-in, NetBeans and GlassFish
  2. #WS5: Developing a Transactional Web service using WSIT plug-in, NetBeans and GlassFish
  3. #WS6: Invoking a .NET 3.0 endpoint using WSIT plug-in, NetBeans and GlassFish
  4. #WS7: Developing a simple Web service using WSIT plug-in, NetBeans and Tomcat
  5. #WS8: Based upon user requirement, Using GlassFish-bundled Derby database within a Web service built from JSPs.

 Feel free to post suggestions on what would you like to see in terms of Web services development using NetBeans.

UPDATE: See why/when a module may be installed globally versus locally here.

Technorati: Web services NetBeans GlassFish WSIT JAX-WS screencast

Comments:

Another great screencast. Just a small comment: not every NetBeans module requires an IDE restart.

Posted by Alexis MP on February 23, 2007 at 09:16 PM PST #

Thanks Alexis for the correction. Do you know what is the criteria for restarting the IDE after plug-in installation ?

Posted by Arun on February 24, 2007 at 07:15 AM PST #

It's set by the developer in the module metadata. In some cases, you have no choice but to require restart.

Posted by Alexis MP on February 25, 2007 at 04:37 AM PST #

Dear Arun, I have a requiremnet of invoking a wcf web service over SSL, using java client. Would you help me please by directing me to the required steps.

Posted by Khaled on March 04, 2007 at 05:50 PM PST #

Khaled, I'm planning a screencast on showing how to invoke a Java-based Web service over SSL in the next few days. Once Java-based Web service can be invoked, you can replace it with WCF-based endpoint and it should work. Please stay tuned!

Posted by Arun on March 05, 2007 at 06:19 AM PST #

[Trackback] In the opening keynote of Day 2 (Day 1), Joe Ottinger, Editor-in-chief of TheServerSide, asked the following questions, to an audience of approx 500 Java developers, receiving instant feedback using little handy devices on each attendees table. As with...

Posted by Arun Gupta's Blog on March 23, 2007 at 03:45 AM PDT #

[Trackback] You've developed a reliable, secure transactional and interoperable Web service using Web Services Interoperability Technology (WSIT, aka Project Tango) plug-in in NetBeans 5.5.1 and deployed on GlassFish v2. NetBeans IDE provide a very seamless experi...

Posted by Arun Gupta's Blog on April 25, 2007 at 11:05 PM PDT #

Dear Arun, I just watched yoru 3 first screencasts. I'm amazed by your professionalism and the quality of the explanations. Impossible to make a mistake while executing the same tasks as you. Just a question, when do you plan to publish the next screencasts? I'm working on a research projects funded by the European commission (http://www.r4egov.eu) and it will be time to select the tools we want to use in order to implement the WS-\* specifications. I would like to see your next screencasts before selecting a Java IDE. Thank and continue yoru great work! Abdelkrim

Posted by Abdelkrim Boujraf on May 03, 2007 at 04:32 AM PDT #

Abdelkrim, Thanks for the kind words. I do plan to work on the screencasts in next few weeks. Let me know if you'd like to see any specific ones before others. As a developer, there is no need to implement WS-\* specs. We (at Sun) has already implemented these specs in WSIT (integrated part of GlassFish). You can use them in your applications with NetBeans and WSIT plug-in.

Posted by Arun Gupta on May 03, 2007 at 05:05 AM PDT #

Arun, it's impossible to choose between your proposals but... I'm more interested in WS-Policy, .NET 3.0 interactions and WS-Security in a first stage. Abdelkrim

Posted by Abdelkrim Boujraf on May 09, 2007 at 08:07 AM PDT #

[Trackback] Slides for TS-4865 are available here. The demo shown in the preso is available in 3 parts - part 1, part 2 and part 3. This session is repeated again on Friday, 1:30pm. Technorati: wsit webservices glassfish javaone...

Posted by Arun Gupta's Blog on May 09, 2007 at 02:02 PM PDT #

[Trackback] Web Services Interoperability Technology (WSIT, aka Project Tango), integrated in GlassFish V2 builds, provides a implementation of key enterprise Web services specifications and enables first-class interoperability with .NET 3.0 framework. However if...

Posted by Arun Gupta's Blog on May 23, 2007 at 08:51 AM PDT #

[Trackback] A short tutorial from the community on how to develop Web services using NetBeans 6 M9 on Sun Java System Application Server 9.0. You can very well use the exact same steps to deploy this Web service on GlassFish V2....

Posted by Arun Gupta's Blog on June 13, 2007 at 11:17 PM PDT #

[Trackback] Fabian explained how WSIT features can be configured on Java SE 6 Endpoint API exposed as part of JAX-WS 2.1. In this blog, I start with a Reliable Messaging-enabled endpoint developed using NetBeans IDE 5.5.1 and WSIT plug-in and then...

Posted by Arun Gupta's Blog on June 18, 2007 at 10:29 AM PDT #

[Trackback] I presented Tango at Jazoon in Zurich, Switzerland last week. Here's my trip report.

Posted by Harold Carr's Blog on July 03, 2007 at 02:06 PM PDT #

[Trackback] GlassFish V2 beta3 is now available. I take this opportune moment for a follow up entry showing how a Reliable WSIT endpoint can be invoked from WCF client and vice versa. WSIT is already integrated in GlassFish V2. The first...

Posted by Arun Gupta's Blog on July 10, 2007 at 05:19 AM PDT #

[Trackback] A complete transcript of the Sun/Microsoft Expert Exchange Forum is now available. And if you still have questions, feel free to post them to users@metro or Metro Forum. Try 3 things today: Download GlassFish V2. Develop and Deploy a Reliable...

Posted by Arun Gupta's Blog on August 01, 2007 at 02:36 AM PDT #

Hello Arun.

I'va asked myself if its possible to change WSIT-configuration in that kind, to tell WSIT to find the wsit-PACKAGE.CLASS.xml not in the WEB-INF-folder, but in any other folder I want in the filesystem?

Regards

Christoph

Posted by Chritoph Karmowski on September 10, 2007 at 06:54 PM PDT #

Christoph, the location of wsit-PACKAGE.CLASS.xml is fixed. If you use NetBeans then all these details are hidden. Why would you like to have this config file in a different location ?

Posted by Arun Gupta on September 11, 2007 at 04:15 AM PDT #

Thanks Arun.

I have to integrate jaxws and wsit in a customized tomcat, which has a completely modified architecure. This is the reason, why I want to tell WSIT where to find this file. In my configuration this file isn't no longer in the webinf 2folder.

Regards

Christoph

Posted by Christoph Karmowski on September 11, 2007 at 04:25 AM PDT #

Christoph, this is how WSIT is looking up the server config file:

1. If we are running inside a web app, load the file from ServletContext. A Java EE compliant ServletContext will load from WEB-INF. If this is not the case for you, you will need to put the configuration file into the location where your ServletContext is loading application resources from.

2. If no ServletContext is available, load the file from a META-INF directory on the application classpath. This code will not be executed in a web app.

Posted by Fabian Ritzmann on September 11, 2007 at 09:25 PM PDT #

[Trackback] Project Tango (aka WSIT - Web Services Interoperability Technology) is now FCS (First Customer Shipment)! Tango provides the .NET 3.0 interoperability features (i.e., security, reliability, transactions) built into the Metro Web Services stack. Besides...

Posted by Bhakti Mehta's Blog on September 18, 2007 at 04:00 AM PDT #

[Trackback] Project Tango (aka WSIT - Web Services Interoperability Technology) is now FCS (First Customer Shipment)! Tango provides the .NET 3.0 interoperability features (i.e., security, reliability, transactions) built into the Metro Web Services stack. Besides...

Posted by Bhakti Mehta's Blog on September 18, 2007 at 04:08 AM PDT #

Abdelkriem, I published a new screencast showing how to secure a Web service using NetBeans 6 at:

http://blogs.sun.com/arungupta/entry/screncast_ws7_secure_and_reliable

Hope you find it useful.

Thanks,
-Arun

Posted by Arun Gupta on October 17, 2007 at 01:58 PM PDT #

Dear Arun, I want to say that i like very much the way you presented the Screencasts. Keep feeding us :) . ..

Posted by George on October 22, 2007 at 10:02 PM PDT #

Thanks Arun, very helpful and informative. Well done! Off topic question: What software/application did you use to record the session?

Posted by Ben on October 31, 2007 at 12:29 AM PDT #

I record my screencasts using Camtasia.

-Arun

Posted by Arun Gupta on October 31, 2007 at 03:58 PM PDT #

Hello Arun, Do you still plan to make the screencasts about WSIT announced here?

I'm waitting for a long time... Or does the I lost?

Thanks.

Posted by JL on December 15, 2007 at 10:31 AM PST #

JL, Two such screencasts are available at:

http://blogs.sun.com/arungupta/entry/screncast_ws7_secure_and_reliable
http://blogs.sun.com/arungupta/entry/screencast_ws8_tango_with_netbeans

A complete list of screencasts is available at:

http://blogs.sun.com/arungupta/tags/screencast

Let me know if you are waiting on a particular one and I'll spare some time for it.

Posted by Arun Gupta on December 16, 2007 at 08:42 AM PST #

Thanks Arun, very helpful and informative. Well done! Off topic question: What software/application did you use to record the session?

Posted by laptop batteries on November 26, 2008 at 12:47 PM PST #

Camtasia all the way :)

Posted by Arun Gupta on November 27, 2008 at 12:46 AM PST #

all the way..

Posted by manken Resimleri on March 08, 2009 at 07:39 AM PDT #

At 1:49 minutes of playtime the screencast shows the Netbeans GlassFish v2 output console with the the SOAP request and response.

Could anyone help me figure out how to turn on logging such that the SOAP/HTTP message exchange is displayed to the console?

I spent some time tinkering with the log levels in the Glassfish Admin Console and even added a property com.sun.xml.ws.assembler set to FINEST to no avail.

Posted by Jonathan on May 06, 2010 at 01:09 AM PDT #

Jonathan,

The log messages can be enabled as explained at:

http://blogs.sun.com/arungupta/entry/totd_1_soap_messaging_logging

Posted by Arun Gupta on May 06, 2010 at 01:48 AM PDT #

Mr Arun,

first of all thank you for this wonderful screencast. it helped me a lot. however, there are few questions that i need to ask. while you are selecting keystores and aliases for the server and the client, what criteria do you use? i mean, when should i select a keystore instead of truststore? and which alias in these stores should i use? if i am developing only the server side and if i need to provide SSL and client authentication what security mechanism should i use? does client authentication with symmetric key suffice? is SSL included in this mechanism or should i use SLL (with client authentication enabled in the configuration file)?

sorry that i have many questions but i have read many articles and these questions are still in mind waiting to be solved.

thanks in advance

Posted by ismetb on August 22, 2010 at 11:35 PM PDT #

Mr Arun,

first of all thank you for this wonderful screencast. it helped me a lot. however, there are few questions that i need to ask. while you are selecting keystores and aliases for the server and the client, what criteria do you use? i mean, when should i select a keystore instead of truststore? and which alias in these stores should i use? if i am developing only the server side and if i need to provide SSL and client authentication what security mechanism should i use? does client authentication with symmetric key suffice? is SSL included in this mechanism or should i use SLL (with client authentication enabled in the configuration file)?

sorry that i have many questions but i have read many articles and these questions are still in mind waiting to be solved.

thanks in advance

Posted by ismetb on August 22, 2010 at 11:38 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« April 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today