문제

I am getting "no ":" in url blackberry" exception when I try to hit web service.
My url is like "http://url/MobileWrapper/action_name.do"

    String redemptionUrl = "http://test.TTMF.com/MobileWrapper/reconfirm.do";
HttpConnection httpConn = null; DataOutputStream dataOS = null;
redemptionUrl = redemptionUrl+ ";deviceside=true";
 httpConn = (HttpConnection) Connector.open(redemptionUrl);
도움이 되었습니까?

해결책

Check your generated URL. It must be an invalid URL. Do debug or System.out.print(..).

To make a connection you have to do some common tasks, such as

  • White Space removal from URL.
  • Encode unwanted characters in URL with their HTML equivalent code.
  • Append appropriate connection parameter to the URL depending on connectivity support available on the device.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top