Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have successfully generated an XML response using SOAP in PHP.

One additional thing which i would like to know is :
How do I make out how many parameters are passed from the client page when calling the web service?

Based on the number of parameters passed, my web service will be doing things accordingly.

Any early help will be highly appreciated!!!

Thanks and regards,
Anirban

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 23-Mar-14 1:39am
v2
Comments
OriginalGriff 23-Mar-14 7:40am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.

1 solution

SOAP doesn't support varying numbers of parameters (parameter array). While defining the SOAP envelope you not only define the method name and the parameter list, but even the order of the parameters matters.
One possible solution is declaring only one parameter in the SOAP envelope and pass via that parameter a serialized (xml or json or whatever you know) string, than analyze that string on the server...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900