OK tech web services from iOS. Access Denied.

OK tech web services from iOS. Access Denied.

by amol gupta -
Number of replies: 1

I am using OKTechWebServices of Moodle over SOAP from iOS Client. I have used wsdl2objc from http://code.google.com/p/wsdl2objc/to obtain my client library for iOS.

After login request i am getting following in response:

"Incorrect access detected, this server may be accessed only through "http://20.0.0.6:81/moodle.195" address, sorry.<br />Please notify server administrator."

 

Following is the snapshot of code which access OKTechWebService over SOAP using iOS client.

MoodleWSBinding* moodleWSClientBinding = [MoodleWS MoodleWSBinding];

moodleWSClientBinding.logXMLInOut = YES;

moodleWSClientBinding.defaultTimeout = 60;

MoodleWSBindingResponse* moodleWSClientResponse  = [moodleWSClientBinding loginUsingUsername:@"admin" password:@"password"];

 

Please help.

Average of ratings: -
In reply to amol gupta

Re: OK tech web services from iOS. Access Denied.

by Patrick Pollet -

Your error message "Incorrect access detected, this server may be accessed only through.." is not a Moodle localized string nor a message sent by OK tech, so I suspect it belongs to the generated client library for iOs . Something like server address changed between stub generation and your utilisation.

Cheers.