Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i am creating a web service and my target is to pass 3 parameter in request of web service and i want 7 parameter in response .so i want to know how will i do this..?i am new at web service so please help and elaborate in detail .
Posted
Comments
ArunRajendra 17-Jul-14 4:02am    
Is it web service or WCF?
Naveen Singh 17-Jul-14 4:14am    
WCF
Naveen Singh 17-Jul-14 4:14am    
It is really urgent please help

Use datacontract this will allow you to send object. So object can contain any amount of information.
 
Share this answer
 
Comments
Naveen Singh 17-Jul-14 5:02am    
dear Arun Sir thanks for time and response but i have to pass only 4 parameter in my SOAP wcf service request and want 7 parameter in soap response ..?can you please help me
ArunRajendra 17-Jul-14 5:56am    
That what I told put all your parameters with in a class and pass the object of the that class. This way you get / pass any number of parameters.
Naveen Singh 17-Jul-14 6:04am    
can you give any illustration so that it will be easy for me to implement ..!
ArunRajendra 17-Jul-14 6:18am    
Google it for data contract.
after quite research i finally find the best way:-

just create class for your method and declare all the value in it.Just call the class and treat it as the object and it will work as per requirement.
 
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