I am using Objective C Proxy objects(which was created using wsdl2Objc tool) to access SOAP Based web services.
It is a .Net based Web service. It returns XML data.
The C# based Proxy Objects for accessing that web service is working properly.
@interface EmployeeDetails{
NSString name;
NSString *empID;
}
@end
@interface CommonRequest{
NSString *sessionID;
NSString *employeeDetails;
}
@end
In C# proxy object the type of the field is another custom object whereas in Objective C the type is NSString.
How to convert Custom object(of type EmployeeDetails) into its NSString equivalent(employeeDetails)?
You will need to parse the XML, and optionally create an object or
NSDictionaryrepresentation from it. Search the documentation forNSXMLorCFXMLAPIs.To use an
EmployeeDetailsinstance to represent a string in aCommonRequest, you will need to find out what the API expects (you can print the C#CommonRequestto find out, or better, refer to its implementation to see how it builds the string).