Showing posts with label web. Show all posts
Showing posts with label web. Show all posts

Monday, March 2, 2015

IMU LS 02 Web Conferencing for Teaching Learning and Meetings



Date: Wednesday, 11th January 2012
Venue: Online (WizIQ)
Time: 2:15 - 3:30 P.M. (Malaysian time)
Facilitators: Zaid Ali Alsagoff and Fareeza Marican



AGENDA
Can we use Web Conferencing (WizIQ) for teaching, learning and meetings? This online session will explore the basics of using Web Conferencing and how it can be used for teaching and learning. By the end of this session, participants shall be able to use Web Conferencing for teaching, learning, meetings, etc.



RECORDING
You are recommended to skip the first 22 minutes of the recorded webinar, so that you can get right into the action. The actual learning session starts roughly 22 minutes after the recording started. If you have any problems viewing, try updating your Flash Player.


CLICK HERE
(To view the recorded online session)


* Currently, WizIQ (the version we are using) does not have a post-editing feature for webinar recordings. Also, there is no pause button to use while recording a webinar. Please skip the first 22 minutes of the webinar above to really enjoy the learning session. 



PRESENTATION SLIDES
The presentation slides for this webinar is only available for IMU staff (from the e-learning portal). However, here are similar presentation slides from WizIQ, which basically covers what we covered during the webinar.



Wiziq training material
Uploaded by Sunil on WizIQ Tutorials

Sunday, February 15, 2015

How to Create a Web Browser in Visual Basic

In visual basic the simplest application ever could be created is a web browser. Visual basic already contain a web browser control within the toolbox, after adding it we could easily play around with the many web browser functions like navigate (to navigate to a particular website), refresh, etc. In this tutorial we will see how we can create a simple web browser in visual basic.

Also Read: How to Create a Keylogger in VB.Net?


How to Create a Web Browser in Visual Basic

How to Create a Web Browser in Visual Basic

1. First of all create a new windows form application in visual basic.

2. Now add 4 buttons and change their text as given below.

Button1 - << (To move backword)
Button2 - >> (To move forward)
Button3 - Refresh
Button4 - Go

3. Add a textbox and align them in the manner shown below.


How to Create a Web Browser in Visual Basic

4. Now double click the form to switch to code view and paste the code given below.

Public Class Form1

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
WebBrowser1.GoBack()

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
WebBrowser1.GoForward()

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
WebBrowser1.Refresh()
End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
WebBrowser1.Navigate(TextBox1.Text)
End Sub

Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyDown
If e.KeyData = Keys.Enter Then
Button4.PerformClick()
End If
End Sub

Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged

End Sub
End Class

5. You have done!! Hit Debug and browse some of your favorite sites with your own fully functional web browser.

If you liked this tutorial then please take your few seconds to share it!

Friday, January 16, 2015

How to consume a SOAP based web service from java

This post describes how we can access SOAP based web service from java using ksoap2 library. ksoap is a SOAP web service client library for constrained Java environments.

First download ksoap2:
https://code.google.com/p/ksoap2-android/wiki/HowToUse?tm=2
Then create a java project in Eclipse and add ksoap library to java build path.
Here is the sample code that can be used to access Currency Convertor web service hosted by http://www.webservicex.net
 
package com.mycode.soap;

import java.io.IOException;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;
import org.xmlpull.v1.XmlPullParserException;

public class SoapTest {

public static void main(String[] args) {
try {
final String NAMESPACE = "http://www.webserviceX.NET/";
final String URL = "http://www.webservicex.net/CurrencyConvertor.asmx";
final String SOAP_ACTION = "http://www.webserviceX.NET/ConversionRate";
final String METHOD_NAME = "ConversionRate";
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
//set properties
PropertyInfo fromProp = new PropertyInfo();
fromProp.setName("FromCurrency");
fromProp.setValue("USD");
fromProp.setType(String.class);
request.addProperty(fromProp);

PropertyInfo toProp = new PropertyInfo();
toProp.setName("ToCurrency");
toProp.setValue("LKR");
toProp.setType(String.class);
request.addProperty(toProp);

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

androidHttpTransport.call(SOAP_ACTION, envelope);
SoapPrimitive response = (SoapPrimitive) envelope.getResponse();
String webResponse = response.toString();
System.out.println(webResponse);
} catch (XmlPullParserException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
} 
In line 36 I have set
envelope.dotNet = true;
For other web services comment that line.