473,406 Members | 2,336 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,406 software developers and data experts.

Authentication Error with HTTP EndPoints

Hello!

I'm unable to use a webservice exposed on a Sql Server 2005 by using
the MSSOAP.SoapClient in Excel 2003 with VBA. The aim I'm focuced on,
is to write a function for a Excel Sheet wich resolves some
identifiers to strings by using a SQL Server 2005. I thougt to use web
services but end up with errors, as you can read furthre down.

If my approach to connect Excel 2003 to a Sql Server 2005 is totaly
wrong, I would be very happy if some one could advise me.

The exception in VBA is about '... access denied...'. The SQL Server
logs 'HTTP authentication failed. [CLIENT: x.x.x.x]

The Endpoint I want to use is as follows:
CREATE ENDPOINT SQLEP_gmd
STATE = STARTED
AS HTTP
(
PATH = '/gmd',
AUTHENTICATION = (INTEGRATED),
PORTS = (CLEAR),
SITE = '2003dellp285002'
)
FOR SOAP
(
WEBMETHOD 'getNextReferenceSubstanceIdentifier'
(NAME='metabolomics.dbo.getNextReferenceSubstanceM pimpId'),
BATCHES = DISABLED,
WSDL = DEFAULT,
DATABASE = 'metabolomics',
NAMESPACE = 'http://2003dellp285002'
)
The stored procedure is very simple, has no input parameters and
returns a string to simplify matters.

Any commnt is apreciated very much!

With kind regards

Feb 21 '07 #1
2 3413
Hi,

If I remember correctly, you will need to specify the user and password as
part of the URL you used to initialize the MSSoap.SoapClient object. If that
isn't possible, I recommend creating the data connection using the normal SQL
database method.

Please also make sure that you have granted access to the Endpoint and the
Stored Procedure for the user you wish to connect with.

Jimmy

"jahu" wrote:
Hello!

I'm unable to use a webservice exposed on a Sql Server 2005 by using
the MSSOAP.SoapClient in Excel 2003 with VBA. The aim I'm focuced on,
is to write a function for a Excel Sheet wich resolves some
identifiers to strings by using a SQL Server 2005. I thougt to use web
services but end up with errors, as you can read furthre down.

If my approach to connect Excel 2003 to a Sql Server 2005 is totaly
wrong, I would be very happy if some one could advise me.

The exception in VBA is about '... access denied...'. The SQL Server
logs 'HTTP authentication failed. [CLIENT: x.x.x.x]

The Endpoint I want to use is as follows:
CREATE ENDPOINT SQLEP_gmd
STATE = STARTED
AS HTTP
(
PATH = '/gmd',
AUTHENTICATION = (INTEGRATED),
PORTS = (CLEAR),
SITE = '2003dellp285002'
)
FOR SOAP
(
WEBMETHOD 'getNextReferenceSubstanceIdentifier'
(NAME='metabolomics.dbo.getNextReferenceSubstanceM pimpId'),
BATCHES = DISABLED,
WSDL = DEFAULT,
DATABASE = 'metabolomics',
NAMESPACE = 'http://2003dellp285002'
)
The stored procedure is very simple, has no input parameters and
returns a string to simplify matters.

Any commnt is apreciated very much!

With kind regards

Feb 23 '07 #2
Dig up some more details. You can specify the user credentials on the
SoapClient object. The following is a sample:
SoapClient.connectorProperty("AuthUser") = "userName"
SoapClient.connectorProperty("AuthPassword") = "PASSWORD"
// Set Auth scheme
// digest 0x8
// negotiate 0x10
// ntlm 0x2
// basic 0x1
SoapClient.connectorProperty("WinHTTPAuthScheme") = 0x2

Jimmy

"Jimmy Wu [MSFT]" wrote:
Hi,

If I remember correctly, you will need to specify the user and password as
part of the URL you used to initialize the MSSoap.SoapClient object. If that
isn't possible, I recommend creating the data connection using the normal SQL
database method.

Please also make sure that you have granted access to the Endpoint and the
Stored Procedure for the user you wish to connect with.

Jimmy

"jahu" wrote:
Hello!

I'm unable to use a webservice exposed on a Sql Server 2005 by using
the MSSOAP.SoapClient in Excel 2003 with VBA. The aim I'm focuced on,
is to write a function for a Excel Sheet wich resolves some
identifiers to strings by using a SQL Server 2005. I thougt to use web
services but end up with errors, as you can read furthre down.

If my approach to connect Excel 2003 to a Sql Server 2005 is totaly
wrong, I would be very happy if some one could advise me.

The exception in VBA is about '... access denied...'. The SQL Server
logs 'HTTP authentication failed. [CLIENT: x.x.x.x]

The Endpoint I want to use is as follows:
CREATE ENDPOINT SQLEP_gmd
STATE = STARTED
AS HTTP
(
PATH = '/gmd',
AUTHENTICATION = (INTEGRATED),
PORTS = (CLEAR),
SITE = '2003dellp285002'
)
FOR SOAP
(
WEBMETHOD 'getNextReferenceSubstanceIdentifier'
(NAME='metabolomics.dbo.getNextReferenceSubstanceM pimpId'),
BATCHES = DISABLED,
WSDL = DEFAULT,
DATABASE = 'metabolomics',
NAMESPACE = 'http://2003dellp285002'
)
The stored procedure is very simple, has no input parameters and
returns a string to simplify matters.

Any commnt is apreciated very much!

With kind regards
Feb 23 '07 #3

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

Similar topics

3
by: MuZZy | last post by:
HI, I'm trying to implement username authentication for a WCF service (hosted in ServiceHost, not IIS) and once service starts it gets to Faulted state if i specify: ...
3
by: mzarlenga | last post by:
I have a client / server written in C#/VS2005 that uses WCF. Each component exposes a secure (https:) endpoint with WCF. httpcfg was used to secure the ports with certificates. (Both system use the...
0
by: =?Utf-8?B?UmF2aQ==?= | last post by:
Hi, I have WCF service and integrated with STS (WS-Federation). The Service exposes 5 endpoints Win, UNT and Federated Windows, Federated UNT and Mex endpoint. My STS Service exposes 3 endpoints...
0
by: =?Utf-8?B?UmF2aQ==?= | last post by:
Hi, I have WCF service and integrated with STS (WS-Federation). The Service exposes 5 endpoints Win, UNT and Federated Windows, Federated UNT and Mex endpoint. My STS Service exposes 3 endpoints...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.