Web service wsdl generates a separate class for the same object type returned

I have a web service with three methods each returns the same class object Person

The three web methods are

ValidateData returns Person
CalculateData returns Person
ApplyData returns Person

But the wsdl generates the following classes
ValidateDataPerson
'CalculateDataPerson
ApplyDataPerson

How can I ensure that the asmx web service the class Person is recognized across all methods
LVL 1
countrymeisterAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Richard LeeConnect With a Mentor Software EnthusiastCommented:
When consuming the web service ensure that the Person class is available in the Project the web service is being consumed. In this scenario the proxy class generated to access the web service should reuse the Person class present within the application.

DaTribe
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
This is generally the problem with code to wsdl approach, is Person Class the same imported in all those other classes?

If you had done WSDL first approach then this might have never a raised.
0
 
countrymeisterAuthor Commented:
thanks
0
All Courses

From novice to tech pro — start learning today.