<?xml version="1.0" encoding="UTF-8"?> <RegistrationRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Register.xsd" Version="1.0"> <CustomerInfo> <AccountNumber>2222222222222</AccountNumber> <Address> <Street>7055 Bombardier, #305</Street> <City>Anjou</City> <StateOrProvinceCode>PQ</StateOrProvinceCode> <PostalCode>H1J2X1</PostalCode> <CountryCode>CA</CountryCode> </Address> <PhoneNumber>5143547474</PhoneNumber> <ContactName>Michel Fournier</ContactName> </CustomerInfo> </RegistrationRequest>Account number has been modified to hide the info. To send this XML string, you can issue something like this:
LOCAL lcUrl,loXML,lcXML,lcFile lcUrl='...' lcFile='d:\FedexRegister.xml' lcXML=FILETOSTR(lcFile) loXML=CREATEOBJECT('MSXML2.ServerXMLHTTP') loXML.Open('Post',lcUrl,.F.) loXML.SetRequestHeader('Referer','Fournier Transformation') loXML.SetRequestHeader('Host','...') loXML.SetRequestHeader('Accept','image.gif, image.jpeg, image/pjpeg, text/plain, text/html, */*') loXML.SetRequestHeader('Content-Type','image/gif') loXML.SetRequestHeader('Content-Length',ALLTRIM(STR(LEN(lcXML)))) loXML.Send(lcXML) lcXMLResponse=loXML.ResponseBodywhere d:\FedexRegister.xml is the above XML string. See in here that I can't paste the lcURL field value you need as this has to be given to you from Fedex. The same goes with the Host property.