val obj = scalaxb.fromXML[com.test.SpAvailabilityResponse](<spAvailabilityResponse xmlns="http://servicebench.com/serviceOrder/service/types"> <version>5.0</version> <sourceSystemName>IVR</sourceSystemName> <sourceSystemVersion>IVR</sourceSystemVersion> <msgStatus>NORMAL</msgStatus> <availabilityResponse> <requestControlID>123456789</requestControlID> <availabilityFound>Y</availabilityFound> <serviceJobTypes> <serviceJobType> <jobType>DPM</jobType> <dates> <date> <availableDate/> <availableDay/> <serviceProviders> <serviceProvider> <serviceProviderAccount>1111111</serviceProviderAccount> <serviceProviderName>Random</serviceProviderName> <serviceProviderAddress1>Random Address</serviceProviderAddress1> <serviceProviderCity>City 1</serviceProviderCity> <serviceProviderStateProvince>IN</serviceProviderStateProvince> <serviceProviderPostalCode>1234567</serviceProviderPostalCode> <serviceProviderType>S</serviceProviderType> <priorityRank>10</priorityRank> <enabledForServiceJobType>2</enabledForServiceJobType> <serviceJobType>DPM</serviceJobType> <distance>123</distance> <businessHours> <dayOfTheWeek> <day>0</day> </dayOfTheWeek> <dayOfTheWeek> <day>1</day> </dayOfTheWeek> <dayOfTheWeek> <day>2</day> </dayOfTheWeek> <dayOfTheWeek> <day>3</day> </dayOfTheWeek> <dayOfTheWeek> <day>4</day> </dayOfTheWeek> <dayOfTheWeek> <day>5</day> </dayOfTheWeek> <dayOfTheWeek> <day>6</day> </dayOfTheWeek> </businessHours> <timeSlots> <timeSlot/> </timeSlots> <partsShipmentPreference>1</partsShipmentPreference> </serviceProvider> <serviceProvider> <serviceProviderAccount>211231</serviceProviderAccount> <serviceProviderName>Test Service</serviceProviderName> <serviceProviderAddress1>Unknown address</serviceProviderAddress1> <serviceProviderCity>city 2</serviceProviderCity> <serviceProviderStateProvince>NY</serviceProviderStateProvince> <serviceProviderPostalCode>1233333</serviceProviderPostalCode> <serviceProviderPhone>800-123-1234</serviceProviderPhone> <serviceProviderType>S</serviceProviderType> <priorityRank>12.0</priorityRank> <enabledForServiceJobType>2</enabledForServiceJobType> <serviceJobType>DPM</serviceJobType> <distance>1.9</distance> <businessHours> <dayOfTheWeek> <day>0</day> <fromHours>0900</fromHours> <toHours>1800</toHours> </dayOfTheWeek> <dayOfTheWeek> <day>1</day> <fromHours>0900</fromHours> <toHours>1800</toHours> </dayOfTheWeek> <dayOfTheWeek> <day>2</day> <fromHours>0900</fromHours> <toHours>1800</toHours> </dayOfTheWeek> <dayOfTheWeek> <day>3</day> <fromHours>0900</fromHours> <toHours>1800</toHours> </dayOfTheWeek> <dayOfTheWeek> <day>4</day> <fromHours>0900</fromHours> <toHours>1800</toHours> </dayOfTheWeek> <dayOfTheWeek> <day>5</day> <fromHours>1000</fromHours> <toHours>1400</toHours> </dayOfTheWeek> <dayOfTheWeek> <day>6</day> <fromHours>1000</fromHours> <toHours>1400</toHours> </dayOfTheWeek> </businessHours> <timeSlots> <timeSlot/> </timeSlots> <partsShipmentPreference>1</partsShipmentPreference> </serviceProvider> </serviceProviders> </date> </dates> </serviceJobType> </serviceJobTypes> </availabilityResponse> </spAvailabilityResponse>)
But we are getting this error:
scalaxb.ParserFailure: Error while parsing <XML>, : parser error "end of input" while parsing /{http://servicebench.com/serviceOrder/service/types}spAvailabilityResponse/{http://servicebench.com/serviceOrder/service/types}sourceSystemName{http://servicebench.com/serviceOrder/service/types}sourceSystemVersion{http://servicebench.com/serviceOrder/service/types}msgStatus{http://servicebench.com/serviceOrder/service/types}availabilityResponse
This seems like a namespace issue, however the response seems to be correct based on the WSDL. Can someone help us pinpoint what the issue is here?
--
You received this message because you are subscribed to the Google Groups "scalaxb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalaxb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "scalaxb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scalaxb/IHyzg_7WLG8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scalaxb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.