java - Socket called on wrong port -
java - Socket called on wrong port -
i having web server running glass fish 4 on port 8080 in local. having standalone java socket server running in local on port 9010.
when seek access webservice objective c on glass fish server using nsurlconnection on port 8080, socket gets called though runs on different port. nsurl connection code provided below,
nsmutableurlrequest* request = [[nsmutableurlrequest alloc] initwithurl:[nsurl urlwithstring:”http://localhost:8080/testapp/customer/authenticate”]]; [request setvalue:@"application/json" forhttpheaderfield:@"content-type"]; [request setvalue:@"application/json" forhttpheaderfield:@"accept"]; [request sethttpmethod:@“post”]; [request sethttpbody:myjsonrequestdata]; [nsurlconnection connectionwithrequest:request delegate:self]; i have searched not find leads. please help
sorry coding bug in server code , other tied issues in client code. interpretation wrong. have solved now.
java objective-c sockets glassfish-4
Comments
Post a Comment