Click here to Skip to main content
16,006,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Russell'27-Sep-07 2:14
Russell'27-Sep-07 2:14 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Nishad S27-Sep-07 3:06
Nishad S27-Sep-07 3:06 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Russell'27-Sep-07 3:38
Russell'27-Sep-07 3:38 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Sreedhar DV27-Sep-07 23:02
Sreedhar DV27-Sep-07 23:02 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Russell'5-Oct-07 6:40
Russell'5-Oct-07 6:40 
AnswerRe: Urgent - How to identify given image is too dark or light Pin
KarstenK26-Sep-07 23:53
mveKarstenK26-Sep-07 23:53 
QuestionProblem with calling web service using HTTPSendRequest and InternetReadFile on EVC 3.0. Pin
HetalAgrawal26-Sep-07 20:37
HetalAgrawal26-Sep-07 20:37 
AnswerRe: Problem with calling web service using HTTPSendRequest and InternetReadFile on EVC 3.0. Pin
HetalAgrawal30-Sep-07 20:03
HetalAgrawal30-Sep-07 20:03 
I got such incomplete information after calling this web service 2 to 3 times. Initially 2 times i got blank reply.

Now When I used HTTPQueryInfo it showed following message

H T T P / 1 . 1 4 0 0 B a d R e q u e s t
S e r v e r : M i c r o s o f t - I I S / 5 . 0
D a t e : F r i , 2 8 S e p 2 0 0 7 0 8 : 3 5 : 5 1 G M T
X - P o w e r e d - B y : A S P . N E T
X - A s p N e t - V e r s i o n : 2 . 0 . 5 0 7 2 7
C a c h e - C o n t r o l : p r i v a t e
C o n t e n t - L e n g t h : 0

My web service contains just one method “HelloWorld” which does not take any input parameters and returns the “HelloWorld” string to the calling application.

My code of calling web service is following.

LPTSTR AcceptTypes[2] = {TEXT("text/xml"), NULL};
DWORD dwFlags = INTERNET_FLAG_NO_CACHE_WRITE |INTERNET_FLAG_KEEP_CONNECTION;

HINTERNET hNet = InternetOpen(L"EvcWebService", INTERNET_OPEN_TYPE_PRECONFIG,
NULL, NULL, 0 );

if (hNet)
{
HINTERNET hSession = InternetConnect(hNet, _T("10.37.54.93"), INTERNET_DEFAULT_HTTP_PORT, _T(""), _T(""), INTERNET_SERVICE_HTTP, 0, 0);

if (hSession)
{
HINTERNET hRequest = HttpOpenRequest(hSession, _T("POST"), _T("/TestService/Service.asmx?wsdl"), TEXT("HTTP/1.1"),NULL, (LPCTSTR*)AcceptTypes, dwFlags, 0);

if (hRequest)
{
TCHAR szSoapAction[256];
_tcscpy( szSoapAction, _T("Content-Type: text/xml;charset=utf-8\n") );
_tcscat( szSoapAction, _T("SOAPAction: \"") );
_tcscat( szSoapAction, _T("http://tempuri.org/HelloWorld") );
_tcscat( szSoapAction , _T("\"\0\r\n\r\n") );

TCHAR szSoap[512];
_tcscpy(pszSoap, _T("") );
_tcscat(pszSoap, _T("<soap:envelope xmlns:soap="\"http://schemas.xmlsoap.org/soap/envelope/\"" \="" xmlns:xsi="\"http://www.w3.org/2001/XMLSchema-instance\"" xmlns:xsd="\"http://www.w3.org/2001/XMLSchema\"">") );

_tcscat(pszSoap, _T("<soap:header>") );
_tcscat(pszSoap, _T("") );
_tcscat(pszSoap, _T("<soap:body>") );

_tcscat(pszSoap, _T("<helloworld \
="" xmlns="\"http://tempuri.org/\"">") ); //
_tcscat(pszSoap, _T("") );

_tcscat(pszSoap, _T("") );
_tcscat(pszSoap, _T("") );

BOOL bSent = HttpSendRequest(hRequest, szSoapAction, _tcslen(szSoapAction), szSoap, _tcslen(szSoap) );

if(bSent)
{
called HTTPQueryInfo.....
}


This HTTPQueryInfo returns bad request. But this code works fine on Win32 and give Bad Request on WinCE.
Please let me know how should i build soap packet for EVC so that it will call web service on Pocket PC?
QuestionRepainting of Internet Explorer Pin
Q2A26-Sep-07 20:24
Q2A26-Sep-07 20:24 
Questionhow to track no event has taken on an application and session has expired Pin
Dhiraj kumar Saini26-Sep-07 20:15
Dhiraj kumar Saini26-Sep-07 20:15 
QuestionListView Pin
nitin326-Sep-07 19:48
nitin326-Sep-07 19:48 
AnswerRe: ListView Pin
Naveen26-Sep-07 20:01
Naveen26-Sep-07 20:01 
AnswerRe: ListView Pin
Nelek26-Sep-07 20:08
protectorNelek26-Sep-07 20:08 
QuestionURGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
rishimohan26-Sep-07 19:45
rishimohan26-Sep-07 19:45 
AnswerRe: URGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
Nelek26-Sep-07 20:10
protectorNelek26-Sep-07 20:10 
GeneralRe: URGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
rishimohan26-Sep-07 21:16
rishimohan26-Sep-07 21:16 
GeneralRe: URGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
Nelek26-Sep-07 22:57
protectorNelek26-Sep-07 22:57 
GeneralRe: URGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
rishimohan27-Sep-07 19:42
rishimohan27-Sep-07 19:42 
AnswerRe: URGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
toxcct26-Sep-07 21:44
toxcct26-Sep-07 21:44 
QuestionSend Unsigned Char* using Winsock.h Pin
wira1guys26-Sep-07 16:41
wira1guys26-Sep-07 16:41 
QuestionRe: Send Unsigned Char* using Winsock.h Pin
David Crow26-Sep-07 16:51
David Crow26-Sep-07 16:51 
AnswerRe: Send Unsigned Char* using Winsock.h Pin
wira1guys26-Sep-07 17:04
wira1guys26-Sep-07 17:04 
GeneralRe: Send Unsigned Char* using Winsock.h Pin
Cedric Moonen26-Sep-07 20:05
Cedric Moonen26-Sep-07 20:05 
GeneralRe: Send Unsigned Char* using Winsock.h Pin
David Crow27-Sep-07 2:33
David Crow27-Sep-07 2:33 
GeneralRe: Send Unsigned Char* using Winsock.h Pin
Mark Salsbery27-Sep-07 5:54
Mark Salsbery27-Sep-07 5:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.