[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
http_url_post - Error 405
Hi Scott,
I am using http_url_post API, I am getting an error 405. Do not know
what is causing this. Can U please let me know what am I missing.
I executed the same service from SOAP UI, got the successful response.
Service EndPoint in SOAP UI ->
[1]http://sscvpeteweb.ryder.com/RSCWcfServices/AgreementService.svc
SOAP Msg :
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://www.Ryder.com/SOA/ServiceContracts/2013/05/22">
<soapenv:Header/>
<soapenv:Body>
<ns:GetAgreementDetails>
<!--Optional:-->
<ns:LocationCd>00840</ns:LocationCd>
<!--Optional:-->
<ns:AgreementNum>00580532</ns:AgreementNum>
</ns:GetAgreementDetails>
</soapenv:Body>
</soapenv:Envelope>
RESPONSE :
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetAgreementDetailsResponse
xmlns="http://www.Ryder.com/SOA/ServiceContracts/2013/05/22">
<GetAgreementDetailsResult
xmlns:a="http://www.Ryder.com/SOA/DataContracts/CannonicalForms/2012/10
/29" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:AgreementNumber>580532</a:AgreementNumber>
<a:AgreementPeriod>05D</a:AgreementPeriod>
....
</GetAgreementDetailsResponse>
</s:Body>
</s:Envelope>
Below is my call :
@ServerName = 'http://sscvpeteweb.ryder.com/RSCWcfServices';
rc = http_url_post(%trim(@ServerName)
: postData + 2
: postDataSize
: @IFSTempfile
: @HTTPPostTimeout
: HTTP_USERAGENT
: 'text/xml'
: 'http://sscvpeteweb.ryder.com/RSCWcfServices/+
AgreementService.svc');
Error Log:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
<title>405 - HTTP verb used to access this page is not
allowed.</title>
<style
type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica,
sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px
15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0
0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px
2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0
2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10p
x;position:relative;}
-->
</style>
</style>
</head>
<body>
<div id="header"><h1>Server
Error</h1></div>
<div
id="content">
<div
class="content-container"><fieldset>
<h2>405 - HTTP verb used to access this page is not
allowed.</h2>
<h3>The page you are looking for cannot be displayed because an
invalid method (HTTP verb) was used to attempt access.</h3>
</fieldset></div>
</div>
</body>
</html>
Regards
Natarajan Palani
References
1. http://sscvpeteweb.ryder.com/RSCWcfServices/AgreementService.svc
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------