473,498 Members | 1,911 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP SOAP, really a web service?

dlite922
1,584 Recognized Expert Top Contributor
Hey guys, I'm new to SOAP although I know what it is, I've been looking at tutorials and don't know if it's really a web service.

What I thought it was: a process that was instantiated on the server once and responded to requests on a port. For example if my PHP application uses a 5000 line file, it would load that file into memory once while a traditional PHP app would load that file for each client request.

According to this SOAP server example:

Expand|Select|Wrap|Line Numbers
  1.  
  2. <?php 
  3. # HelloServer.php
  4. # Copyright (c) 2005 by Dr. Herong Yang, http://www.herongyang.com/
  5. #
  6. function hello($someone) { 
  7.    return "Hello " . $someone . "!";
  8.  
  9. $server = new SoapServer(null,array('uri' => "urn://www.herong.home/res"));
  10. $server->addFunction("hello"); 
  11. $server->handle(); 
  12. ?>
  13.  
  14.  
source: http://www.herongyang.com/PHP/php_soap_server.html

It looks like you just call that file through a soap client. In other words: if my hello() function loaded a large file, every soap client that connected to it will load it for itself?

I'd love to hear some clarifications from anyone that has worked with SOAP server before.
May 11 '09 #1
1 1663
Dormilich
8,658 Recognized Expert Moderator Expert
@dlite922
I think so (according to my very limited SOAP experience), unless you write some clever code, that puts the file persistent in memory… (and decide, when to delete it). anyway, you never know, when a SOAP request is made.
May 12 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3311
by: Cantor | last post by:
Hello everyone :) I am writing some dotNET code to "consume" a web service written in PHP. So far I have been getting some error messages and PHP seems to place HTML text in front of the XML...
4
7858
by: Mark | last post by:
i have a very simple web servive Imports System.Web.Services <System.Web.Services.WebService(Namespace:="urn:Example1")> _ Public Class Example1 Inherits System.Web.Services.WebService
0
2230
by: Cleo | last post by:
Hi, I am trying to call a WebService Method written in Weblogic from VB.NET and I am getting the following error. I am using SOAP Caal s from VB.NET. Please find the wsdl file and my code. ...
4
2240
by: Jonathan [sbrodolo] | last post by:
Hi there, I am using a LOTUS/DOMINO Web Service in my ASP.Net application and I am having quite a lot of problems. I have managed to solve most of them but this one it really is giving me terrible...
16
3152
by: MR | last post by:
my soap messages to a remote site are failing. as far as i can tell the only differences between what my SOAP message looks liek and what they want are in the SOAP envelope SInce they don't have a...
31
2784
by: Bryan Dickerson | last post by:
Ok, simple question: from a VB.Net web service (as I've said before, I'm a newbie to SOAP), how would I get the SOAP body into a string? My boss and I concur that it, at least from our...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7203
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4908
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4588
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.