View Single Post
Old 03-28-2011, 08:13 PM   #69 (permalink)
New Member
Join Date: Mar 2011
Model: 8950
Carrier: US Cellular
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: **** BlackBerry and Ksoap2 Tutorial *****

I have been stuck on the same line for the last 2 weeks! I am just about going insane. Here is my code:

			SoapObject request = new SoapObject(namespace, method_name);
			request.addProperty("Celsius", "32");
			SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);
			envelope.dotNet = true;
			envelope.encodingStyle = SoapSerializationEnvelope.XSD;
			envelope.bodyOut = request;
			HttpTransport transport = new HttpTransport(url);
			transport.debug = true;
			{, envelope);
				SoapPrimitive primitive = (SoapPrimitive)envelope.getResponse();

				((MyScreen)this.getActiveScreen()).add(new RichTextField("" + primitive));
			catch(Exception ex)
				((MyScreen)this.getActiveScreen()).add(new RichTextField("" + ex.getMessage()));
		catch (Exception e)
			((MyScreen)this.getActiveScreen()).add(new RichTextField("failed2"));
When I go through debug mode, it stops at the line ", envelope);" And it pops up to a screen with no source code. "DatagramProtocol(ConnectionBase).receive(Datagram ) line: 538". Since I can't see the source code, I have absolutely no idea what is going wrong.

I'm using the webservice from w3schools. My variable values are in an image attached

Please help!!!

Please help!!!
Attached Images
File Type: jpg variables.jpg (32.7 KB, 24 views)
Offline   Reply With Quote