Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
New Contributor
Posts: 6
Registered: ‎07-10-2010
My Device: 8520
My Carrier: student
Accepted Solution

Edge Connection String Error

[ Edited ]

 Hi,

I develop ksoap application with blackberry. I have 8520.
My application works with wifi, but doesnt works with edge connection.
I tried below connection strings. But doesnt work.
Can you help me?

 

(Note: i wrote another forum this problem, anyone couldnt answer.

 

 public String getHTTPAdd() {
String serviceUrl = "";
if (radio.isSelected() == true){
setIsConStr(";interface=wifi");
serviceUrl = "http://localhost/test/test.asmx";
}
else if (radio2.isSelected() == true){
setIsConStr(";interface=wifi;deviceside=true");
serviceUrl = "http://myhost:3000/test/test.asmx";
}else if (radio3.isSelected() == true){
setIsConStr(";19780/rim.net.gprs");
serviceUrl = "http://myhost:3000/test/test.asmx";
}
else if (radio4.isSelected() == true){
setIsConStr(";XXXXXXXXXXXXXXXX");
serviceUrl = "http://myhost:3000/test/test.asmx";
}
else if (radio5.isSelected() == true){
setIsConStr(";deviceside=true");
serviceUrl = "http://myhost:3000/test/test.asmx";
}
else if (radio6.isSelected() == true){
setIsConStr(";deviceside=false");
serviceUrl = "http://myhost:3000/test/test.asmx";
}
else if (radio7.isSelected() == true){
setIsConStr(";deviceside=false;ConnectionType=m ds-public");
serviceUrl = "http://myhost:3000/test/test.asmx";
}
else{
setIsConStr(";rim.net.gprs");
serviceUrl = "http://myhost:3000/test/test.asmx";
}
return serviceUrl;
}

 

Also, i tried this example,

 

setIsConStr(";deviceside=true;ConnectionUID=" +uid+";ConnectionType=m ds-public");  

 

setIsConStr(";deviceside=false;ConnectionUID=" +uid+";ConnectionType=m ds-public");  

 

setIsConStr(";deviceside=true;ConnectionUID=" +uid+"");  

 

setIsConStr(";deviceside=false;ConnectionUID=" +uid+"");  

 

And, againly doesnt works.
(as an additional info, I use KSOAP Api to call Webservice)

 

 

 

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Edge Connection String Error

can you open the address in the browser?

please note that localhost is not supported on BB

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Contributor
Posts: 6
Registered: ‎07-10-2010
My Device: 8520
My Carrier: student

Re: Edge Connection String Error

Of course, it is not http://localhost. I want to write as "localhost". In fact, there is a real web service url.

So, i connect my url address in 8520 web browser without connection string.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Edge Connection String Error

Just so we know what experience you have with connecting a BlackBerry over wireless, have you reviewed the following Thread, and most importantly, the 'Required Reading' video and article from RIM?

http://supportforums.blackberry.com/t5/Java-Development/Connecting-your-BlackBerry-http-and-socket-c...

New Contributor
Posts: 6
Registered: ‎07-10-2010
My Device: 8520
My Carrier: student

Re: Edge Connection String Error

i solved it. Because of Ksoap api, it doesnt connect edge. instead of this, i use HttpConnection class. 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Edge Connection String Error

Good.

 

Can you mark this as solved then?

Contributor
Posts: 35
Registered: ‎12-01-2011
My Device: BlackBerry 8520
My Carrier: Generic

Re: Edge Connection String Error

for edge conenction, can u tell me which one of this worked?