Page 1 of 1

own objects and nuSOAP ?!

Posted: Mon Oct 10, 2005 8:04 am
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 :)

Posted: Mon Oct 10, 2005 8:11 am
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

Posted: Mon Oct 10, 2005 9:46 am
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 ;)