Integrating Openwave simulators with Microsoft Visual Studio .NET
If you are developing mobile Web applications using ASP.NET (using the ASP.NET mobile controls), you can test your content with Openwave mobile browser simulators without leaving Microsoft Visual Studio .NET . This is done by configuring Visual Studio .NET to take advantage of the command-line arguments supported by Openwave SDKs 4.1.1, 6.1, and 6.2. (These Openwave SDKs are available for free from the Openwave Developer Web site .)
Openwave SDK 4.1.1 contains a simulator for Openwave mobile browser 4.1, which adheres to the WAP 1.1 standard and renders content in WML. SDK 6.1 and 6.2 contain Openwave mobile browser 6.1 and 6.2 respectively, which adhere to the WAP 2.0 standard and render content in XHTML Mobile Profile and CSS. You can use any combination of simulators, depending on your needs and the target devices for your market. For details on browser capabilities and device deployments, see the Openwave Developer Web site .
For more information about integrating simulators with Visual Studio .NET, see the MSDN Mobile Internet Toolkit article "Working with Emulators and Browsers" .
Requirements
Integrating an Openwave simulator with Visual Studio
You install an Openwave simulator as an application browser in Visual Studio .NET.
"C:\Program Files\Openwave\SDK 6.2\program\http\OSDK62http.exe"
"C:\Program Files\Openwave\SDK 6.1\program\http\OSDK61http.exe"
"C:\Program Files\Openwave\UPSDK411\upsim411.exe"
Openwave SDK 6.1
.
-reload %URL
. "
), but append command-line arguments outside the quotes. Testing with the Openwave simulator
To test your applications with the Openwave simulator in Visual Studio .NET, select File > Build and Browse or File > Browse .
The Openwave simulator starts with one or two windows depending on the version. The main simulator window always gets initialized and the Phone Information window may get initialized as well. Either window may launch minimized or in the background, so you may have to bring it to the foreground.
As you debug and make changes, you can again select File > Build and Browse to update the running simulator and pass it the URL you are currently working on. This way you can test your current page or move between pages.
You can also navigate using the Openwave simulator itself, selecting links or entering URLs in the simulator's "Go" field.
Debugging with the Openwave simulator
To debug your application using the Openwave simulator and the Visual Studio .NET debugger, simply choose the Debug > Start or Debug > Start Without Debugging commands. The Openwave simulator will be launched and will display the running application, while the Visual Studio .NET debugger will allow you to watch variables, step through code, and perform other debugging tasks.
If you are using the Openwave SDK 4.1.1, however, you must first change your project's debug configuration.
Controlling a running simulator with Visual Studio .NET
You can create menu items in Visual Studio that send command-line arguments to a running Openwave simulator.
The simulator features a number of command-line arguments, such as -clearcache
to clear the simulator's cache, -pho
to change the simulator's
configuration file (or "skin"), and -lang
for changing the
language, character set, and related localization settings the simulator sends
in ACCEPT
headers to web servers. For a complete list and
description of simulator command-line arguments, see the Openwave SDK release
notes.
[New Tool 1]
in the Title field with a
name for the new menu item.
C:\Program Files\Openwave\SDK 6.1\program\http\OSDK61http.exe
Notes
There are some Openwave simulator command-line arguments that you can only use
when you start the simulator, and there may be some that you want to set as
defaults (for example, the default language or default simulator configuration
file, or "skin"). In these cases, you can start the simulator using a batch
file with all the arguments you need. One way to to this is to edit the batch
file called when you start the simulator using its Start menu item, C:\Program
Files\Openwave\SDK 6.1\program\OSDK61http.cmd
. For details, see the Openwave SDK release notes.
If you are using SDK 4.1.1, the first time you launch the simulator using Build
and Browse, the -reload
argument is not handled
correctly. The easy workaround is to just call Browse again,
or to launch the simulator using its own Start menu item or a batch file first.
All subsequent reloads work correctly.
TNVS-004
January 2003