Try adding a second <@CRLF> to this line
encoding=<@dq>utf-8<@dq>?><@crlf>

there needs to be 2 crlfs between header and content


On Dec 29, 2008, at 6:04 PM, Fogelson, Steve wrote:

Hi,

I’m working through with my first attempt at SOAP Web Services to access GunBroker.com and I am using an example that John McGowan provided back in 01/18/2007. I am using with the following:

<@assign request$urllocation "http://apiv2.gunbroker.com/AuctionService.asmx " encoding="none">
<@assign request$SOAPAction "GunBrokerAPI_V2/GetItem">
<@assign request$DevKey "xxxxxxxxxxxxxxxxxxxxxx">
<@assign request$AppKey "xxxxxxxxxxxxxxxxxx">
<@assign request$UserName "xxxxxxxxxx">
<@assign request$Password "xxxxxxx">
<@assign request$ItemID "114906627">

<@assign request$SOAPPayload "<@urlencode str='
<soap:Envelope xmlns:xsi=<@dq>http://www.w3.org/2001/XMLSchema-instance <@dq> xmlns:xsd=<@dq>http://www.w3.org/2001/XMLSchema<@dq> xmlns:soap=<@dq>http://schemas.xmlsoap.org/soap/envelope/<@dq>>
  <soap:Header>
    <RequesterCredentials xmlns=<@dq>GunBrokerAPI_V2<@dq>>
      <DevKey><@var request$DevKey></DevKey>
      <AppKey><@var request$AppKey></AppKey>
      <UserName><@var request$UserName></UserName>
      <Password><@var request$Password></Password>
    </RequesterCredentials>
  </soap:Header>
  <soap:Body>
    <GetItem xmlns=<@dq>GunBrokerAPI_V2<@dq>>
      <GetItemRequest>
        <ItemID><@var request$ItemID></ItemID>
        <ItemDetail><@var request$ItemDetail></ItemDetail>
      </GetItemRequest>
    </GetItem>
  </soap:Body>
</soap:Envelope>'>
">

<@assign
scope="request"
name="response"
value=<@url
location="<@var request$urllocation>"
useragent="
Witango <@version> <@platform><@crlf>
Content-type: text/xml; charset=utf-8<@crlf>
SOAPAction: <@dq>@@request$SOAPAction<@dq>"
postargs="1.1<@dq>
encoding=<@dq>utf-8<@dq>?><@crlf>
<@var request$SoapPayload
encoding='none'>">
>

I am getting the following response:

Response: soap:ReceiverServer was unable to process request. ---> Root element is missing.

GunBroker.com’s docs are not very good. So I would appreciate any comments about how to get this working.

Thanks

Steve Fogelson
Internet Commerce Solutions
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Ben Johansen
http://www.webspinr.com
b...@webspinr.com
Phone: 360-597-3372
Mobile: 360-600-7775




________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to