Read-only archive of the All About Symbian forum (2001–2013) · About this archive

WAP Gateway Problem ?

2 replies · 5,488 views · Started 07 July 2003

:evil:

Hi all,

I have written Symbian application thath makes a connection to one WAP Gateway and gets wml page.

This is most important part of source code :
////////////////////////////////////////////////////////////////////////////////////
LIT8(RemoteHost,"203.170.229.34" ; //wap gateway
_LIT(URI, "http://www.yourserver.com/yourcontent.wml";
_LIT8(Headers, "";
_LIT8(Body, "";
_LIT8(ClientHeaders, "";

iWapServ = new RWAPServ();
iWspConn = new RWSPCOConn();
iWspTrans = new RWSPCOTrans();
iCap = CCapCodec::NewL();

iCap->SetServerSDUSize(150000);
iCap->SetClientSDUSize(150000);

iWapServ->Connect();

RWAPConn::TPort RemotePort = 9201;
RWAPConn::TPort LocalPort = 0;
TBearer Bearer = EIP;
TBool SecureConn = EFalse;

iErr = iWspConn->Open(*iWapServ, RemoteHost, RemotePort, LocalPort, Bearer, SecureConn);

iErr = iWspConn->Connect(ClientHeaders, iCap);

RWAPConn::TMethod Method = RWAPConn::EGet;

iErr = iWspConn->CreateTransaction(Method, URI, Headers, Body, *iWspTrans);

HBufC8* iBuffer;
iBuffer = HBufC8::NewL(200);

TPtr8 p = iBuffer->Des();
iErr = iWspTrans->GetData(p, RWSPCOTrans::EResultBody);
////////////////////////////////////////////////////////////////////////////////////

The problem is thath it is works with Nokia Active Server ( Nokia WAP Gateway ) and Wind ( Italian Provider ) WAP GW, but not with TIM / Omnitel (others italian provider) WAP GW.

Which would be able be the differences ?

Tanks

Luigi

Wow, that is way over my head, sorry! But I am sure young Jimmy will know the answer...! 😉

will this solve the problem of there not being a listed option to change or create a Gateway IP on my phone which is the Nokia 6260?