Turns out I was missing a couple of jars in the classpath. I'm now at the point where I know that I'm actually sending requests to the Betdaq server and receiving responses...
The exception I'm getting now is: org.apache.axis2.databinding.ADBException: Unexpected subelement ListTopLevelEventsResult If I turn on HTTP traffic logging, I can now see that I'm getting an "IncorrectVersionNumber" error back from Betdaq. Looking at the original code that you gave me, I saw that you were setting "theVersion" to 1. I tried setting it to 2, but it didn't help. Looking at the logs, it seems that all the header attributes that the code is supposedly setting is not used at all in the SOAP message. Here's my log : 2008/04/08 10:57:29:499 EDT [DEBUG] HttpConnection - Open connection to api.betdaq.com:80 2008/04/08 10:57:29:639 EDT [DEBUG] header - >> "POST /v2.0/ReadOnlyService.asmx HTTP/1.1[\r][\n]" 2008/04/08 10:57:29:655 EDT [DEBUG] HttpMethodBase - Adding Host request header 2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "Content-Type: text/xml; charset=UTF-8[\r][\n]" 2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "SOAPAction: "http://www.GlobalBettingExchange.com/ExternalAPI/ListTopLevelEvents"[\r][\n]" 2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "User-Agent: Axis2[\r][\n]" 2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "Host: api.betdaq.com[\r][\n]" 2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "Transfer-Encoding: chunked[\r][\n]" 2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "[\r][\n]" 2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "18d[\r][\n]" 2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ExternalApiHeader xmlns:ns1="http://www.GlobalBettingExchange.com/ExternalAPI/" soapenv:mustUnderstand="0" /></soapenv:Header><soapenv:Body><ns1:ListTopLevelEvents xmlns:ns1="http://www.GlobalBettingExchange.com/ExternalAPI/" /></soapenv:Body></soapenv:Envelope>" 2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "[\r][\n]" 2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "0" 2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "[\r][\n]" 2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "[\r][\n]" 2008/04/08 10:57:29:702 EDT [DEBUG] EntityEnclosingMethod - Request body sent 2008/04/08 10:57:29:827 EDT [DEBUG] header - << "HTTP/1.1 100 Continue[\r][\n]" 2008/04/08 10:57:29:827 EDT [INFO] HttpMethodBase - Discarding unexpected response: HTTP/1.1 100 Continue 2008/04/08 10:57:29:827 EDT [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]" 2008/04/08 10:57:29:827 EDT [DEBUG] header - << "Date: Tue, 08 Apr 2008 14:57:29 GMT[\r][\n]" 2008/04/08 10:57:29:827 EDT [DEBUG] header - << "Server: Microsoft-IIS/6.0[\r][\n]" 2008/04/08 10:57:29:842 EDT [DEBUG] header - << "X-Powered-By: ASP.NET[\r][\n]" 2008/04/08 10:57:29:842 EDT [DEBUG] header - << "X-AspNet-Version: 2.0.50727[\r][\n]" 2008/04/08 10:57:29:842 EDT [DEBUG] header - << "Cache-Control: private, max-age=0[\r][\n]" 2008/04/08 10:57:29:842 EDT [DEBUG] header - << "Content-Type: text/xml; charset=utf-8[\r][\n]" 2008/04/08 10:57:29:842 EDT [DEBUG] header - << "Content-Length: 1394[\r][\n]" 2008/04/08 10:57:29:842 EDT [DEBUG] content - << "<?xm" 2008/04/08 10:57:29:858 EDT [DEBUG] content - << "l 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" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soap:Header><wsa:Action>http://www.GlobalBettingExchange.com/ExternalAPI/ListTopLevelEventsResponse</wsa:Action><wsa:MessageID>uuid:0daeb813-d09f-4e2b-a8ae-83f37b971bfb</wsa:MessageID><wsa:RelatesTo>uuid:813f4579-17fe-460b-a47e-1c18dca0e5b6</wsa:RelatesTo><wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:To><wsse:Security><wsu:Timestamp wsu:Id="Timestamp-ea4eed52-4bef-411d-9971-559f3e572e19"><wsu:Created>2008-04-08T14:57:29Z</wsu:Created><wsu:Expires>2008-04-08T15:02:29Z</wsu:Expires></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><ListTopLevelEventsResponse xmlns="http://www.GlobalBettingExchange.com/ExternalAPI/"><ListTopLevelEventsResult><ReturnStatus Code="308" Description="IncorrectVersionNumber" CallId="c9fe82ee-1cb4-4f68-a52c-0b9863758e29" /><Timestamp>2008-04-08T15:57:29.6608494+01:00</Timestamp></ListTopLevelEventsResult></ListTopLevelEventsResponse></soap:Body></soap:Envelope>" -- View this message in context: http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16559668.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]