error in calling Web Service

前端 未结 2 1259
栀梦
栀梦 2021-01-07 06:07

I am not able to call aweb service even after adding kSOAP 2 library jar file.

Source code :

  package com.example.w         


        
2条回答
  •  礼貌的吻别
    2021-01-07 06:23

    AndroidHttpTransport androidHttpTransport=new AndroidHttpTransport(URL); 
    

    I have changed this line to:

    HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); 
    

    And it worked fine.
    Also thanks for the full package rekaszeru.

提交回复
热议问题