own objects and nuSOAP ?!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Hardcore4Life
Forum Newbie
Posts: 14
Joined: Mon Oct 10, 2005 7:58 am
Location: Hannover / Germany
Contact:

own objects and nuSOAP ?!

Post by Hardcore4Life »

first of all:
cheers to all who read this cause it is my first post ;)

and know - heres my question:
i start developing web services with the nuSOAP Class - everything works fine until now :-(
i'd like to give a function in my service one of my own objects as a parameter to work with this object in the service
but nothing happens

can somebody tell me how i fix this?

p.s.: sorry for the english - im 'only' german :)
User avatar
Nathaniel
Forum Contributor
Posts: 396
Joined: Wed Aug 31, 2005 5:58 pm
Location: Arkansas, USA

Post by Nathaniel »

Hi Hardcore, hope you like it here :)

In your function that accepts the object as a parameter, you need to pass by reference.

See:
Passing by Reference
This comment by bobbykjack

Hope that helps you out. I remember when I had the exact same problem you did... :)

- Nathaniel
Hardcore4Life
Forum Newbie
Posts: 14
Joined: Mon Oct 10, 2005 7:58 am
Location: Hannover / Germany
Contact:

Post by Hardcore4Life »

Hi Nathaniel,

i can't work with references cause i must tell my webservice the types from my parameters.

i solved the problem by serializing the damn object and then tell my webservices the serialized string
to work with it ...

but when somebody is sure i can fix the problem another way ... tell it ;)
Post Reply