Wrox Programmer Forums
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 11th, 2008, 01:40 AM
2mk 2mk is offline
Registered User
Join Date: Feb 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to 2mk
Default 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";

So what what about SOAP_ACTION_BASE ?

Old February 11th, 2008, 04:21 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

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)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 - Web Services Sample mjk12345 BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 2 July 8th, 2008 01:53 PM
Proxy script to call web services with Ajax 2mk Ajax 0 March 4th, 2008 04:58 AM
Web Services with AJAX hari.gomatum Ajax 1 October 10th, 2007 09:53 AM
Web Services SOAP Example (Chapter 26) pagates BOOK: Professional C#, 2nd and 3rd Editions 0 February 17th, 2005 03:16 PM

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