ITsolutionWizard
asked on
jquery ajax
http://clientaccesstest.abc.com/wcf/orders/Service.svc?wsdl
I have service like above. It is working and I can see GetData web service name.
1. However, when I type below, it is not working now?
http://clientaccesstest.abc.com/wcf/orders/Service.svc/GetData
2. For some reasons, I can't see the source codes from the service but I do want to return default value, no matter what it is. Can you show me sample codes in jquery/ajax how to do that?
Thanks
I have service like above. It is working and I can see GetData web service name.
1. However, when I type below, it is not working now?
http://clientaccesstest.abc.com/wcf/orders/Service.svc/GetData
2. For some reasons, I can't see the source codes from the service but I do want to return default value, no matter what it is. Can you show me sample codes in jquery/ajax how to do that?
Thanks
Greetings ITsolutionWizard, , From the web addresses I have used in server side coding , , IF the addy ends in -
wsdl
then this is a "Web Services Description Language" definition in an XML format, that describes the NameSpaces and the access points (variables, methods) for a sever dispensed SOAP, two-way connection, communication., Since the SOAP transport connection is a very specialized and finicky code method exchange , you almost always need to get EXAMPLE code from the Service providers developers API documentation.
wsdl
then this is a "Web Services Description Language" definition in an XML format, that describes the NameSpaces and the access points (variables, methods) for a sever dispensed SOAP, two-way connection, communication., Since the SOAP transport connection is a very specialized and finicky code method exchange , you almost always need to get EXAMPLE code from the Service providers developers API documentation.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
that depends a lot on how the WCF service is implemented.
Normally your jQuery AJAX call is a post (and not a get which is the behaviour when opening the service in the browser).
An good example can be found at the C# Corner site - this handles both sides (service and client):
http://www.c-sharpcorner.com/UploadFile/rohatash/calling-wcf-services-using-jquery/
So are you developing the service? If yes, can you post / attach your source code?
HTH
Rainer