Feeds:
Posts
Comments

Archive for October, 2009

Sharepod for iPhone

If you own a iPhone, you might want to check out Sharepod, at http://www.getsharepod.com/download/. With this little application you’re able to send media files (mp3 etc) to your ipod without using  Itunes.

Why do I want this? Well, I got some mp3 songs on my work computer and I wanted them on my iPhone. If I try to use Itunes on my work computer all other mp3’s will be lost since you can only sync one Itunes at the time to iPhone (crap). Btw, you still need Itunes installed on the computer running SharePod.

Advertisements

Read Full Post »

Nikon D3s

Nikon releast its latest flag ship, the Nikon D3s about a week ago! It’s an improved version of the D3 camera, with the ability to catch HD video (720p) as well as taking images with the whopping ISO 102400 (that’s crazy!). Check out the brief hands on at DP Review here:

http://www.dpreview.com/news/0910/09101403NikonD3shandson.asp

Read Full Post »

Need utils for fast testing of WCF or webservices?

SoapUI is a great tool for testing webservices (http://www.soapui.org/).

The built in WcfTestClient for VS Studio is another which works for both webservices as well as WCF services! It could be found under C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\WcfTestClient.exe in VS Studio 2008.

Read Full Post »

Microsoft has released Beta 2 of VS Studio 2010 and .Net 4.0 today, available for MSDN subscribers, check it out at: http://go.microsoft.com/fwlink/?LinkID=151797.

Read Full Post »

Microsoft released a VPC for BizTalk 2009 to be used as live demo or hands-on labs.

Download it here:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ced208ef-d31e-4711-bc13-ac0227e80d88#tm

The virtual machine image contains a full live demo and six hands-on labs of BizTalk Server 2009, which highlight integration with SharePoint Server 2007 and Windows Workflow (.NET 3.5).

Read Full Post »

One problem I encountered in a project is to call several services (Webservice/SQL etc) via BizTalk before delivering a result back to a web application. By calling the services synchronously and letting the user wait meanwhile is not a good solution, however calling the services asynchronously seems like a better choice.

By using AJAX and exposing the services as webservices from BizTalk a great solution could be made. I made a test webservice with the following code:

namespace WebApplication1
{
    /// <summary>
    /// Summary description for WebService1
    /// </summary>
    [WebService(Namespace = “http://tempuri.org/“)] //
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
    [System.Web.Script.Services.ScriptService]
    public class WebService1 : System.Web.Services.WebService
    {

        [WebMethod]
        public string HelloWorld()
        {
            return “Hello World”;
        }

        [WebMethod]
        public string HelloWorld2()
        {
            System.Threading.Thread.Sleep(5000);
            return “Hello World2″;
        }
    }
}

Note the 5 seconds sleep in the HelloWord2 method. Then I created and AJAX enabled web page, with the following code:

<%@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=”Default.aspx.cs” Inherits=”WebApplication1.Default1″ %>

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
<html xmlns=”http://www.w3.org/1999/xhtml“>
<head runat=”server”>
    <title></title>

    <script type=”text/javascript”>

        function pageLoad() {
        }

        function MyBtn_onclick() {
            ret1 = WebApplication1.WebService1.HelloWorld2(OnComplete1, OnTimeout, OnError);
            ret2 = WebApplication1.WebService1.HelloWorld(OnComplete2, OnTimeout, OnError);
        }

        function OnTimeout() {
            alert(“Timeout on webservice call”);
        }

        function OnError() {
            alert(“Error in webservice call”);
        }

        function OnComplete1(arg) {
            document.getElementById(‘MySpan2’).innerHTML = arg;
        }

        function OnComplete2(arg) {
            document.getElementById(‘MySpan1’).innerHTML = arg;
        }
    </script>

</head>
<body>
    <form id=”form1″ runat=”server”>
    <div>
        <asp:ScriptManager ID=”ScriptManager1″ runat=”server”>
           <!– Add a reference to the webservice, to be able to call it from javascript code above –>
            <Services>
                <asp:ServiceReference Path=”~/WebService1.asmx” />
            </Services>
        </asp:ScriptManager>
        <input id=”MyBtn” onclick=”return MyBtn_onclick()” type=”button” value=”Invoke” />
        <br /><br />
        <span id=”MySpan1″></span>
        <br />
        <span id=”MySpan2″></span>
    </div>
    </form>
</body>
</html>

When a user clicks on the Invoke button, the code invokes the both methods asynchronously. This means that the HelloWorld method returns its value before the HelloWorld2, even thought the HelloWorld2 is called before HelloWorld.

Read Full Post »

Microsoft released this white paper which describes how to connect BizTalk Server 2009 with Sharepoint 2007. Check it out at http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=dd4e843d-2121-4016-8391-d763d0ff0a08. You could also check out my old post about this subject.

Read Full Post »

Older Posts »