Article View: borland.public.cppbuilder.webservices.soap
Article #121Invalid sessionId with c++builder!!!
From: pier
Date: Fri, 04 Mar 2005 22:21
Date: Fri, 04 Mar 2005 22:21
32 lines
2274 bytes
2274 bytes
Hello, i'm trying to access the sforce services with Borland C++ Builder
6.0. I have downloaded the most newest enterprise.wsdl. With WSDL Importer
(BCB6.0 tool) i have generated the interfaces to access the sforce. This is
an example that i have tested:
_di_Soap srv = GetSoap(false,"");
LoginResult *lr = srv->login("username", "password");
delete srv;
srv = GetSoap(false, lr->serverUrl);
GetServerTimestampResult *gstr = srv->getServerTimestamp();
When getServerTimestamp() is called, i receive Invalid Session ID message.
I have read the sforce api, i saw that in java and C#, i have to set
sessionid with login sessionid. But i have no method to set this property in
my soap interface generated. I checked the implementation and nothing was
implemented in the soap interface to set the header session id.
I have downloaded apache axis to try generate java stub and compare with my
code. I have followed the sforce api manual, but, in java, wasn't generated
methods to set header session id.
I have generated the stubs with gsoap too, and the code have not reference
with sessionid or setheader in soap interface. I am a dumb?
How can i set the session id with cpp builder?
Ps: Sorry about my poor english.
Pier
Technical Details
Message-ID:
<4228df66@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!noris.net!news.n-ix.net!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11096a,83353d4974f8b1fd,start X-Google-Attributes: gid11096a,public X-Google-Language: ENGLISH,ASCII-7-bit From: "pier" <slackmanbr@hotmail.com> Newsgroups: borland.public.cppbuilder.webservices.soap Subject: Invalid sessionId with c++builder!!! Date: Fri, 4 Mar 2005 19:21:21 -0300 Lines: 34 Organization: Particular X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 NNTP-Posting-Host: 200.140.56.38 Message-ID: <4228df66@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1109974886 200.140.56.38 (4 Mar 2005 14:21:26 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!noris.net!news.n-ix.net!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail