473,472 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

c++ atlsoap fails on MS terraserver->getareafrompt method

I added the microsoft terraserver wsdl(version 2) as a web reference to
my c++ application(vs.net 2k3). When I attempt to execute the
getAreaFromPT method, I get an 'unspecified error' HRRESULT. This
happens after it successfully sends the soap msg to the web service and
recieves a well-formed response. I traced the problem to the parsing
stage after receiving the response. Calling other methods from this
same web service and others *do* work successfully.

My instinct is to assume I've made a mistake since I would think that
microsoft would ensure compatibility between their web service and
their dev studio. Below are the details of the code and where it
fails.

CoInitialize(NULL);
TerraService::CTerraService *ts = new TerraService::CTerraService();
ts->SetProxy((LPCTSTR)"my.proxy.host.com",31060);
TerraService::LonLatPt *center = new TerraService::LonLatPt();
center->Lat = 33.8168;
center->Lon = -118.1605;
int theme = 4;
TerraService::Scale *scl = new TerraService::Scale();
*scl = TerraService::Scale500mm;
TerraService::AreaBoundingBox abb_result;
HRESULT hr1 =
ts->GetAreaFromPt(*center,theme,*scl,200,200,&abb_res ult); //returns
code for unspecified error

I traced the failing point to the following code in atlsoap.h but the
debugger will not allow me to 'step into' further:
m_spReader->parse(varStream); //returns ES_FAIL

I found the following related articles but neither of them posted a
fix. They mention modifying atlsoap.h :(:
http://groups-beta.google.com/group/...se(varStream);
http://groups-beta.google.com/group/...se(varStream);

Nov 17 '05 #1
1 1509
I will start with a good news - this works just fine in latest builds of
Beta 2. The bad news that this is a bug in ATL Soap parsing and,
unfortunately, I cannot think of a workaround for this.

Thanks,
Nikola

--
Nikola Dudar
Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Suggestions? Bugs? Feedback? Talk directly to dev teams using
http://lab.msdn.microsoft.com/productfeedback/
<ne****@gmail.com> wrote in message
news:11*********************@l41g2000cwc.googlegro ups.com...
I added the microsoft terraserver wsdl(version 2) as a web reference to
my c++ application(vs.net 2k3). When I attempt to execute the
getAreaFromPT method, I get an 'unspecified error' HRRESULT. This
happens after it successfully sends the soap msg to the web service and
recieves a well-formed response. I traced the problem to the parsing
stage after receiving the response. Calling other methods from this
same web service and others *do* work successfully.

My instinct is to assume I've made a mistake since I would think that
microsoft would ensure compatibility between their web service and
their dev studio. Below are the details of the code and where it
fails.

CoInitialize(NULL);
TerraService::CTerraService *ts = new TerraService::CTerraService();
ts->SetProxy((LPCTSTR)"my.proxy.host.com",31060);
TerraService::LonLatPt *center = new TerraService::LonLatPt();
center->Lat = 33.8168;
center->Lon = -118.1605;
int theme = 4;
TerraService::Scale *scl = new TerraService::Scale();
*scl = TerraService::Scale500mm;
TerraService::AreaBoundingBox abb_result;
HRESULT hr1 =
ts->GetAreaFromPt(*center,theme,*scl,200,200,&abb_res ult); //returns
code for unspecified error

I traced the failing point to the following code in atlsoap.h but the
debugger will not allow me to 'step into' further:
m_spReader->parse(varStream); //returns ES_FAIL

I found the following related articles but neither of them posted a
fix. They mention modifying atlsoap.h :(:
http://groups-beta.google.com/group/...se(varStream);
http://groups-beta.google.com/group/...se(varStream);

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on...
1
by: Guinness Mann | last post by:
Pardon me if this is not the optimum newsgroup for this post, but it's the only .NET newsgroup I read and I'm certain someone here can help me. I have a C# program that checks for an error...
0
by: Jay Allard | last post by:
Hello I posted this in the vb.net group on the 2/25/2004, but didn't get any response. Here's attempt 2. Does anyone know of a more appropriate place to post this? One new piece of...
4
by: daniel.w.gelder | last post by:
I wrote a template class that takes a function prototype and lets you store and call a C-level function, like this: inline string SampleFunction(int, bool) {..} functor<string (int, bool)>...
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
2
by: Yogi21 | last post by:
Hi I have a sorted array containing strings. I am iterating through the array and clearing the contents one by one using "array.BinarySearch" to find each element. So far so good. But the moment I...
7
by: SevDer | last post by:
Hi I have a class library that needs to download the HTML in a specific page of ours with provided querystring. When I open this URL with any browser, it loads fine. When I do WebRequest from Web...
6
by: Arnie | last post by:
We're using the ServiceController class provided by the .NET Framework, programming in C#. We are using the Start() method to start a service from another service. This works fine most of the...
22
by: jeremito | last post by:
I am writing a class that is intended to be subclassed. What is the proper way to indicate that a sub class must override a method? Thanks, Jeremy
2
by: titan.nyquist | last post by:
I need to initialize data to be stored in a static class (for all my code to see), but I'm lost on how to do so. If I use the class constructor, what if it fails? I am reading it information...
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.