Miles to go …

April 30, 2007

Ask the WSIT/Project Tango Experts

Filed under: webservices — arungupta @ 8:19 am

As mentioned earlier, Ask the WSIT Experts (Web Services Interoperability Technologies, aka Project Tango) is now live!

Please start shooting your questions and we are ready.

Technorati: wsit tango webservices glassfish

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

April 29, 2007

Week 11 Mileage

Filed under: Running — arungupta @ 11:12 pm

Mon: 3.5 miles
Tue: 7 miles
Wed: Rest
Thu: 7 miles
Fri: Strength Training
Sat: 13.5 miles
Sun: Rest

Couple of interesting reads …

  • 8 commandments of Fluid Replacement
  • Know Thy Sweat Rate

Technorati: running training fitness runninglog

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

April 28, 2007

13.5 miles run this morning

Filed under: Running — arungupta @ 12:07 pm

With only 13 more weeks remaining for the marathon, I did my first 13.5 miles run this morning. The weekend runs are going to get longer only from now onwards.

Miles to go …

Technorati: running training

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

Sun Web Services @ JavaOne 2007

Filed under: webservices — arungupta @ 6:35 am

Follow up post from here.

Here is a complete list of Sun Web services technical sessions/birds-of-feather sessions, including date and time, at JavaOne 2007:

Monday May 7, 2007
 10:30am-7:30pm   GlassFish Day
Tuesday May 8, 2007
 6:00pm-7:00pm TS-6411 JSR 311: The Java API for RESTful Web Services
 8:00pm-8:50pm BOF-8034 Extending and Embedding the Java API for XML Web Services (JAX-WS) 2.1 Reference Implementation
Wednesday May 9, 2007
 3:50pm-5:20pm LAB-3350 Make Java Technology and .NET 3.0 Interoperability Work With WSIT
 4:10pm-5:10pm TS-4865 Takes two to Tango: Java Web Services and .NET Interoperability
 7:55pm-8:45pm BOF-6412 Describing RESTful Applications: WADLing with Java
 8:55pm-9:45pm BOF-4612 Java Platform, Enterprise Edition (Java EE): Meet the Experts (Part 2)
Thursday May 10, 2007
 9:35am-11:35am LAB-5410 Using Identity to Secure Web Services
 10:55am-11:55am TS-8897 Designing Service Collaborations: The Design of “Wire”-Centric Integration
 2:50pm-3:50pm TS-4948 Unleashing the Power of JAX-WS RI: Spring, Stateful Web Services, SMTP, and More
 5:30pm-6:30pm TS-8840 Services Interoperability with Java Technology and .NET: Technologies and Tools for Web 2.0
 7:55pm-8:45pm BOF-4108 Reliable, Transacted, and Secure Web Services Between Java and .NET, Using WSIT
Friday May 11, 2007
1:30pm-2:20pm TS-4865 Takes two to Tango: Java Web Services and .NET Interoperability

Note, TS-4865 is a repeat session.

Technorati: Javaone Tango WSIT Glassfish Web Services JAX-WS JAXWS presos

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

April 27, 2007

blogs.sun.com turns 3

Filed under: General — arungupta @ 12:00 am

blogs.sun.com (BSC) is a space available to any Sun Microsystems employee to write about anything. April 27th, 2007 is the third birthday of this space. Below is my contribution:

 

blogs.sun.com

Me

Total Blog Entries 65395 238 (0.36 %)
Total Comments 61617 211 (0.34 %)
First Entry Apr 27, 2004 Aug 2, 2005

There is even an aggregator for Sun alumni. Read interesting tidbits over past 3 years in Linda’s (engineering program manager for BSC) blog. A complete collection of wishes can be viewed here.

Here is a partial list of ways I’ve benefited from this personal space:

  1. This personal space provides yet another opportunity to communicate effectively with our users.
  2. It’s because of this personal space, we are able to establish community around GlassFish.
  3. It’s because of liberty to write about anything on this personal space, I’ve been able to share my running and photography stories with people I’ve never known.
  4. It’s because of this personal space, I got numerous wishes before my first marathon and completed it successfully.
  5. It’s because of this personal space, a 10-year old friend contacted me yesterday.

The list can go on. This blog is, now, a significant part of my identity :)

Happy third irthday blogs.sun.com, and congratulations to BSC engineering team!

Tag: bsc3years birthday

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

April 26, 2007

How to invoke a WSIT endpoint from a WCF client ?

Filed under: webservices — arungupta @ 6:03 am

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 experience to build such a Web service. The primary goal of WSIT is to provide first-class interoperability with Windows Communication Foundation (WCF), the Web services component of .NET 3.0 framework. Once the Web service is deployed, you’d like to invoke this Web service by writing a client using Visual Studio. It’s not straight forward to do so today and this entry highlights the steps required to do that.

  1. If not already done, create a reliable WSIT endpoint and deploy on GlassFish v2 following the screencast #ws3.
  2. For creating a WCF client, install the following software
    1. If not using Vista, then install .NET 3.0 Framework runtime.
    2. Microsoft Visual Studio 2005 Professional Edition (available via MSDN) - There are additional requirements for Express editions (free lightweight versions of Visual Studio)
    3. Microsoft Visual Studio 2005 Professional Edition SP1
    4. Microsoft Visual Studio 2005 Professional Edition SP1 Update
    5. Visual Studio 2005 Extensions for .NET 3.0 Framework (WCF & WPF), Nov 2006 CTP – For Express editions, Windows Vista SDK is required as well for WCF scenarios.
  3. Start Visual Studio
  4. Create a new Visual C#, Windows, Console Application. Program.cs is shown in the main Visual Studio window.
  5. In Solution Explorer, right-click on the project name and select "Add Service Reference ...". This is the big difference. If you select "Add Web Reference ...", then this creates a proxy and app.config for .NET 2.0 framework. But WSIT is about interoperability with .NET 3.0 framework.
  6. Specify the location of the WSIT endpoint, in our case (http://localhost:8080/WebApplication1/NewWebServiceService?wsdl).
  7. In the Main function of Program.cs, add the logic to invoke the generated proxy. The code looks like:
    using System;
    using System.Collections.Generic;
    using System.Text;
    using ConsoleApplication1.localhost;
    namespace ConsoleApplication1
    {
    class Program
    {
    static void Main(string[] args)
    {
    NewWebServiceClient client = new NewWebServiceClient();
    Console.WriteLine(client.sayHello("Duke"));
    }
    }
    }
  8. Build the solution by selecting "Build", "Build Solution" (default shortcut Ctrl+Shift+B).
  9. Run ConsoleApplication1\bin\Debug\ConsoleApplication1.exe. This will make a request to WSIT endpoint and get a response back.

The generated app.config file looks like:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<customBinding>
<binding name="NewWebServicePortBinding">
<reliableSession acknowledgementInterval="00:00:00.2000000" flowControlEnabled="true"
              inactivityTimeout="00:10:00" maxPendingChannels="4" maxRetryCount="8"
              maxTransferWindowSize="8" ordered="true" />
<textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
messageVersion="Soap11WSAddressing10" writeEncoding="utf-8">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
</textMessageEncoding>
<httpTransport manualAddressing="false" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"
              realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
              useDefaultWebProxy="true" />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="http://localhost:8080/WebApplication1/NewWebServiceService"
          binding="customBinding" bindingConfiguration="NewWebServicePortBinding"
          contract="ConsoleApplication1.localhost.NewWebService" name="NewWebServicePort" />
</client>
</system.serviceModel>
</configuration>

Here are the SOAP messages that get exchanged over the wire:

====[com.sun.xml.ws.assembler.server:request]====
<?xml version="1.0" ?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</a:Action>
<a:MessageID>urn:uuid:3429a390-96df-4f26-bd8c-fc85bd8f1858</a:MessageID>
<a:To s:mustUnderstand="1">http://localhost:8080/WebApplication1/NewWebServiceService</a:To>
</s:Header>
<s:Body>
<CreateSequence xmlns="http://schemas.xmlsoap.org/ws/2005/02/rm">
<AcksTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</AcksTo>
<Offer>
<Identifier>urn:uuid:402432c9-b191-4912-a04a-69bbdbd1b2d3</Identifier>
</Offer>
</CreateSequence>
</s:Body>
</s:Envelope>
============
====[com.sun.xml.ws.assembler.server:response]====
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<To xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymous</To>
<Action xmlns="http://www.w3.org/2005/08/addressing">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">uuid:b51f92ee-9ab9-4a90-a61e-d5dd3a77a0f9</MessageID>
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:3429a390-96df-4f26-bd8c-fc85bd8f1858</RelatesTo>
</S:Header>
<S:Body>
<ns2:CreateSequenceResponse xmlns:ns6="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns5="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://schemas.microsoft.com/ws/2006/05/rm" xmlns:ns2="http://schemas.xmlsoap.org/ws/2005/02/rm">
<ns2:Identifier>uuid:d01cff2f-9192-4672-942b-2ec284a93802</ns2:Identifier>
<ns2:Accept>
<ns2:AcksTo>
<ns4:Address>http://localhost:8080/WebApplication1/NewWebServiceService</ns4:Address>
</ns2:AcksTo>
</ns2:Accept>
</ns2:CreateSequenceResponse>
</S:Body>
</S:Envelope>
============
====[com.sun.xml.ws.assembler.server:request]====
<?xml version="1.0" ?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:r="http://schemas.xmlsoap.org/ws/2005/02/rm" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<r:Sequence s:mustUnderstand="1">
<r:Identifier>uuid:d01cff2f-9192-4672-942b-2ec284a93802</r:Identifier>
<r:MessageNumber>1</r:MessageNumber>
</r:Sequence>
<a:Action s:mustUnderstand="1">sayHello</a:Action>
<a:MessageID>urn:uuid:d9c8b864-f236-40ad-a4c0-72c42565855f</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1">http://localhost:8080/WebApplication1/NewWebServiceService</a:To>
</s:Header>
<s:Body>
<sayHello xmlns="http://test/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<name xmlns="">Duke</name>
</sayHello>
</s:Body>
</s:Envelope>
============
====[com.sun.xml.ws.assembler.server:response]====
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<To xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymous</To>
<Action xmlns="http://www.w3.org/2005/08/addressing">http://test/NewWebService/sayHelloResponse</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">uuid:9091661c-c817-4411-b8aa-7f4f937162da</MessageID>
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:d9c8b864-f236-40ad-a4c0-72c42565855f</RelatesTo>
<ns2:Sequence xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://schemas.microsoft.com/ws/2006/05/rm" xmlns:ns2="http://schemas.xmlsoap.org/ws/2005/02/rm">
<ns2:Identifier>urn:uuid:402432c9-b191-4912-a04a-69bbdbd1b2d3</ns2:Identifier>
<ns2:MessageNumber>1</ns2:MessageNumber>
</ns2:Sequence>
<ns2:AckRequested xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://schemas.microsoft.com/ws/2006/05/rm" xmlns:ns2="http://schemas.xmlsoap.org/ws/2005/02/rm">
<ns2:Identifier>urn:uuid:402432c9-b191-4912-a04a-69bbdbd1b2d3</ns2:Identifier>
</ns2:AckRequested>
<ns2:SequenceAcknowledgement xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://schemas.microsoft.com/ws/2006/05/rm" xmlns:ns2="http://schemas.xmlsoap.org/ws/2005/02/rm">
<ns2:Identifier>uuid:d01cff2f-9192-4672-942b-2ec284a93802</ns2:Identifier>
<ns2:AcknowledgementRange Upper="1" Lower="1"></ns2:AcknowledgementRange>
</ns2:SequenceAcknowledgement>
</S:Header>
<S:Body>
<ns2:sayHelloResponse xmlns:ns2="http://test/">
<return>Hello Duke</return>
</ns2:sayHelloResponse>
</S:Body>
</S:Envelope>
============ 

The same programming model will work for creating a WCF client if you add security or transactions support on the WSIT endpoint.

Technorati: wsit glassfish webservices vista wcf visualstudio

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

April 25, 2007

New WSIT Blogger

Filed under: webservices — arungupta @ 4:41 pm

Welcome Ryan! He works on the implementation of WS-Coordination in WSIT.

And he starts his blog with a screencast on how to enable distributed Web services transactions between GlassFish v2 and .NET 3.0.

Technorati: screencast glassfish web services wsit

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

April 23, 2007

Resolved Vista Upgrade Error 80070103

Filed under: General — arungupta @ 9:04 pm

Follow up from here.

After getting bounced around between Microsoft Tech Support and MSDN Tech Support (seem to be separate entities) and collecting almost 5 different toll-free numbers for them, I finally resolved the error with help from a very talented and patient MSDN Tech Support professional.

Basically, the machine had two partitions – one using Windows XP and other Linux. And somehow the Linux partition was coming out as the primary active partition. So every time I was trying to install Vista, whether from within XP or boot from DVD, it was trying to look for an empty space on this partition. And of course it was not able to find any space because this file system is not NTFS. Now when I look at the error message again, it makes sense. But can’t the installation process find out that there are multiple partitions, one of them using NTFS, and then provide that information ?

With tech support help, I resolved the issue by deleting and formatting both the partitions. Another way to resolve this was to set Windows XP as the active partition following these instructions.

I almost lost faith in Microsoft Tech Support but this one talented individual helped me restore it.

Technorati: windows Vista XP microsoft

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

Week 10 Mileage – Improved PR on Rancho

Filed under: Running — arungupta @ 7:21 am

Mon: Rest
Tue: 7 miles
Wed: 5 miles
Thu: Rest
Fri: Rain
Sat: 9 miles
Sun: 10 miles

Improved my last week’s PR on Rancho to 47:35 going up and a total timing of 1:19:10.

Here are the interesting reads of this time …

  • Plateau Busing Plan – Jump start your weight loss.
  • The Diary Diet – Does it work ?
  • Get Healthy Calves and Shins – Explains calf pulls, shinsplints, stress fractures, and compartment syndrome
  • Get Speedy – Tips from top runners

Technorati: running training fitness runninglog

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

April 20, 2007

XP -> Vista Upgrade: Error 80070103

Filed under: General — arungupta @ 6:21 pm

I’ve been trying to upgrade an Ultra 20/4 GB RAM with Windows XP + SP2 machine to Windows Vista Ultimate and it’s just a plain ugly experience. I’ve installed Vista on two other machines and it was a much better but this one is the other extreme.

I insert the Vista media in the drive and it pops up a window with an option "Install now". I click on install and then it shows the following error message:

It’s hard to understand this error message because the primary drive has 91 GB of free disk space and installed using NTFS. Is the error message trying to convey something else ?

Searched on microsoft.com pointed me to this. But this article is only talking about this error code when installing updates, not updating the whole operating system. Anyway, I installed all the latest updates recommended by Windows Update Center. I also disabled my antivirus software as recommended in "What to know before installing Windows" (even though it’s a weird requirement) but this error will not go away.

Tried searching if temp directory is somehow assigned smaller space but didn’t find anything on that topic. Not sure if that’s even possible.

I posted a question to Vista installation newsgroup. The responses there point to a mismatch (1, 2, 3) between default display drivers provided by Microsoft and nVidia. So I uninstalled the default display driver and installed nVidia’s display driver. But still the same error message/number. BTW, the machine has Quadro FX 1400 card.

Then called up nVidia Tech Support. It took them few minutes to figure out that I’m "overwriting" my Window XP with Vista even though I began the call with "I’m upgrading my XP to Vista". Anyway, after the person on tech support understood my issue, I was told to format my Windows XP and then tried installing Vista from scratch! Another quote is "This is definitely a Microsoft problem because Vista is not even getting installed" even though I mentioned that all the links are referring about nVidia driver mismatch. Additionally, nVidia.com main website links to Can your computer run Windows Vista ? which test and reports whether a system can run Windows Vista or not. Interestingly, my laptop (which already has Vista) failed this test at Minimum, Recommended and Optimal level. And the machine on which I’m trying to install Vista passes this test at Minimum level but still giving this weird error.

Finally I called up Microsoft Tech Support and they transferred me to MSDN tech support which close at 5:30pm PT on weekdays.

As a result, I’m stuck this weekend waiting for MSDN tech support to open up Monday morning and then will follow up.

Is Windows Vista really ready for prime time for any serious application ?

UPDATE: Submitted a bug here.

Technorati: windows Vista XP nVidia

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot
Older Posts »

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.
Powered by WordPress