Jump to content

send and receive


khadem1386
 Share

Recommended Posts

Hiformat XML is very simple as you knowBut it dficult is for me tow thing. 1. sending it2. receiving itI want send aaaa.XML to this addreeshttps://gatewaybeta.fedex.com:443/GatewayDCand this Address reply me.My protcol is HTTP and I use ASP in server side of my site.if you have some samplefor sending or receiving or wait for receiving a XML file in ASPit is a big help for me.thank for your time.

Link to comment
Share on other sites

Read about web serives. It's a set of XML languages used for communications across servers, so that server A can send one special XML file called "SOAP request" to server B, and server B can return a similar XML called "SOAP response" for server A to further use. A special file written in a language called WSDL can describe to server A what messages does server B understand and what will return on each of them.

Link to comment
Share on other sites

HiI want use xmlhttp=createObject("Microsoft.XMLHTTP")orURL = “https://SSLserver.fedex.com:8000/GatewayDC”set oXMLHTTP = Server.CreateObject(“MSXML2.ServerXMLHTTP”)in ASPFOR transfom (SEND RECeive) XML file we make a E-ShopIn a part of it we must calculate and validate shipping Cost with a post company and this company support XML format for send or recieve DATA.is true using words(SEND or RECEIVE) for this case?this is a sample of this company but they don't make a complet sample

URL = “https://SSLserver.fedex.com:8000/GatewayDC” set oXMLHTTP = Server.CreateObject(“[b]MSXML2[/b].ServerXMLHTTP”) oXMLHTTP.Open “POST”,URL,”false” oXMLHTTP.setRequestHeader “Referer”,”YourCompanyName” oXMLHTTP.setRequestHeader “Host”, “SSLserver.fedex.com:8000” oXMLHTTP.setRequestHeader “Accept”,”image/gif, image/jpeg, image/pjpeg, text/plain, text/html, */*” oXMLHTTP.setRequestHeader “Content-Type”,”image/gif” oXMLHTTP.setRequestHeader “Content-Length”, cStr(len(TS)) oXMLHTTP.send TS ResultBytes = oXMLHTTP.responseBody ‘Convert the ByteArray data to a String for index = LBound( ResultBytes) To UBound( ResultBytes ) + 1 ResultString = ResultString & Chr(AscB(MidB( ResultBytes, index, 1 ))) Next

I don't know how I add file name aaa.XML to this program for sending (POST) it.and what is method for receiving? (GET)if you Show to me some Sample ASP for export or import XML filesit is a big help for me.I konw many company Match with other with XML.and XML has very simple format.but it is a file and must send it or recive it . am i true?thanks

Link to comment
Share on other sites

Well, I'm not good at ASP, so I'd have to ask... how do you send any other file with ASP? It's the same with XML.For receiving, if you use the HTTP POST method as you seem to, then the server will be able to read the file as if it was a file submitted by a HTML form with <input type="file"/>. How exactly it's doing it... I don't know ASP to tell you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...