gbzhhu
asked on
call .net asmx web service from AFNetworking
0
down vote
favorite
I have tried all I could think of and googled till my eyes are red but maybe I am not smart enough. I would like to call a method
URL http://somedomain/SOSvc.asmx
There are many methods there but I am interested in one named AuthenticateUser which takes two string parameters 1. userNameIn and 2. password
I have this working using ASIHTTPRequest before and parsed returned xml with TBXML but now I need to use AFNetworking because nobody seems to be maintaining ASIHTTPRequest. I can't show you my code because I have tried several different variations and it is a mess. I am just wondering if it is possible to get xml string back from .net asmx web service using AFNetworking
down vote
favorite
I have tried all I could think of and googled till my eyes are red but maybe I am not smart enough. I would like to call a method
URL http://somedomain/SOSvc.asmx
There are many methods there but I am interested in one named AuthenticateUser which takes two string parameters 1. userNameIn and 2. password
I have this working using ASIHTTPRequest before and parsed returned xml with TBXML but now I need to use AFNetworking because nobody seems to be maintaining ASIHTTPRequest. I can't show you my code because I have tried several different variations and it is a mess. I am just wondering if it is possible to get xml string back from .net asmx web service using AFNetworking
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
What I have is more compact than yours and works fine now as I said before you posted solution was to add a couple of lines to my web config for the service. Objective C code was fine all along!
Thank you