On Fri, Mar 6, 2009 at 4:25 PM, Jeff Ortel <jortel(a)redhat.com> wrote:
The rules around when the name referenced by xsi:type=""
needs to be
qualified by namespace are unclear. My jboss server will not accept
xsi:type="" for eleemnts of types derived by extension in the
document/literal message style when the element and the type referenced by
xsi:type="" are in the same namespace.
So, after much surfing of specifications, I'm concluding for now that for
the /literal/ soap styles, the xsi:type="" contains a namespace qualified
reference only when it is in a different namespace. The rpc/encoded remains
the same (always qualified).
I committed as r463. Can you try from svn?
Yep, that's fixed it. The request now looks like this:
<SOAP-ENV:Envelope
xmlns:ns0="http://www.betfair.com/publicapi/v3/BFGlobalService/"
xmlns:ns1="http://www.betfair.com/publicapi/types/global/v3/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns0:getEvents>
<ns0:request xsi:type="ns1:GetEventsReq">
<header>
<clientStamp>0</clientStamp>
<sessionToken>blah</sessionToken>
</header>
<eventParentId>1</eventParentId>
<locale xsi:nil="true"/>
</ns0:request>
</ns0:getEvents>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The wsdl is here, incase you still need it:
https://api.betfair.com/global/v3/BFGlobalService.wsdl
Thanks heaps!
--Dave