VB6 WEBBROWSER

I'm writing a program where I need to navigate to a web page and upload an xml file at the same time. The xml file is complete, and contains username and password along with other info required by the web page.
I am writing in VB6.
The company that handles the web page has a test page setup where I can paste my xml to a text box and then post to the web page, and that works great.
I just cannot get this to happen from within my code
jamesguy99Asked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
your call looks like it's basically correct, except that presumably the page requires some "headers"...
however, it's the page specs that you need to retrieve from them, which shall indicate what exactly you need to specify
http://support.microsoft.com/kb/172998
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
without seeing your VB6 code, it will be difficult to comment on what could go wrong.
0
 
jamesguy99Author Commented:
'WB is my webbrowser
'strXMLFile contains the xml statement itself
'the web address is strWebPageEstimate - 'http://iseisi.staging.activant.com/Service/GenLogin.aspx

'I have tried
 WB.Navigate strWebPageEstimate, , , strXMLFile

i have also tried -
WB.Navigate strWebPageEstimate
WB.Document.Write.strXMLFile

Can someone tell me if I'm even close?
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
jamesguy99Author Commented:
Gary - Your comments have been helpful, but I still am not there. I read the Microsoft article you noted above, but I'm still not getting a connection. Not certain what you mean by 'page specs', and who do I retrieve them from? This is a fairly large job for me, so I really need to work through this somehow. Thanks.
0
 
jamesguy99Author Commented:
Guy - one other thing - i have no problem giving you my xml code (which I know is correct and complete). If that could help somehow, just let me know. Thanks again.
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
the XML alone won't help, as I would have to "guess" what "header" are to be send.
0
 
jamesguy99Author Commented:
Guy, should the people who developed the web page be able to tell me what 'headers' I am needing?
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
Yes, absolutely
0
 
jamesguy99Author Commented:
Anyone who may be interested - this code runs -

    Dim strXMLFile As String
    Dim flags As Long
    Dim TargetFrame As String
    Dim PostData() As Byte
    Dim strData As String
    Dim Headers As String
    Call CreateXMLFile(strXMLFile)
    PostData = strXMLFile
    flags = 0
    TargetFrame = ""
    Headers = "Content-Type: application/x-www-form-urlencoded" & vbCrLf
    WebBrowser.Navigate strWebPageEstimate, flags, TargetFrame, PostData, Headers
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
so indeed it was some headers to put :)
glad you got the last bit for your application code to work
0
 
jamesguy99Author Commented:
Guy - thanks again for your insight.
It let me know where to direct my search.
As you might expect, I am now needing some sample code to download some html code from that same web site.
Once again I am using the ActiveX Webbrowser in VB6.
I have Googled some but have not found exactly what I am looking for.
Any ideas?
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you use the .Navigate (or .Navigate2) method to open the URL, and catch the document on the NavigateComplete2 event of the browser control
0
 
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.