BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 05-07-2007, 03:53 PM   #1 (permalink)
New Member
 
Join Date: May 2007
Model: 8800J
PIN: N/A
Carrier: Cingular
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Smile BB simulator wireless not working

Please Login to Remove!

I am trying to write a webservice client using BB JDE. And I realized the wireless service is not connected in my Blackberry Emulator. Can anyone help me setting the wireless account in the BB emulator.

Thank you,
Chandra
Offline  
Old 05-07-2007, 04:48 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Perfect Storm's Avatar
 
Join Date: Dec 2006
Location: Ottawa
Model: 8900
OS: 4.6.1.114
Carrier: Rogers
Posts: 2,467
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wirelessly posted (BlackBerry8700/4.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/100)

You must run the MDS simulator at the same time in order to enable data on the simulator. Without it the device sim will look like it's connecting but everything will just time out
__________________
www.petermac.ca - Photo wallpapers only in BlackBerry Internet Browser
www.BBeXtras.com - Photo wallpapers sent to your BlackBerry
BlackBerry Themes
Offline  
Old 05-08-2007, 11:17 AM   #3 (permalink)
New Member
 
Join Date: May 2007
Model: 8800J
PIN: N/A
Carrier: Cingular
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Thanks a lot for the reply. It works now but it throws an exception org.xmlpull.vl.XmlPullParserException: unexpected type (position: TEXT Not authorized t...@1:39 in java.io.InputStreamReader@59324728). Do you know wat the problem could be? Please find my code below

import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;

import org.ksoap2.*;
import org.ksoap2.serialization.*;
import org.ksoap2.transport.*;

/**
*
*/
class StockQuoteScreen extends MainScreen{

StockQuoteScreen()
{
super();

LabelField applicationTitle = new LabelField("Stock Quote");
setTitle(applicationTitle);
RichTextField stockQuoteTextField = new RichTextField("gotResponse");
add(stockQuoteTextField);

//add(stockQuoteTextField);
//AxisStockQuoteExample aStockQuote = new AxisStockQuoteExample(stockQuoteTextField);
// Create the outgoing message
SoapObject requestObject = new SoapObject("x", "getQuote");
// ask for the specially encoded symbol in the included service
requestObject.addProperty("symbol", "XXX");

// use version 1.1 of soap
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);

// add the outgoing object as the request
envelope.setOutputSoapObject(requestObject);
//new MarshalFloat().register(envelope); // not really needed for j2se version

// Create a transport layer for the J2SE platform. You should change this for
// another transport on midp or j2me devices.
HttpTransport transportSE = new HttpTransport("http://localhost:8080/axis/StockQuoteService.jws");
// turn on debug mode if you want to see what is happening over the wire.
//transport.debug = true;
try {
// call and print out the result
transportSE.call("getQuote", envelope);
//System.out.println(envelope.getResponse());
//stockQuoteTextField.setText(((Float)envelope.getRe sponse()).toString());
stockQuoteTextField.setText(stockQuoteTextField.ge tText() + " called ");
//stockQuoteTextField = new RichTextField("gotResponse");
} catch (Exception e) {
// if we get an error print the stacktrace and dump the response out.
e.printStackTrace();
//System.out.println(transportSE.responseDump);
stockQuoteTextField.setText(stockQuoteTextField.ge tText() + e);
//stockQuoteTextField = new RichTextField(transportSE.responseDump);
}
}

public boolean onClose()
{
Dialog.alert("Bye Stock Quote!");
System.exit(0);
return true;
}
}


Thank you,
Chandra.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

6 inch silicon wafer of 64K bit memory chips + Vintage DEC 14 inch hard disc
$75.0
6 inch silicon wafer of 64K bit memory chips  + Vintage DEC 14 inch hard disc  pictureDEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chips *NEW* 40278101
$60.0
DEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chips *NEW* 40278101  pictureVintage Graton & Knight Co. Lineman's Belt Dec 1953 Belt Climbing Harness Strap
$33.99
Vintage Graton & Knight Co. Lineman's Belt Dec 1953 Belt Climbing Harness Strap pictureVintage Rare DEC 1073D / 1996 JD3487 H 9833
$49.99
Vintage Rare DEC 1073D  / 1996 JD3487 H 9833    pictureVintage Digital DEC M3106 Line SYNC MUX Board
$29.99
Vintage Digital DEC M3106 Line SYNC MUX Board picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.