473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Urgent help on IXMLHTTPRequest(Pocket PC win32) for SOAP Client

Hi,
I am working on a project related to windows pocket pc 5.0 (win32).

in that i am trying client-server communicationusing SOAP server.

but facing problem on IXMLHTTPRequest.

#################### CODE ##########################
//included files are,

#include "msxml2.h"
#import "msxml3.dll"
using namespace MSXML2;
#define CoInitialize(NULL) CoInitializeEx(NULL, COINIT_MULTITHREADED)

// code snippet as follows.
void ClientServerCommunicationUsingXmlHttpRequest()
{

::CoInitialize(NULL);
{

HRESULT hr;
// Url of SOAP server (Used axis toolkit).
bstr_t Url = "http://192.168.5.98:8080/axis/WinMobileWebService/WinMobileWebService.jws";
bstr_t method = "GET";
_variant_t Async = VARIANT_FALSE;
//body of send method that sends xml of soap envelope.
_variant_t varBody= L"<?xml version='1.0' encoding='UTF-8'?> <soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> <soap:Body> <getKeyDataFromClient xmlns='urn:WinMobileWebService'> <c-gensym3 xsi:type='xsd:string'>MY send MSG</c-gensym3> </getKeyDataFromClient> </soap:Body> </soap:Envelope>";


IXMLHTTPRequestPtr oIXMLHTTPRequest = NULL;
hr = oIXMLHTTPRequest.CreateInstance("Msxml2.XMLHTTP");
if(hr!=S_OK)
MessageBox(NULL,L"Create instance failed",L"CreateInstance",MB_OK);

hr = oIXMLHTTPRequest->open(method,Url,Async);
if(hr!=S_OK)
MessageBox(NULL,L"open method failed.",L"open",MB_OK);

hr = oIXMLHTTPRequest->setRequestHeader(L"Content_Type",L"text/xml");
if(hr!=S_OK)
MessageBox(NULL,L"setRequestHeader method failed.",L"setRequestHeader",MB_OK);

hr=oIXMLHTTPRequest->setRequestHeader(L"SOAPAction",L"'urn:WinMobileWe bService/getKeyDataFromClient'");
if(hr!=S_OK)
MessageBox(NULL,L"setRequestHeader method about soap failed.",L"SOAPAction",MB_OK);

hr=oIXMLHTTPRequest->send(varBody);
if(hr!=S_OK)
MessageBox(NULL,L"send method failed.",L"send",MB_OK);
}
::CoUninitialize();
}

################### END OF CODE ########################


###Related problem
1)send method gives error as "problem has occured with gwes.exe."

when i put a breakpoint on send method(i.e.debug it) call passes to msxml.tli file in that,

//code of msxml.tli file of send method as,

inline HRESULT IXMLHTTPRequest :: send(const _variant_t &varBody)
{
HRESULT _hr = raw_send(varBody);
if(FAILED(_hr)) _com_issue_errorex(_hr,this,_uuidof(this));
//from here control passes to disassembly after the line (03FB2130 blt 03FB21C8) it losses the control.
return _hr;
}


Plz i am stuck on this point, i want your help....plz reply this mail.......
Regards,
Bhushan&Jitu
Mar 12 '08 #1
2 2117
Stang02GT
1,208 Expert 1GB
Hello Bhush,

Welcome to the Scripts. Unfortunately i am unable to answer you questions, but i would like to point you in the direction of forums that will help you to receive a better/faster response to your question.

At the top of your screen you will see the blue navigation bar, under the forums section there is an XML forum. It appears ( i very well could be wrong) that your question is XML based. If it is i would post your question in there.

Please also use the code tags when posting code and don't forget to check out our posting guidelines


Here is the link to the XML forum.


Good luck and I hope you find your answers!
Mar 12 '08 #2
Hello Bhush,

Welcome to the Scripts. Unfortunately i am unable to answer you questions, but i would like to point you in the direction of forums that will help you to receive a better/faster response to your question.

At the top of your screen you will see the blue navigation bar, under the forums section there is an XML forum. It appears ( i very well could be wrong) that your question is XML based. If it is i would post your question in there.

Please also use the code tags when posting code and don't forget to check out our posting guidelines


Here is the link to the XML forum.


Good luck and I hope you find your answers!
HI Stang02GT,
Thanks for your reply, it is very usefully for me and my friends thoues are new for this concept like Forum...........
Mar 13 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: John | last post by:
Hi all, Perhaps I'm being a little impatient here but I needed to re-send with a metter of urgency... I'm trying to get a client callback to work and am able to get it to work when I comment...
0
by: Matt Wood | last post by:
Hi, I have written a Web Service for a customer which expects a SOAP message with Document/Literal encoding, and uses RoutingStyle=SoapServiceRoutingStyle.RequestElement to route the SOAP body...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
5
by: cj | last post by:
I've got a Soap web client written in VB. I'm wondering if it would be ok to run this same program multiple times on the same pc. Would they get confused with which of them requested what...
15
by: =?Utf-8?B?ZG91Zw==?= | last post by:
I hadn't had a class yet and I had some MS help on this to set up, but I wrote a .Net WS that creates a proxy class response using SOAP. Works fine. And in kind of a good way, the IDE has hidden...
5
by: =?Utf-8?B?SmltbWVy?= | last post by:
Hello, I've been trying to create a WCF SOAP Router Service that can forward not just the message body but also any security headers set by the originator of the message. The destination service...
0
by: bhushanbsc | last post by:
I am working on a project related to windows pocket pc 5.0 (win32). in that i am trying client-server communicationusing SOAP server ,but facing problem on IXMLHTTPRequest. ####################...
3
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
5
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... I've got a .Net client to a soap service that works for the most part, but there are a couple of things I'd like to improve: 1) the first request to the client wrapper always takes...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.