Hello :)
I'm trying to write a script that deals with a web service.
I'm using NuSoap class.
my question is : Can I pass some variables By Reference to the web
service and get the result back in my variables ??
note1: I'm not the one who wrote the web service.. so I can't modify
it.
note2: the web services is written using .NET if this could help
thank you
Best Regards,
Amr Mostafa 4 3599
First, do you know what by reference means? This can be done, depending on
the complexity of the service, but for the most part you are only passing a
*reference* to a variable, so how does the service know what the variable
data is? (since it is hosted on another machine)
--
Mike Bradley http://www.gzentools.com -- free online php tools
"Amr Mostafa" <am***@hotmail. com> wrote in message
news:6d******** *************** **@posting.goog le.com... Hello :)
I'm trying to write a script that deals with a web service. I'm using NuSoap class.
my question is : Can I pass some variables By Reference to the web service and get the result back in my variables ??
note1: I'm not the one who wrote the web service.. so I can't modify it. note2: the web services is written using .NET if this could help
thank you
Best Regards, Amr Mostafa
Hello :)
thanks for reply,
ofcourse I know what by reference is.. that's why my question began
with "Can I" not "How...".
but what I thought.. that may be some -behind the scene- occurs. so
the web service returns the variables passed as references as a
regular return. then PHP takes the returned by reference and assign
them to the variables which been passed in the function/web service
call.
anyway, as I said I'm not the one who wrote the web service.. but
someone in another company did and he used vb.net.
In fact I sent him asking "and how could your web service use the
references of my variables ?!!!" and I'm waiting his reply
sorry If I asked a question that doesn't have an answer but I wasn't
sure that it couldn't be done.
please if you have any ideas about how to return multi results.. let
me know.
Until now.. a second solution in my head is using structs.. but I also
don't know if it will work with web services or not. ( didn't make any
test yet )
Thanks a lot
Best Regards,
Amr Mostafa
"CountScubu la" <me@scantek.hot mail.com> wrote in message news:<9l******* ***********@new ssvr29.news.pro digy.com>... First, do you know what by reference means? This can be done, depending on the complexity of the service, but for the most part you are only passing a *reference* to a variable, so how does the service know what the variable data is? (since it is hosted on another machine)
-- Mike Bradley http://www.gzentools.com -- free online php tools "Amr Mostafa" <am***@hotmail. com> wrote in message news:6d******** *************** **@posting.goog le.com... Hello :)
I'm trying to write a script that deals with a web service. I'm using NuSoap class.
my question is : Can I pass some variables By Reference to the web service and get the result back in my variables ??
note1: I'm not the one who wrote the web service.. so I can't modify it. note2: the web services is written using .NET if this could help
thank you
Best Regards, Amr Mostafa
Sorry if my question seem rude, this was not my intent, just wanted to know
if you had a clear understanding of it. (perhaps I should find a better
aproach)
Are you locked into needint to send the referece? maybe you could write a
wrapper function, that would take the reference, assign it a varaible, pass
the variable data, and when returned, rejoin to reference?
hmm, you mentioned structures, I take it you may also be trying to pass
multiple items? thus the need to pass reference to struct, in order to pass
all items in it?
if you just need to have it return a diff reference, as in an index pointer,
then the reference is the data, and that should not be a problem, but the
service (for the most part) will not see the data linked to the reference.
oh, last but not least, there the wrapper again, passing the sturc reference
to a function, having the function pass each item in it to the service,
rebuilding the structure on return.
Just a shot in the dark :)
--
Mike Bradley http://www.gzentools.com -- free online php tools
"Amr Mostafa" <am***@hotmail. com> wrote in message
news:6d******** *************** ***@posting.goo gle.com... Hello :) thanks for reply,
ofcourse I know what by reference is.. that's why my question began with "Can I" not "How...". but what I thought.. that may be some -behind the scene- occurs. so the web service returns the variables passed as references as a regular return. then PHP takes the returned by reference and assign them to the variables which been passed in the function/web service call.
anyway, as I said I'm not the one who wrote the web service.. but someone in another company did and he used vb.net. In fact I sent him asking "and how could your web service use the references of my variables ?!!!" and I'm waiting his reply
sorry If I asked a question that doesn't have an answer but I wasn't sure that it couldn't be done.
please if you have any ideas about how to return multi results.. let me know. Until now.. a second solution in my head is using structs.. but I also don't know if it will work with web services or not. ( didn't make any test yet )
Thanks a lot
Best Regards, Amr Mostafa
"CountScubu la" <me@scantek.hot mail.com> wrote in message
news:<9l******* ***********@new ssvr29.news.pro digy.com>... First, do you know what by reference means? This can be done, depending
on the complexity of the service, but for the most part you are only
passing a *reference* to a variable, so how does the service know what the
variable data is? (since it is hosted on another machine)
-- Mike Bradley http://www.gzentools.com -- free online php tools "Amr Mostafa" <am***@hotmail. com> wrote in message news:6d******** *************** **@posting.goog le.com... Hello :)
I'm trying to write a script that deals with a web service. I'm using NuSoap class.
my question is : Can I pass some variables By Reference to the web service and get the result back in my variables ??
note1: I'm not the one who wrote the web service.. so I can't modify it. note2: the web services is written using .NET if this could help
thank you
Best Regards, Amr Mostafa
"CountScubu la" <me@scantek.hot mail.com> wrote in message news:<6M******* ********@newssv r25.news.prodig y.com>... Sorry if my question seem rude, this was not my intent, just wanted to know if you had a clear understanding of it. (perhaps I should find a better aproach)
Are you locked into needint to send the referece? maybe you could write a wrapper function, that would take the reference, assign it a varaible, pass the variable data, and when returned, rejoin to reference?
hmm, you mentioned structures, I take it you may also be trying to pass multiple items? thus the need to pass reference to struct, in order to pass all items in it?
if you just need to have it return a diff reference, as in an index pointer, then the reference is the data, and that should not be a problem, but the service (for the most part) will not see the data linked to the reference.
oh, last but not least, there the wrapper again, passing the sturc reference to a function, having the function pass each item in it to the service, rebuilding the structure on return.
Just a shot in the dark :)
-- Mike Bradley http://www.gzentools.com -- free online php tools
thank you a lot :)
in fact, you inspired me with some great ideas to solve this!
and yes as you said..
I try to pass multiple items.. and also try to recieve mulpile returns
:)
passing mulpile items as not the problem.. the problem with recieving
multiple items.
I will try all your ideas
thanks so much
Best Regards,
Amr Mostafa This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: lawrence |
last post by:
Those of you with backgrounds with the C language will laugh at my
mistake, but those of you, like myself, who deal mostly with PHP
should be warned about passing variables as references - debugging
then requires a whole new mindset. I've a cms written in procedural
style that I've been converting to OOP. It is important to always pass
objects by reference. Unthinkingly, writing the constructors, I also
passed my config array by reference....
|
by: domeceo |
last post by:
can anyone tell me why I cannot pass values in a setTimeout function
whenever I use this function it says "menu is undefined" after th
alert.
function imgOff(menu, num) {
if (document.images) {
document.images.src = eval("mt" +menu+ ".src")
}
alert("imgOff_hidemenu");
hideMenu=setTimeout('Hide(menu,num)',500);
|
by: Andy |
last post by:
Hi
Could someone clarify for me the method parameter passing
concept?
As I understand it, if you pass a variable without
the "ref" syntax then it gets passed as a copy.
If you pass a variable with the "ref" syntax then it gets
passed as a reference to the object and any changes to
|
by: Dave Hammond |
last post by:
In document "A.html" I have defined a function and within the document
body have included an IFRAME element who's source is document "B.html".
In document "B.html" I am trying to call the function defined in
"A.html", but every attempt results in an "is not a function" error. I
have tried to invoke the function using parent.document.funcname(),
top.document.funcname(), and various other identifying methods, but all
result in the above...
|
by: Douglas Robson |
last post by:
Ok, I've removed the MyItem class which is found in References.cs and
replaced it with a reference to the namespace that has MyItem in it. I've
also got rid of the tag at the top of the MyItem class.
the web service works now, only the problem is, it only returns objects
which are created by the default constructor.
public MyItem getMyItem()
{
| |
by: Chris Dunaway |
last post by:
A quick scan of the group did not immediately reveal an answer to my
questions so here goes.
First let me describe my app and then I'll ask the questions.
I am writing a Windows Forms App (not Web Forms) that serves as a thin
client to some web services. In other words, the Windows Forms app will be
installed on the client machines and that app will call web services that
are deployed on my server.
|
by: Phil B |
last post by:
I am having a problem with a datetime from a web services provider
The provider is sending the following SOAP response
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="urn:JadeWebServices/WebServiceProvider/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
|
by: Andrew Bullock |
last post by:
Hi,
I have two classes, A and B,
B takes an A as an argument in its constructor:
A a1 = new A();
B b = new B(a1);
|
by: andy |
last post by:
A question about about passing a class by reference:
Say you have a class called car, and within that you have two objects
called car01 and car02.
Within the class I have an int variable called wheels.
I have declared the following:
int number_of_wheels( const car &new_wheels)
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |