java - Importing SOAP Webservice into Android Project Causes Error -


i have working android project using intellij.

i utilize intellij's menu option: 'generate java code wsdl'

i see class being built, , intellij seems validate in ide, when invoke webservice methods generated get

 java.lang.noclassdeffounderror: com.mydomain.testapp.sms.sendsms 

what being doing wrong cause class not found? i've tried several publicly available web services rule out webservice same error.

here 1 of test wsdl: http://www.aswinanand.com/sendsms.php?wsdl

and specific code:

sendsms s = new sendsms(); s.getsendsmsport().sendsmstomany("8135551212", "", "8135551212", "testing sms send");    

edit

tried webservice

http://www.esendex.com/secure/messenger/soap/sendservice.asmx?wsdl

with same basic usage:

sendservice ss = new sendservice(); string s = ss.getsendservicesoap().sendmessage("8135165861", "testing sms", messagetype.text); 

with exact same results.

i don't have idea "intellij", took @ wsdl have provided. wsdl looks fine, see "rpc/encoded" style service. "rpc/encoded" style services not inter-operable, suggest try "document/literal" style service instead of "rpc/encoded" style.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -