Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Connection to IIS Service

 
   Soft32 Home -> PDA -> Pocket PC Developer Networking RSS
Next:  Can I use SSL for TcpConnection or Socket connect..  
Author Message
Kiron

External


Since: Dec 07, 2005
Posts: 2



(Msg. 1) Posted: Wed Dec 07, 2005 8:12 am
Post subject: Connection to IIS Service
Archived from groups: microsoft>public>pocketpc>developer>networking (more info?)

Hi All

How to develop a application in eVc 4.0 which connects to a webservice and
get the data returned by it.

There is a webservice name it 'getInfo' with parameter 'id' which returns
the information on the parameter.

how to access this service from a eVc pgm.

From my earlier posts i have understood that we can use

CHttpConnection to connect to the service and the returned data can be
parsed using MSXML.

But i don't know how to use these classes. I believe after connecting to the
server, we have to post the data (for calling the webservice).

Please help me in giving a idea how to do it. Some code snippets will be of
help.

Regards
Kiron
Back to top
Login to vote
Kiron

External


Since: Dec 07, 2005
Posts: 2



(Msg. 2) Posted: Wed Dec 07, 2005 10:54 am
Post subject: Re: Connection to IIS Service [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I am getting a error that "The server name or address could not be
resolved". How to rectify this error. Please Help

Regds
Kiron

/*------------------------------------------------------------------------------------------------------*/
BOOL CTestInetConDlg::OnInitDialog()
{
//Common usual code statements


// TODO: Add extra initialization here

CInternetSession *cInetSession = NULL;
CHttpConnection *cHttpConn = NULL;
CHttpFile *file = NULL;

/* GetTax is the webserivce i need to use, it returns a string */

const TCHAR szHeaders[] = _T("POST /HotelService/Hotel.asmx/GetTax
HTTP/1.1\r\nHost: 192.168.0.1\r\nContent-Type:
application/x-www-form-urlencoded\r\nContent-Length: 270");

CString strObject;

cInetSession = new CInternetSession();

cHttpConn =
cInetSession->GetHttpConnection(_T("http://192.168.0.1/"),0,INTERNET_INVALID_PORT_NUMBER,NULL,NULL);


file =
cHttpConn->OpenRequest(0,strObject,NULL,1,NULL,NULL,INTERNET_FLAG_NO_AUTO_REDIRECT);

file->AddRequestHeaders(szHeaders);
file->SendRequest();


return TRUE; // return TRUE unless you set the focus to a control
}
Back to top
Login to vote
Display posts from previous:   
Related Topics:
ODBC error on installing Service pack for eVC++. - Hi, I have been trying to install eVC++ 4.0 without success. The Service Pack (SP4) for eVC++ fails to install with a...

Pocket PC 2003, Nokia 6820, GPRS, Bluetooth, VPN over AT&T.. - Greetings all, I have the following system up and running with no problems: Laptop connecting to corporate VPN using ...

Connection without ActiveSync... - Hi, it's my first day in this newsgroup and I would like to know if there is a way to connect my Pocket PC to internet ...

connection manager - Hi, I am using the connection manager API's for my iPaq 2215 with PPC 2003 on it. Is there a way to update the phone nu...

about SSL connection - I use RootCert.exe to install a certificate on my pocketpc2002 phone edition,and I found there's a key HKLM\Comm\Securi...

Internet Connection - My pocket PC does not connect with internet. My PPC is connected with a desktop PC which is connected in LAN. Internet ...
       Soft32 Home -> PDA -> Pocket PC Developer Networking All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
  PDA


[ Contact us | Terms of Service/Privacy Policy ]