ios - How to make requests with HessianKit -
ios - How to make requests with HessianKit -
i working on ios app needs connect hessian service live stock prices. using hessiankit ios.
i told connect to: http://www.ourserviceurl.com:8080/tt/sub?hessian=true&tickers=ba|c
tickers pipe delimited list. had hide name of url well.
my protocol is:
@protocol cwhelloservice -(nsstring*)sub:(bool)hessian tickers:(nsstring *)tickers; @end i tried connect way:
nsurl * url = [nsurl urlwithstring:@"http://www.ourserviceurl.com:8080/tt/"]; id<cwhelloservice> proxy = (id<cwhelloservice>)[cwhessianconnection proxywithurl:url protocol:@protocol(cwhelloservice)]; nslog(@"hello: %@", [proxy sub:yes tickers:@"ba|c"]); i maintain getting 404 error when trying create connection.
i have never used hessian protocol before , sure missing simple, still can't figure out going wrong
i informed using hessian streaming protocol , isn't supported various hessian apis out there right now. of right seems problem unresolvable.
ios hessian
Comments
Post a Comment