Skip to content
This repository

xs:any's namespace doesn't default to ##any #147

Closed
champloo opened this Issue March 07, 2012 · 2 comments

2 participants

champloo eugene yokota
champloo

steps

  1. Generate code from http://www.tab.com.au/LiveOdds/Services/Racing/Racing.wsdl
  2. Run this code:
val service = (new RacingSoapBindings
    with Soap11Clients
    with DispatchHttpClients {}).service
val response = service.meetingSummary(Some("dummy"), Some("dummy"), Some("dummy"), Some("dummy"))

problem

Exception occurs when parsing the response:

scalaxb.ParserFailure: parser error "any expected" while parsing...

expectation

To receive an XML response.

note

I am able to avoid the ParserFailure if I modify the local copy of the wsdl.
Replace <s:any /> in <s:element name="MeetingSummaryResponse"> with <s:any namespace="##any" />.

eugene yokota eed3si9n closed this in 38fb333 March 07, 2012
eugene yokota
Owner

Thanks for following the issue reporting style. I wish everyone reported issues like this. This is now fixed and 0.6.9-SNAPSHOT is published. Using your wsdl I was able to get the following response:

Right(MeetingSummaryResponse(Some(MeetingSummaryResult(DataRecord(Error,<Error xmlns="" xmlns="http://direct.tab.com.au/LiveOdds/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">Invalid jurisdiction parameter provided. Please provide either NSW or VIC.</Error>)))))
champloo

Great! Thanks a lot for fixing this so quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.