473,320 Members | 1,952 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,320 software developers and data experts.

Calling a web service frin inside a extended stored procedure DLL


Hi there,

I am using VS.net c++.

I created a test dialog box application. I added an addressing we
reference. There is button on the dialog that executes the followin
code:

' m_lAddressID is the civic ID (text box)
' m_strAddress is where the address string will go (text box)
CAddresses* pAddressingSoap = new CAddresses;
if (pAddressingSoap)
{
BSTR bstrAddress;
lResult = pAddressingSoap->getAddressStringByID(m_lAddressID
&bstrAddress);
if (lResult == S_OK)
{
m_strAddress = bstrAddress;
}
else
{
char strString[256] = {0};
sprintf(strString, "%X",lResult);
m_strAddress = strString;
}
delete pAddressingSoap;
}
else
{
m_strAddress = "Unable to create Soap Address Object";
}

It all work good. When I enter an ID, and press the button, I get th
address string from the web service.

I created an extended stored procedure project and added the sam
addressing web refence.
I added tyhe code from above to an exprosed mtheod.
Compiled it and copied it to the sql server (not my computer)
When I run the stored procedure the string that is returned is th
error code from the getAddressStringByID function call.
I get 0x80004005 for the lResult. Which is a gereneral error of som
sort.

I cannot find out why this is. I tried everything.

The computer running Windows server 2003 with SQL Server 2000 wit
SP3a.

Does anyone know what is going on?

Thanks
Michae

--
mthomasPosted from http://www.pcreview.co.uk/ newsgroup acces

Nov 17 '05 #1
0 769

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

Similar topics

18
by: Jarrod Morrison | last post by:
Hi All I was wondering if there is a way to call a stored procedure from inside another stored procedure. So for example my first procedure will call a second stored procedure which when...
3
by: Matik | last post by:
Hi, I alredy tried to search this problem in last posts, but I couldn't find the answer. I try to access via Extended SP the method in a dll. I registered the dll as a ExSP, with a name of...
1
by: Sylesh Nair | last post by:
could anyone give me a possible solution for a Windows Service (in C#) listening to a table in a database for insertion or updation. thanks
4
by: Robert E. Flaherty | last post by:
I know that you can call SQL Server from a web service but from within a stored procedure can you call a web service?
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.