Web Services Issue
-
I have a web service (Called ABWebService) that I have created that contacts someone else's webservice (ZWebService). My main project has a reference to ABWebService and also has a reference to ZWebService, which it needs to contact directly. The problem I have is if I create a WebMethod in ABWebService that gets passed an object from ZWebService in the web method it is expecting and object of type ZWebService. But in the Main Project if I call the web method in ABWebService the object type for what I am passing is ABWebService.object, even though the type of object I want to pass to it is ZWebService.object. It then says I can't do this because they are different types. Any suggestions?
-
I have a web service (Called ABWebService) that I have created that contacts someone else's webservice (ZWebService). My main project has a reference to ABWebService and also has a reference to ZWebService, which it needs to contact directly. The problem I have is if I create a WebMethod in ABWebService that gets passed an object from ZWebService in the web method it is expecting and object of type ZWebService. But in the Main Project if I call the web method in ABWebService the object type for what I am passing is ABWebService.object, even though the type of object I want to pass to it is ZWebService.object. It then says I can't do this because they are different types. Any suggestions?