For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > March 2004 > Posting an XML file using posturl function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Posting an XML file using posturl function
Michael

2004-03-27, 12:22 am

I have and issue trying to use the PostURL function I need to know
what is the correct syntax to post an XML file.

I currently have in my code:

Inet iinet
uo_inetresult ii_results

integer i,z
long ls_lenght
string urlname,geturlname
blob urldata
string ls_header
urldata=blob("")
ls_lenght=len(urldata)
ls_header = "POST /AUTHORIZE
HTTP/1.0~nMIME-Version:1.0~nContent-type:application/PTI21~nContent-length:1123~nContent-transfer-encoding:text~nRequest-number:1~nDocument-type:
Request" + "~n~n"
urlname= "http://'epayhipvar.paymentech.net/ authorize'"

GetContextService ( "Internet", iinet )

ii_results=create uo_inetresult

//i=iinet.geturl(geturlname,ii_results)

messagebox('',string(ii_blob))

i=iinet. PostURL(urlname,urldata,ls_header,443,ii
_results)

As I understood the urldata is the Blob specifying arguments to the
URL specified by urlname But my XML page dosen't have arguments. So I
passed the entrie XML data through this parameter and it still didn't
work. I'm getting error code -6. Can somebody help?

Thanks
Michael Mcleane
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com