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

Using WebRequest to Replace MSXML3.DLL COM Object

Hi

We've upgraded to VB.NET from VB6, but are now having some difficulty
in understanding how to communicate data to the DPB website (the dental
practice board). Could anyone help in translating the following
function so that we can use .NET components rather than COM (I
understand we should be using WebRequest):

Public Function SendClaims(ByVal vsXML as String, ByVal vsUserName As
String, ByVal vsPassword as String) as String

Dim objXMLHTTP As MSXML2.ServerXMLHTTP

Set objXMLHTTP = New ServerXMLHTTP

ObjXMLHTTP.open "POST", "https://ebusiness.dpb.nhs.uk/claims.asp",
False, vsUserName, vsPassword

ObjXMLHTTP.send sXML

SendClaims = objXMLHTTP.responseXML.xml

End Function

Your assistance would be very much appreciated as I'm completely out of
my depth on this one.

Thanks

Jun 7 '06 #1
3 2445

leeo wrote:
Hi

We've upgraded to VB.NET from VB6, but are now having some difficulty
in understanding how to communicate data to the DPB website (the dental
practice board). Could anyone help in translating the following
function so that we can use .NET components rather than COM (I
understand we should be using WebRequest):

Public Function SendClaims(ByVal vsXML as String, ByVal vsUserName As
String, ByVal vsPassword as String) as String

Dim objXMLHTTP As MSXML2.ServerXMLHTTP

Set objXMLHTTP = New ServerXMLHTTP

ObjXMLHTTP.open "POST", "https://ebusiness.dpb.nhs.uk/claims.asp",
False, vsUserName, vsPassword

ObjXMLHTTP.send sXML

SendClaims = objXMLHTTP.responseXML.xml

End Function

Your assistance would be very much appreciated as I'm completely out of
my depth on this one.

Thanks


Have a read of the following:

http://msdn2.microsoft.com/en-us/sys...ebrequest.aspx
and
http://msdn2.microsoft.com/en-us/sys...ebrequest.aspx

Jun 7 '06 #2
See these..

http://www.netomatix.com/HttpPostData.aspx
http://www.netomatix.com/Development/XmlWebRequest.aspx
"leeo" <sp**@leeottaway.plus.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Hi

We've upgraded to VB.NET from VB6, but are now having some difficulty
in understanding how to communicate data to the DPB website (the dental
practice board). Could anyone help in translating the following
function so that we can use .NET components rather than COM (I
understand we should be using WebRequest):

Public Function SendClaims(ByVal vsXML as String, ByVal vsUserName As
String, ByVal vsPassword as String) as String

Dim objXMLHTTP As MSXML2.ServerXMLHTTP

Set objXMLHTTP = New ServerXMLHTTP

ObjXMLHTTP.open "POST", "https://ebusiness.dpb.nhs.uk/claims.asp",
False, vsUserName, vsPassword

ObjXMLHTTP.send sXML

SendClaims = objXMLHTTP.responseXML.xml

End Function

Your assistance would be very much appreciated as I'm completely out of
my depth on this one.

Thanks

Jun 7 '06 #3
Thus wrote leeo,
Hi

We've upgraded to VB.NET from VB6, but are now having some difficulty
in understanding how to communicate data to the DPB website (the
dental practice board). Could anyone help in translating the
following function so that we can use .NET components rather than COM
(I understand we should be using WebRequest):

Public Function SendClaims(ByVal vsXML as String, ByVal vsUserName As
String, ByVal vsPassword as String) as String

Dim objXMLHTTP As MSXML2.ServerXMLHTTP

Set objXMLHTTP = New ServerXMLHTTP

ObjXMLHTTP.open "POST", "https://ebusiness.dpb.nhs.uk/claims.asp",
False, vsUserName, vsPassword

ObjXMLHTTP.send sXML

SendClaims = objXMLHTTP.responseXML.xml

End Function

Your assistance would be very much appreciated as I'm completely out
of my depth on this one.


http://tinyurl.com/olwyg should get you going :-)

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Jun 7 '06 #4

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

Similar topics

1
by: Vasu | last post by:
Hi, I have a requirement to download a file from the web site using a client tool. Iam writing a C# program to download using WebRequest, HttpRequest, WebResponse and so on. The problem...
16
by: thomas peter | last post by:
I am building a precache engine... one that request over 100 pages on an remote server to cache them remotely... can i use the HttpWebRequest and WebResponse classes for this? or must i use the...
3
by: Paul | last post by:
Hello, First I want to refer to the problem "WebRequest : execute a button" of a few days ago. The way I solved it, I loose my session, and as a consequence my session variables. I don't want...
12
by: ThyRock | last post by:
I am working on a WebRequest accessing the US Postal Service WebTools test API. This service uses a DLL file (ShippingAPITest.dll) with a query string which includes XML. The web service accepts...
7
by: TomislaW | last post by:
I need to include some pictures from other web application (written in Java), Source of pictures are: <http://www.xy.com/bla/id/imageNumber>. I don't know how many pictures there are So I need to...
7
by: Mark Waser | last post by:
Hi all, I'm trying to post multipart/form-data to a web page but seem to have run into a wall. I'm familiar with RFC 1867 and have done this before (with AOLServer and Tcl) but just can't seem...
3
by: Loane Sharp | last post by:
Hi there I use the FileStream object to download a zip file over the internet to my local disk. The file downloads successfully, but when I attempt to unzip it, I'm told that the file is in use...
4
by: Hexman | last post by:
Code below ---- I've asked a similar question on this forum earlier. This is a slightly different situation. Previous Question ---- I'm trying to save some specific web pages to disk as...
1
by: WeCi2i | last post by:
Okay, I have a problem that has been stumping me for weeks. I have tried many different solutions and this is pretty much my last resort. I have seen a lot of good answers give here so I figured I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...

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.