Question : java servlet to call class method

Hi
I have a problem with java servlet that can't call another method in java class

the servlet is supposed to receive some values from the URL
then pass values to the CLASS that uses third party library to send data over the internet

the third party class  works only if called from another class but NOT from a SERVLET. while the servlet can call other classes fine but not this one particularly!!

therefore, I believe the problem is with the third party class. thus, i need help to investigate the problem
the class i am having problem with is attached.
it uses these libraries:
    * Apache Commons http-client
    * org.json JSON parsing library
    * Apache Commons Logging
    * Apache Commons Codec
http://code.google.com/p/textmagic-sms-api-java/

and the question why can't the servlet run this class while other classes can?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
import com.textmagic.sms.TextMagicMessageService;
import com.textmagic.sms.exception.ServiceException;

public class SendSMS {
    public void sendSMS(String mobile, String message){
        TextMagicMessageService service = new TextMagicMessageService("user","pass");
        try{
            service.send(message, mobile);//error occurs here
        }catch(ServiceException ex){
            System.out.println(ex.getMessage());
//error message: Couldn't invoke service with 'send' command
        }
    }
}

Answer : java servlet to call class method

select ipist.part_no,
Condition_Code_Manager_Api.Get_Condition_Code (Part_No,Serial_No,Lot_Batch_No) Condition,
sum(Qty_Onhand)
FROM INVENTORY_PART_IN_STOCK_TAB ipist
Where ((Qty_Onhand > 0
--and part_no      = '411305' ))
--or part_no      = '.016 7075-T6 CLAD' ))
and part_no in ('411305','.016 7075-T6 CLAD' )
group by ipist.part_no, Condition_Code_Manager_Api.Get_Condition_Code (Part_No,Serial_No,Lot_Batch_No)
Random Solutions  
 
programming4us programming4us