Tag: wcf

SVC webservice – objective-c

I referred this link & found it very useful but when I started trying every possible of it I failed in getting the desired output. NSString *soapMessage = [NSString stringWithFormat: @”<?xml version=\”1.0\” encoding=\”utf-8\”?>\n” “<SOAP:Envelope xmlns:s=\”http://schemas.xmlsoap.org/soap/envelope/\”>\n” “<SOAP:Body>\n” “<BindCategory xmlns=\”http://tempuri.org/\”>\n” “</SOAP:Body>\n” “</SOAP:Envelope>\n” ]; NSLog(@”soapMessage: \n%@”,soapMessage); NSURL *url = [NSURL URLWithString:@”http://assetwebservice.sudesi.in/Service/”]; NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url]; NSString *msgLength […]

Mac (or c++) connection to binary WCF

I’ve got a WCF service being hosted using TCP/IP (netTcpBinding): var baseWcfAddress = getWcfBaseUri(); host = new ServiceHost(wcfSingleton, baseWcfAddress); var throttlingBehavior = new System.ServiceModel.Description.ServiceThrottlingBehavior(); throttlingBehavior.MaxConcurrentCalls = Int32.MaxValue; throttlingBehavior.MaxConcurrentInstances = Int32.MaxValue; throttlingBehavior.MaxConcurrentSessions = Int32.MaxValue; host.Description.Behaviors.Add(throttlingBehavior); host.Open(); I’d like to write a Mac client in Objective C or C++. Are there any existing classes that can facilitate […]

Pass object as a parameter to wcf service in Objective C on iOS

I have a wcf service which accepts a parameter like this: [DataContract] public class Person { [DataMember] public int ID { get; set; } [DataMember] public string Name { get; set; } [DataMember] public string Family { get; set; } } [OperationContract] [WebInvoke(Method = “POST”, BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Json, UriTemplate = “”)] int […]

xml parsing error while using wcf framework for web services

it’s first time while iam working on wcf soap services for iOS application , em getting problem when trying to send xml to server using post method my iOS side code looks like that NSString *soapMessage = [NSString stringWithFormat:@”<SOAP-ENV:Envelope xmlns:SOAP-ENV=\”http://schemas.xmlsoap.org/soap/envelope/\”><SOAP-ENV:Body><SaveAllRecords33><xmlData></xmlData></SaveAllRecords33></SOAP-ENV:Body></SOAP-ENV:Envelope>”]; NSURL *url = [NSURL URLWithString:@”http://webservice.net2survey.com/servicejson.svc/SaveAllRecord33″]; NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url]; NSString *msgLength = [NSString stringWithFormat:@”%d”, […]

Consume WCF Web Service using Objective-C on iPhone

I am having a hard time consuming a very simple (Hello World) WCF web service in my iPhone app. From what I have read, you must manually create the request message then send it to the web service URL. I was able to accomplish this on a .asmx web service, but not with a WCF […]

Upload image from iPhone to server using WCF service using SOAP

hiii, i’m using wcf SOAP services for my app and i send the request like below. postStr = [NSString stringWithFormat:@”<?xml version=\”1.0\”?>\n” “<s:Envelope xmlns:s=\”http://schemas.xmlsoap.org/soap/envelope/\”>\n” “<s:Body>\n” “<InsUpdDelActivityInfo xmlns=\”http://tempuri.org/\”>\n” “<objEventsContent xmlns:d4p1=\”http://schemas.datacontract.org/2004/07/iCampuslite.Model.ActivityStream\” xmlns:i=\”http://www.w3.org/2001/XMLSchema-instance\”>\n” “<d4p1:ActCommentId i:nil=\”true\” />\n” “<d4p1:ActSubTypeCd i:nil=\”true\” />\n” “<d4p1:ActType>Status</d4p1:ActType>\n” “<d4p1:ActTypeCd>1</d4p1:ActTypeCd>\n” “<d4p1:ActivityAnswersList />\n” “<d4p1:ActivityComments />\n” “<d4p1:ActivityId i:nil=\”true\” />\n” “<d4p1:ActivityLike />\n” “<d4p1:ActivityName>%@</d4p1:ActivityName>\n” “<d4p1:ActivityStreamImagesBytes>%@</d4p1:ActivityStreamImagesBytes>\n” “<d4p1:AnswerDesc i:nil=\”true\” />\n” “<d4p1:AnswerId>0</d4p1:AnswerId>\n” “<d4p1:CommentDesc i:nil=\”true\” />\n” […]

Recommendations for .NET Web Service Format/Protocol for Android, iPhone, etc. integration

I am building a web service for my ASP.NET MVC 3 website. Ideally I would like all clients (my web pages, iphone application, android application, windows phone 7 application, etc.) to use the same service layer to load and save data. I am new to mobile development and was wondering if there is a preferred […]

When is it better not to use Phonegap?

I am planning to develop an mobile app (my first one) for multiple operation systems (including Android, IOS, WindowsPhone) – in the wild internet I found a framework called phonegap, as a possibility solution to minimize the development process. I understand the advantages phonegap has – but could not find real downsides… 1.) So the […]