Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mailbankey

macrumors newbie
Original poster
Sep 1, 2009
2
0
Hello All,

I am calling a webservice method, but at the service the values make NULL. i am sending values as follows:

struct _ns1__loginVisitor *ns1__loginVisitor = malloc(sizeof(struct _ns1__loginVisitor));


NSString *name = @"Test";
ns1__loginVisitor->name = malloc(5);
strcpy(ns1__loginVisitor->name, [name UTF8String]);

NSString *pwd = @"12345";
ns1__loginVisitor->pwd = malloc(6);
strcpy(ns1__loginVisitor->pwd, [pwd UTF8String]);

NSString *moduleType = @"Contact Directory";
ns1__loginVisitor->moduleType = malloc(18);
strcpy(ns1__loginVisitor->moduleType, [moduleType UTF8String]);


ns1__loginVisitor->memorizeLogin = xsd__boolean__false_;

struct soap *soap = soap_new();


struct _ns1__loginVisitorResponse ns1__loginVisitorResponse;
struct _ns1__getCountriesResponse ns1__getCountriesResponse;


if(soap_call___ns2__loginVisitor(soap, NULL,NULL, ns1__loginVisitor, &ns1__loginVisitorResponse) == SOAP_OK)
{
NSInteger yu = 90;
}

BOOL loginVisitorResultResponse = ns1__loginVisitorResponse.loginVisitorResult;


but here the values are perfect but at the service side these values are converted into null. the server is windows machine and service is developed in .NET.

Please suggest me...what i have to do.

Thanks
Bankey
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.