error in calling Web Service

前端 未结 2 1261
栀梦
栀梦 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.

    0 讨论(0)
  • 2021-01-07 06:35

    For KSoap2 to work on Android, the core library is not enough.

    You need the full package.

    0 讨论(0)
提交回复
热议问题