Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Professional Ajax ISBN: 978-0-471-77778-6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 11th, 2008, 01:40 AM
2mk 2mk is offline
Registered User
 
Join Date: Feb 2008
Location: , , .
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";
var SOAP_ACTION_BASE = ?

So what what about SOAP_ACTION_BASE ?






Reply With Quote
  #2 (permalink)  
Old February 11th, 2008, 04:21 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:51 AM.


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