Are you supposed to include the HTTP Status Code with your response?
Eg. 200 OK
bill
On Dec 30, 2008, at 9:29 PM, Fogelson, Steve wrote:
I’m back. I have reduced my code to the following. John’s code,
Ben’s suggestion and Witango docs. I get this response: “Server did
not recognize the value of HTTP Header SOAPAction: :SOAPAction.”
Any ideas?
Steve
<@assign request$urllocation "http://apiv2.gunbroker.com/AuctionService.asmx
" encoding="none">
<@assign request$SOAPAction "GunBrokerAPI_V2/Login">
<@assign request$SOAPPayload '
<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>
<Login xmlns="GunBrokerAPI_V2">
<UserName>@@request$UserName</UserName>
<Password>@@request$Password</Password>
<DevKey>@@request$DevKey</DevKey>
<AppKey>@@request$AppKey</AppKey>
</Login>
</soap:Body>
</soap:Envelope>
'>
<@assign request$SOAPResponse "
<@url
location='@@request$urllocation'
useragent='Witango <@version> <@platform><@crlf>Content-type: text/
xml<@crlf>SOAPAction: "@@request:SOAPAction"'
postargs='<?xml version=<@sq>1.0<@sq> encoding=<@sq>utf-8<@sq>?
><@crlf><@crlf><@var request$SOAPPayload encoding=none>'
>">
<pre>
<@var request$SOAPResponse encoding="html">
</pre>
************************************************************************************
I am getting the following response:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema
"><soap:Body><soap:Fault><faultcode>soap:Client</
faultcode><faultstring>Server did not recognize the value of HTTP
Header SOAPAction: :SOAPAction.</faultstring><detail /></
soap:Fault></soap:Body></soap:Envelope>
*****************************************************
GunBroker.com provides the following example
POST /AuctionService.asmx HTTP/1.1
Host: apiv2.gunbroker.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "GunBrokerAPI_V2/Login"
<?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>
<Login xmlns="GunBrokerAPI_V2">
<UserName>string</UserName>
<Password>string</Password>
<DevKey>string</DevKey>
<AppKey>string</AppKey>
</Login>
</soap:Body>
</soap:Envelope>
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf