473,406 Members | 2,816 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.

Problem calling Webservice with Basic Authentication

Det
Hi there
I am somewhat stuck with calling a WebService from out of a VB App.

My Goal:
- Get a WebService invoked under MS - Access 2002, not using the
MS-SOAP-Toolkit but the .net - Framework

My Restrictions:
- The WebService is pure Java, running under WebSphere5.1
- The Request requires Basic Authentication and needs to be SSL
encrypted
What I achived:
- The ServerSide is running OK
- A Java-Client using ApacheSOAP is running OK
- My WSDL - File is OK
- I got a monitor set up that intercepts incoming requests and
forwards them to the actual server, calls from my VBA Code are OK
(correct SOAP-Requests)
Where I'm stuck:
- The HTTP-Post request has no Authentication-Information.
- In a second step I need the ssl cert, but I have not bothered about
that yet.
My approach so far:
---------------- SNIP -----------------
Const WS_URL = "BLA.wsdl" ' WSDL File stored lokally

Dim client As SOAPClient

Dim nResult As String
Set client = CreateObject("MSSOAP.SOAPClient")

Call client.mssoapinit(WS_URL)

client.ConnectorProperty("AuthUser") = "foo"
client.ConnectorProperty("AuthPassword") = "bar"
client.ConnectorProperty("UseSSL") = False

nResult = client.getNewIds("99999")
Debug.Print nResult
---------------- SNAP -----------------
This will end up in an "Not-Authenticated" error, as the Request is
somewhat like:
---------------- SNIP -----------------
POST /ONBSystem/services/ONBPort HTTP/1.1
SOAPAction: "urn:#orderGetNewOffer_Ids(duns)"
Content-Type: text/xml
User-Agent: SOAP Sdk
Host: localhost
Content-Length: 392
Connection: Keep-Alive
Cache-Control: no-cache

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAPSDK1:getNewIds
xmlns:SOAPSDK1="http://someurl/orderinterface">
<duns>99999</duns>
</SOAPSDK1:getNewIds>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>---------------- SNAP -----------------
Which misses the "Authentication: Basic sdretwefasdfert=="
request-attribute.
Could anyone please push me into the right direction? I could not find
any samplecode, which lets me assume I'm doing all wrong and got the
wrong approach?
Nov 21 '05 #1
0 2755

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

Similar topics

0
by: Karl | last post by:
Hi everyone, We developped a WebService with Visual Studio .Net and we faced an authentication problem with a java client. My assumption is that this is because cookies passed from client are...
4
by: Grind Boy | last post by:
Hi, I'm writing this off the top of my head as I don't have the exact information to hand. We are attempting to set up a secure internet site using ASP.NET on IIS5. We are having some...
6
by: Jéjé | last post by:
Hi, I have a custom aspx page which access RS (Reporting Services) using the webservice interface. I'm using the delegation (defautcredentialcache) to send the user authentication to RS. RS...
0
by: Sachin | last post by:
Hi All, I have following scenario. 1) Server Name: Server1 Web Site: WebUI (An ASP.NET Application) Impersonation User: WebUIUser (Specified in Web.Config, under identity section)...
2
by: Russell Mangel | last post by:
Hi, How can I set permissions, so my webservice will run, without entering my name and password in the Web.Config file? I have created a WebService, and then added a Web reference to a Windows...
0
by: G.N.Rajesh | last post by:
Hi, I developed a windows application that contain a textbox.In that text box i am entering the webservice location(Ex: http://servername/Webservice/Service1.asmx?wsd)I am clicking a load...
2
by: news.demon.nl | last post by:
Hi, I hope someone can give me some advice on which form of security i can use best in this scenario: I have a free application that everbody on the internet can download. It calls a...
1
by: fallenidol | last post by:
hi i'm looking for some heads up info regarding calling and using a web service from within another web service. is this acceptable practice? if not why? what should i be thinking about here? ...
4
by: =?Utf-8?B?VGFrdW1p?= | last post by:
I have a ASP.NET web page that calls a web service on a server with IIS installed on it. When it calls the web service, it gives a HTTP status 401 error stating that it is unauthorized to call the...
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: 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
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
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
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
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.