Post ProjectBuyersProgrammersFAQForumContactRSS
      MEMBER LOGIN
      SERVICES & FEATURES
  • Post a Project
  • Signup
  • Job Listings
  • Featured Projects
  • Certified Members
  • Top Programmers
  • Affiliate Program
  • RSS Feeds
  •    THE 20 LATEST PROJECTS
    Convert Script To Myspace F T
    Moderator Page
    Asp/.net Online Registration
    Banners (rotation Header Type)
    Animated 3d Character
    Research And Data Entry
    Flash Catalog Site
    Club Ladies Night Flyer -urgnt
    One Aricle A Week
    Register On Article Websites
    Modify Php Template Website
    Rebrand Software
    For Risalat1 Only
    Web Page Design
    Mailer Program
    High Paying Marketing Project
    Affiliate Marketing Pros
    Hiring Sales Professionals
    Reliable Data Entry
    Two Videos Needed
     
       POPULAR NEW PROJECTS
    Swoopo Clones
    Article Writing
    Content Submission
    Landing Pages
    Conversions
    Twitter
    iPhone Applications
     
    Project: XML Request Response Converted
    ID: 1231359942
    Bookmark and Share Post Similar ProjectManage Your Project

    PROJECT DETAILS
    Status: Closed (Cancelled)
    Budget: $25
    Created: 1/7/2009 at 15:25 EST
    Cancelled: 1/31/2009 at 0:40 EST
    Project Creator:
    stebut06
    Rating: 10.00/10 (16 reviews)
    Description: Hi,

    I need a simple php script to post xml and process response. The script following Visual Basic script needs converting to work with PHP:

    'create the xml



    Dim oXmlHTTP as Object

    Dim oXMLDoc as Object

    Dim oHeader as Object

    Dim oElement as Object

    Dim oTextNode as Object



    set oXmlDoc = CreateObject("MSXML.DOMDocument")

    set oHeader = oXmlDoc.createElement("BlackHorse")

    oXmlDoc.appendChild(oHeader)



    set oElement = oXmlDoc.createElement("CAP")

    oHeader.appendchild(oElement)

    set oTextNode = oXmlDoc.createTextNode(sCAP)

    oElement.appendChild oTextNode

    set oElement = oXmlDoc.createElement("Term")

    oHeader.appendchild(oElement)

    set oTextNode = oXmlDoc.createTextNode(sPer)

    oElement.appendChild oTextNode

    set oElement = oXmlDoc.createElement("Mileage")

    oHeader.appendchild(oElement)

    set oTextNode = oXmlDoc.createTextNode(sMile)

    oElement.appendChild oTextNode



    'send XML



    Dim sUrl as string

    Dim sXML as string



    sURL = "https://www.domain.com"

    Set oXmlHTTP = CreateObject("Microsoft.XMLHTTP")

    oXmlHTTP.Open "POST", sURL, False

    oXmlHTTP.Send(oXMLDoc.xml)



    'Process repsonse



    Set oXMLDoc = oXmlHTTP.responseXML

    sXML = oXMLDoc.XML



    If left(sXML,3) = "<GF" then

    Set oTextNode = oXMLDoc.getElementsByTagName("GFV")

    sXML = oTextNode.Item(0).nodeTypedValue

    sXML = "Blackhorse GFV for " & sCAP & " after " & left(sPer, 1) & " years." & chr(10) & _

    "Calculated on " & sMile*1000 & " mpa is - £ " & sXML

    msgbox sXML

    Gosub WriteNote

    Else

    Set oTextNode = oXMLDoc.getElementsByTagName("Error")

    sXML = oTextNode.Item(0).nodeTypedValue

    msgbox "Cannot find vehicle - Ensure a current model is selected"

    End If



    Set oTextNode = nothing

    Set oElement = nothing

    Set oHeader = nothing

    Set oXMLDoc = nothing

    Set oXmlHTTP = nothing



    Exit Sub


    It can only be tested from my IP Address due to firewall restrictions. This is a relatively simple project so sensible bids please, thanks.

    Kind regards,

    Steven
    Additional Info (Added 1/7/2009 at 16:16 EST)...

    This could also be done using Javascript/Ajax

    Job Type:


    View Message Board for this Project Messages Posted: 5


    PROJECT BIDS
    Programmers Bid Delivery Time Time of Bid Rating  
    encomputers $22 1 day 1/21/2009 at 10:32 EST
    4.60/10
    (3 reviews)
     
    please use pmb for further details or visit portfolio.
    australiandeveloper $25 1 day 1/8/2009 at 15:23 EST
    10.00/10
    (1 review)
     
    Hi this looks like a very simple project. I can do it in PHP or in Javascript/AJAX as you want. Should only take me a couple of hours.
    nd3h $25 1 day 1/19/2009 at 2:32 EST
    10.00/10
    (1 review)
     
    ok, lets start
    quanmt $30 1 day 1/7/2009 at 16:02 EST
    9.68/10
    (21 reviews)
     
    Hi Sir We are a web develop team from Vietnam. We have 4 years in develop web site by php, mysql, ajax, flash. Let us show our ability. Thank.
    octalsystems $50 4 days 1/7/2009 at 15:42 EST
    9.85/10
    (124 reviews)
     
    i can do it right now Escrow to start Thank You

    Related Projects:
    Get Response COM Clone Create Info Request From Graphics Request XML & osCommerce integration Convert CV (resume) to XML
    More...


    Copyright © 2001 - 2009
    ScriptLance is a trade-mark of
    R3N3 International Inc
    Bookmark and Share
    Site MapRSSPrivacy PolicyTermsReport ViolationsAffiliatesFAQForumContact Support
    Web Design by: DevFly.com