Hi Ben,
Thanks for the quick response. I tried adding the 2nd <@crlf>, but I still get the same response. I am trying a simpler request. The following is sample code from GunBroker.com 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> I changed the SOAPPayload to the following: <@assign request$SOAPPayload "<@urlencode str=' <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><@var request$UserName></UserName> <Password><@var request$Password></Password> <DevKey><@var request$DevKey></DevKey> <AppKey><@var request$AppKey></AppKey> </Login> </soap:Body> </soap:Envelope> '>"> Steve _____ From: Ben Johansen [mailto:[email protected]] Sent: Monday, December 29, 2008 8:11 PM To: [email protected] Subject: Re: Witango-Talk: First attempt at SOAP WebServices 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 <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 <http://www.w3.org/2001/XMLSchema-instance> <@dq> xmlns:xsd=<@dq>http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> <@dq> xmlns:soap=<@dq>http://schemas.xmlsoap.org/soap/envelope/ <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 <http://www.witango.com/developer/maillist.taf> Ben Johansen http://www.webspinr.com <http://www.webspinr.com> [email protected] <mailto:[email protected]> Phone: 360-597-3372 Mobile: 360-600-7775 ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
