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

BlackBerry Web Services

Reply
Contributor
Posts: 14
Registered: ‎03-28-2011
My Device: 8530
My Carrier: Reliance

Problem with usage of httppost method

Hi ,

 

 i added all external jars for org.apache.http.* in my project and all methods are fine except below.

 

HttpPost httpPost = new HttpPost("Specified URL");

httpPost.setEntity(entity);

 

 for this i am getting below error

 

The type java.net.URI cannot be resolved. It is indirectly referenced from required .class files

 

Even i added the external jars of org.json classes also , i am not understanding why i am getting this error

 

Basically my requirement is i want to send an sms to the server after that server will send the sms to the given number for that i am using MultipartEntity to attach files also....

 

Pls give me reply ASAP...

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Problem with usage of httppost method

Hi,

 

What type of server are you trying to post to?

Garett
@garettBeuk
--
Goodbye everybody!