|
Hello everyone, ask if the parameter in the Web Service is an entity class object defined in other projects, for example, the entity model in the factory mode Model layer defines an Order class. I now create a new Web Service project, call this Model.dll, and define a WebMethod eg: public void InsertOrder (Model.Order order) {.....}, but in the project that calls this service, I When I pass in an object of Model.Order, I can't convert it. I need a reference to this Web service plus the entity class defined by this type. If I refer to this Web Service and name it WebServ, I will use the WebServ.Model.Order entity. That is, I must manually convert the entities of Model.Order into WebServ.Model.Order objects? May I ask if I did something wrong, the first time I used Web Service. The entity type has been set to Serializable |
|