p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional Ajax ISBN: 978-0-471-77778-6 (http://p2p.wrox.com/forumdisplay.php?f=244)
-   -   Chapter 6 : Web Services and Ajax (http://p2p.wrox.com/showthread.php?t=65806)

2mk February 11th, 2008 01:40 AM

Chapter 6 : Web Services and Ajax
 
In chapter 6, there is topic that explain how to call web services with Ajax. There are 2 variable that i don't understand.

var SERVICE_URL="http://localhost/Math/Math.aspx";
var SOAP_ACTION_BASE = "http://www.wrox.com/services/math";

Can someone explain this 2 variable.

I create web services with PHP, my web services located at "http://localhost/slide/server.php".

Is this right ?
var SERVICE_URL="http://localhost/slide/server.php";
var SOAP_ACTION_BASE = ?

So what what about SOAP_ACTION_BASE ?







joefawcett February 11th, 2008 04:21 AM

The SOAP ACTION uniquely identifies the service and method and is usually composed of the service's namespace and the method's name. The base was stored as a variable in case the namespace chosen was different to the example and to make the code more generic. A full implementation would read the service's WSDL and configure the client dynamically. You can see what the full soap action should be by examining the WSDL output from the service. It's in the wsdl:binding element under soap:operation, the soapAction attribute. You just need to make sure the SOAP_ACTION_BASE is the same as that minus the / and method name.

--

Joe (Microsoft MVP - XML)


All times are GMT -4. The time now is 04:12 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.