Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9)


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 10 - Last Post: Apr 20, 2016 6:45 AM Last Post By: Omar Edgardo Ze...
Jeremy Praay

Posts: 9
Registered: 1/11/01
SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 1, 2015 1:05 PM
I created a simple (the sample) SOAP webservice (running under Windows). I implemented the "EchoEmployee" function for this "Dummy" webservice.

I created a multi-device app, with a button. I click the button, and it should echo back the Employee data. Indeed, it woks flawlessly with Windows, and with Android. With iOS (XCode 7), I'm getting an Access Violation accessing address FFFFFFC4 every time. The webservice itself processes the request okay, but iOS apparently does not know how to handle the data being returned.

procedure TForm8.Button1Click(Sender: TObject);
var
Emp: TMyEmployee;
NewEmp: TMyEmployee;
begin
Emp := TMyEmployee.Create;

Emp.LastName := 'Praay';
Emp.FirstName := 'Jeremy';
Emp.Salary := 50000;

NewEmp := GetIDummy.echoMyEmployee(Emp);
ShowMessage(NewEmp.FirstName + ' ' + NewEmp.LastName + ': ' + Format('%m', [NewEmp.Salary]));

NewEmp.Free;
Emp.Free;
end;

Edited by: Jeremy Praay on Oct 1, 2015 1:28 PM
Brian Hamilton ...

Posts: 556
Registered: 10/14/04
Re: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 1, 2015 4:00 PM   in response to: Jeremy Praay in response to: Jeremy Praay
David Mansell

Posts: 1
Registered: 11/26/15
Re: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 23, 2015 12:42 AM   in response to: Jeremy Praay in response to: Jeremy Praay
Hi Jeremy,
Did you ever get this working? I get the exact same issue, and I have the ios9 fix in place.
Simple soap calls returning double or integer work fine - but not complex objects.

Regards,
Dave

Jeremy Praay wrote:
I created a simple (the sample) SOAP webservice (running under Windows). I implemented the "EchoEmployee" function for this "Dummy" webservice.

I created a multi-device app, with a button. I click the button, and it should echo back the Employee data. Indeed, it woks flawlessly with Windows, and with Android. With iOS (XCode 7), I'm getting an Access Violation accessing address FFFFFFC4 every time. The webservice itself processes the request okay, but iOS apparently does not know how to handle the data being returned.

procedure TForm8.Button1Click(Sender: TObject);
var
Emp: TMyEmployee;
NewEmp: TMyEmployee;
begin
Emp := TMyEmployee.Create;

Emp.LastName := 'Praay';
Emp.FirstName := 'Jeremy';
Emp.Salary := 50000;

NewEmp := GetIDummy.echoMyEmployee(Emp);
ShowMessage(NewEmp.FirstName + ' ' + NewEmp.LastName + ': ' + Format('%m', [NewEmp.Salary]));

NewEmp.Free;
Emp.Free;
end;

Edited by: Jeremy Praay on Oct 1, 2015 1:28 PM
Jeremy Praay

Posts: 9
Registered: 1/11/01
Re: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 24, 2015 7:17 AM   in response to: David Mansell in response to: David Mansell
David Mansell wrote:
Hi Jeremy,
Did you ever get this working? I get the exact same issue, and I have the ios9 fix in place.
Simple soap calls returning double or integer work fine - but not complex objects.

I don't have it working yet, but I was told it would be in the next update, which is apparently available now (with the support plan). I'm trying to figure out where/how to download it.
Quest Software

Posts: 2
Registered: 12/11/03
Re: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 24, 2015 1:34 PM   in response to: Jeremy Praay in response to: Jeremy Praay
Jeremy Praay wrote:
David Mansell wrote:
Hi Jeremy,
Did you ever get this working? I get the exact same issue, and I have the ios9 fix in place.
Simple soap calls returning double or integer work fine - but not complex objects.

I don't have it working yet, but I was told it would be in the next update, which is apparently available now (with the support plan). I'm trying to figure out where/how to download it.

Installed the update, and it's not part of it. Apparently, it will be in the "next release" which, presumably, is Delphi 11, which I would guess will be out some time in spring 2016.

We're sunk. We can't go forward, and we can't go back. Half of our users can no longer use the product that was sold. I had fun with Firemonkey, but I guess it's time to learn the "proper" way to write mobile apps. No other choice available at this point.

Goodbye Firemonkey.
Vania-Alexandre...

Posts: 3
Registered: 1/2/10
Re: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 20, 2016 2:55 AM   in response to: Jeremy Praay in response to: Jeremy Praay
Hi,

We have exactly the same case. It seems that the problem still persist in Delphi 10.1 Berlin.

Did you have found a solution ?

Thanks
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 20, 2016 3:26 AM   in response to: Vania-Alexandre... in response to: Vania-Alexandre...
Vania-Alexandre Legrand wrote:

We have exactly the same case. It seems that the problem still persist in Delphi 10.1 Berlin.

Did you have found a solution ?

Is someone able to provide a callstack of where the problem occurs? I'd be prepared to spend a little time looking at
it if that were the case.

--
Dave Nottage [TeamB]
Delphi Worlds blog: http://www.delphiworlds.com/blog
Vania-Alexandre...

Posts: 3
Registered: 1/2/10
Re: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 20, 2016 4:52 AM   in response to: Dave Nottage in response to: Dave Nottage
Hi Dave,

Thanks for helping us.

WebServices are in .NET 3.5.
Delphi 10.1 / XCode 7.3 / iOS 9.3.1 / OS X El Capitan 10.11.4

If it matter, we are using Authentication Header.

We don't have the problem with Win32 or Android ...

Here is the callstack :

System._DbgExcNotify(int, void*, System.SmallString<(unsigned char)255>, void, void*)(1,0x000000015e89fed0,0x00000001000306f8,0x000000016fde53a0,0x000000015e89fed0)
System.NotifyReRaise(System.TObject*, void*)(0x000000015e89fed0,0x0000000100027e10)
System._RaiseAtExcept(System.TObject*, void*)(0x000000015e89fed0,0x0000000100027e10)
:00000001000522A8 System::Internal::Excutils::SignalConverter(unsigned long, unsigned long, unsigned long)
System._UStrAsg(System.UnicodeString&, System.UnicodeString)('',0x0000000100000002)
System._CopyArray(void*, void*, void*, NativeUInt)(0x000000015e89fc50,0x000000016fde58a0,0x0000000100cfdc50,1)
System.CopyArray(void*, void*, void*, NativeInt)(0x000000015e89fc50,0x000000016fde58a0,0x0000000100cfdc50,1)
:00000001000DADB8 System::Rtti::TValueDataImpl::TValueDataImpl(void*, int, System::Typinfo::TTypeInfo*)
:00000001000BC164 System::Rtti::TValue::Make(void*, System::Typinfo::TTypeInfo*, System::Rtti::TValue&)
:00000001000C27C8 System::Rtti::TMethodImplementation::TParamLoc::GetArg(System::Rtti::TMethodImplementation::TInterceptFrame*, System::Rtti::TValue&)
:0000000100107618 System::Rtti::TMethodImplementation::TInvokeInfo::LoadArguments(System::Rtti::TMethodImplementation::TInterceptFrame*)
:000000010010811C System::Rtti::TMethodImplementation::Intercept(System::Rtti::TMethodImplementation::TInterceptFrame*)
:0000000100B11374 rtti_raw_intercept
Ufrmmain.TFrmMain.btn_pointageClick(System.TObject*)(0x000000025d8593f0,0x000000015d850e00)
Fmx.Controls.TControl.Click()(0x000000025d8713f0)
Fmx.Stdctrls.TCustomButton.Click()(0x000000025d8713f0)
Fmx.Controls.TControl.MouseClick(System.Uitypes.TMouseButton, System.Set<System.Classes.System_Classes__1, (System.Classes.System_Classes__1)0, (System.Classes.System_Classes__1)10>, float, float)(0x000000025d8713f0,-2062680064,136,41.5,37)
Fmx.Forms.TCommonCustomForm.MouseUp(System.Uitypes.TMouseButton, System.Set<System.Classes.System_Classes__1, (System.Classes.System_Classes__1)0, (System.Classes.System_Classes__1)10>, float, float, bool)(0x000000025d8593f0,-2087845888,136,381.5,517,true)
Fmx.Platform.Ios.TFMXViewBase.DoLMouseUp(float, float, bool)(0x000000025d7b6e20,381.5,517,true)
Fmx.Platform.Ios.TFMXViewBase.touchesEnded(System.DelphiInterface<Iosapi.Foundation.NSSet>, System.DelphiInterface<Iosapi.Uikit.UIEvent>)(??,0x0000000160153960,0x0000000160143cd0)
:0000000100B112A0 DispatchToDelphi
:0000000187A93F6C -[UIWindow _sendTouchesForEvent:]
:0000000187A8CB08 -[UIWindow sendEvent:]
:0000000187A5CF4C -[UIApplication sendEvent:]
:0000000187A5B528 _UIApplicationHandleEventQueue
:00000001828D1124 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
:00000001828D0BB8 __CFRunLoopDoSources0
:00000001828CE8B8 __CFRunLoopRun
:00000001827F8D10 CFRunLoopRunSpecific
:00000001840E0088 GSEventRunModal
:0000000187AC5F70 UIApplicationMain
Fmx.Platform.Ios.TPlatformCocoaTouch.Run()(0x000000015d648120)
__stub_in176s__ZN3Fmx8Platform3Ios19TPlatformCocoaTouch3RunEv
Fmx.Forms.TApplication.Run()(0x000000025d596490)
main(1,0x000000016fde7be0,0x000000016fde7bf0,0x000000016fde7c68)
:00000001823968B8 start

Edited by: Vania-Alexandre Legrand on Apr 20, 2016 4:55 AM
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9) [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 20, 2016 6:17 AM   in response to: Vania-Alexandre... in response to: Vania-Alexandre...
Vania-Alexandre Legrand wrote:

Here is the callstack :

That looks like the problem is happening before the request is even being sent, not when the response is being
received. Are you using the same code as the original poster?

--
Dave Nottage [TeamB]
Delphi Worlds blog: http://www.delphiworlds.com/blog
Vania-Alexandre...

Posts: 3
Registered: 1/2/10
Re: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9) [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 20, 2016 6:39 AM   in response to: Dave Nottage in response to: Dave Nottage
Here is the code used :

procedure TFrmMain.btn_pointageClick(Sender: TObject);
var
   serv : ServiceSoap;  // Created via WSDL
   iRes : Integer;
begin
   serv := GetServiceSoap;
   iRes := Serv.AddUserTimeLog(1000, 1, 'IN', 19, 4, 2016, 15, 33, 'Somewhere'); //Fail on this call
 
   if iRes > 0 then
      ShowMessage('OK')
   else
       ShowMessage('Fail !');
end;


This code works on Windows, Android and on iOS simulator but not on an iOS device.
Omar Edgardo Ze...

Posts: 80
Registered: 8/7/07
Re: SOAP webservice calls failing (Delphi 10 Seattle, XCode 7, iOS 9) [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 20, 2016 6:45 AM   in response to: Vania-Alexandre... in response to: Vania-Alexandre...
El 20/4/16 a las 7:39 a.m., Vania-Alexandre Legrand escribió:
Here is the code used :

procedure TFrmMain.btn_pointageClick(Sender: TObject);
var
    serv : ServiceSoap;  // Created via WSDL
    iRes : Integer;
begin
    serv := GetServiceSoap;
    iRes := Serv.AddUserTimeLog(1000, 1, 'IN', 19, 4, 2016, 15, 33, 'Somewhere'); //Fail on this call
 
    if iRes > 0 then
       ShowMessage('OK')
    else
        ShowMessage('Fail !');
end;


This code works on Windows, Android and on iOS simulator but not on an iOS device.
Hi,

I have been having issues with webserivces when calling them from x64
for years, Have you tried using the windows version compiled for x64?
maybe is the same issue I'm having and not really related to iOS device.
Maybe you can try it on a old iOS device that uses x32.

Omar Zelaya
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02