Link to home
Create AccountLog in
Avatar of Lawrence Avery
Lawrence AveryFlag for United States of America

asked on

AJAX call to web service

When making a AJAX call to xml web service or wcf service, is SOAP involved with the data transfer?
Avatar of Shalom Carmel
Shalom Carmel
Flag of Israel image

Not necessarily.
REST web services also can have XML payloads.
If however you have to deal with wsdl responses, then SOAP is involved.

Show us the specs or an example and we'll tell you.
Avatar of Lawrence Avery

ASKER

In this case I am using ScriptManager and ServiceReference  to register my asmx service in my aspx form and then calling my service method from a javascript function.
I know using Scriptmanager and Service tags generate the web service specified proxy classes.

Am I still dealing with a wsdl by calling my web service this way?

I guess what I am saying when dealing a asmx service or wcf service, are we always enclosing the output from the service no matter if service is returning JSON or XML with a SOAP envelope?
ASKER CERTIFIED SOLUTION
Avatar of Shalom Carmel
Shalom Carmel
Flag of Israel image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
n/a