Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Dec 14, 2019 7:49 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Sample code for SOAP that uses sessionIds
PostPosted: Thu Aug 23, 2012 9:46 am 
Offline

Joined: Fri Apr 30, 2010 11:02 am
Posts: 25
Hello everyone, I'm trying to work on a simple SOAP client and am running into problems. I'm able to easily get this working in PHP with the soap classes and in Objective-C by building the XML requests manually; this is the route I am trying in RealStudio.

What's currently happening is that I can successfully login and parse the sessionId from the response, but my subsequent calls all fail with 'invalid session id' as mentioned I am manually building the requests and they match what IS working in Objective-C so I'm guessing there is some other socket setting or something else I am missing.

Does anyone have any idea? Perhaps sample code for a working SOAP client that uses sessionIds

Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: Sample code for SOAP that uses sessionIds
PostPosted: Tue Aug 28, 2012 9:04 am 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
Are you doing this is a Web App? How are you communicating to it?

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Sample code for SOAP that uses sessionIds
PostPosted: Tue Aug 28, 2012 11:29 am 
Offline

Joined: Fri Apr 30, 2010 11:02 am
Posts: 25
Bob Keeney wrote:
Are you doing this is a Web App? How are you communicating to it?


Hi Bob, this is a Desktop App that would be for people on some of our teams to test one of our Web Services. Right now I am using a subclassed httpsecuresocket and the flow looks like this

button.action()
instantiate socket
create login message
set post content
post

socket.pageReceived()
if login phase parse session out session ID
set next message with session ID (also tried [probably incorrectly setting a cookie])
self.post
else
currently end


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group