Hey all,
I'm trying to wrap my head around getting this to work. I need to make some calls to an API and get the response. It does not need to have ssl active The credentials in the code are live test credentials and will provide a response. I'm not sure if I am putting the right stuff in the right place. After weeks of reading every post I can find on the forum about the http functions I think the code Steve has up will do the trick if I can modify it correctly.
The test service is located here for documentation purposes http://wsd.adminscreen.net/evolution...CostPriceBySKU
The service can be called directly from a browser http://wsd.adminscreen.net/evolution.asmx/ViewCostPriceBySKU?ServerID=1&TokenKey=42274449465b2c744c7461645649666c7c4865747a6b7a282f433d797d&Password=test1&SkuID=unv21200
Once I get the request down I'll start working on what to do with it. I plan on setting it in fields to save to a database table.
Any assistance is appreciated
I'm trying to wrap my head around getting this to work. I need to make some calls to an API and get the response. It does not need to have ssl active The credentials in the code are live test credentials and will provide a response. I'm not sure if I am putting the right stuff in the right place. After weeks of reading every post I can find on the forum about the http functions I think the code Steve has up will do the trick if I can modify it correctly.
The test service is located here for documentation purposes http://wsd.adminscreen.net/evolution...CostPriceBySKU
The service can be called directly from a browser http://wsd.adminscreen.net/evolution.asmx/ViewCostPriceBySKU?ServerID=1&TokenKey=42274449465b2c744c7461645649666c7c4865747a6b7a282f433d797d&Password=test1&SkuID=unv21200
Once I get the request down I'll start working on what to do with it. I plan on setting it in fields to save to a database table.
HTML Code:
<%a5 dim req as p dim req.body as c = "" dim req.header as c = "" dim req.host as c = "wsd.adminscreen.net" dim req.method as c = "POST" dim req.page as c = "/ViewCostPriceBySKU" dim req.ssl_on as l = .f. dim req.ssl_validatecert as l = .f. dim req.timeout as n = 10000 dim resp as p req.header = <<%a% text/xml; charset=utf-8 %a% req.body = <<%xml% <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ViewCostPriceBySKU xmlns="http://wsd.adminscreen.net"> <ServerID>1</ServerID> <TokenKey>42274449465b2c744c7461645649666c7c4865747a6b7a282f433d797d</TokenKey> <Password>test1</Password> <SkuID>unv21200</SkuID> </ViewCostPriceBySKU> </soap:Body> </soap:Envelope> %xml% resp = http_fetch(Req)
Comment