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

Closed
champloo opened this Issue Mar 7, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@champloo

champloo commented Mar 7, 2012

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" />.

@eed3si9n eed3si9n closed this in 38fb333 Mar 8, 2012

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Mar 8, 2012

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>)))))
Owner

eed3si9n commented Mar 8, 2012

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

This comment has been minimized.

Show comment
Hide comment
@champloo

champloo Mar 8, 2012

Great! Thanks a lot for fixing this so quickly.

champloo commented Mar 8, 2012

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