September 08 2010 08:14:44
Navigation
· Home
· Online Store
· Course Outlines (PDF Files)
· Sample Videos
· Contact Info
· Web Links
· Articles (Sample Code)

Other Videos
· WordPress (CMS)
· Joomla (CMS)
· Sharepoint

Other
· FAQ
· Search
Contribute to This Site
· Submit Link
· Get Benefitted Sites
No Competition
One of our so-called competitors offers under 6 hours of video training for a whopping $219 (choke, gasp, spew - you could hire a private tutor for that price). Did I mention that they ship their training on VHS tapes (remember those?). Check out our 'Course Outlines' link above. We offer a 2-days of training (15 hours) for $54 (2 CDs at $29 each). You watch our videos from a CD/ROM on your computer. We also include real-world lab/assignments in each course.
Articles: VBScript - XML HTTP Post
VBScript - XML HTTP Post
'=============================================================
' NAME: XMLPost.vbs 
' AUTHOR: Neal Walters 
' DATE  : 3/26/2005
' http://VBScript-Training.com
'=============================================================

  Dim xmlHttp 
  Dim doc 
  Dim strQuery 
  Dim strURL 
  Dim strPostBody 
  Dim xmlFileName 
  
  'allow drag/drop of filename onto this VB/Script 
  if WScript.Arguments.Count > 0 then 
     xmlFileName = WScript.Arguments(0)
  else 
     xmlFileName = "D:\Vish\Altura\XML\CC71628_0309052202_4items.xml"
     xmlFileName = "D:\Vish\Altura\XML\CC71628_0309052202_4items_TestCreditCard.xml"
  end if 

  set xmlHttp = CreateObject("Microsoft.xmlHttp") 
  set doc = CreateObject("MSXML2.DOMDocument") 

   ' Validate the document using the MSXML parser.
  doc.load (xmlFileName)
  
  If doc.parseError.errorCode Then
' Do something with the error.
      Wscript.Echo "Parse Error: " & vbcrlf & _ 
                   " Reason = " & doc.parseError.reason & vbcrlf & _ 
                   " Line = " & doc.parseError.line & vbcrlf & _ 
                   " linePos = " & doc.parseError.linePos & vbcrlf & _ 
                   " srcText = " & doc.parseError.srcText & vbcrlf & _ 
                   " ErrorCode = " & doc.parseError.ErrorCode & vbcrlf 

      WScript.quit 
      
  'else 
  '    WScript.Echo doc.xml 
  End If
  
   ' Post the template.
'on error resume next 

  isAsynCall = False 

  sendData ="data=" & doc.xml 

  xmlHttp.Open "POST", "http://corpdev/Odimo.Altura.Webservices.Order/orderReceive.asmx/submit", isAsynCall 
  'xmlHttp.setRequestHeader "Content-type", "application/xml"
  xmlHttp.setRequestHeader "Content-type","application/x-www-form-urlencoded"
  xmlHttp.setRequestHeader "Content-Length",len(sendData) 

  xmlHttp.send sendData

   ' Retrieve the results.
   'WScript.Echo doc.xml & vbcrlf 
   WScript.Echo " ResponseText=" & xmlHttp.responseText & _ 
                " Status=" & xmlHttp.status & _
				" text=" & xmlHttp.statusText 

 'Wscript.echo err.number & "desc=" & err.description 
  WScript.Echo "The end" 



Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Order Now - View Products


Default Shipping:
Phone: 214-403-6006
Our Sites
Software Training
XML-Online-Training.com
Biztalk-Training.com
SharePoint-Training.com
DotNet-AddOns-Training.com
CMSTrainingVideos.com

Language
LanguageLovers.com
Render time: 0.01 seconds 432,187 unique visits