Console Application : I have one object which has all ticket details, I am trying to pass this object through webservice.
Basically, I want assign "VVV" (list of ticket details values) to "APTR" object then, i will pass "APTR" to the method.
Console Application :
public string SendAllticketDetailsToService(AutoProvisionWebAPIClient.AutoProvisionTicketsResponse vvv)
{
// bool result = false;
string xmlStringResult;
xmlStringResult = "";
try
{
AutoProvisionController.SRMUserRegServiceReference.AutoProvisionTicketsResponse APTR = new AutoProvisionController.SRMUserRegServiceReference.AutoProvisionTicketsResponse();
I want assign vvv class object values to APTR, Can you guide me ?
xmlStringResult = ss.GetAllTickets(APTR);
Console.WriteLine(xmlStringResult);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return xmlStringResult;
}
//end
Both are different namespaces but the same class and attributes.. when i tried to compile, i am getting the error like
Error 55 Cannot implicitly convert type 'AutoProvisionWebAPIClient.AutoProvisionTicketsResponse' to 'AutoProvisionController.SRMUserRegServiceReference.AutoProvisionTicketsResponse' \ARMWebAPIClient\AutoProvisionController\SRMUserRegServiceProxy.cs 44 24 AutoProvisionController