Hi all,
I am using JAXB1 (v1.0.6) for marshaling/unmarshaling on Spring WS 1.0.4 and JDK 1.4.2. Everything was working well until I have tried to add namespaces to the original XSD files from which I have generated java classes by JAXB, so that the system could accept requests with namespaces.
Now, when I send a requst to my system, I get the following exception:
org.xml.sax.SAXParseException: unexpected root element (uri:"http://www.mycompany.com", local:"mymethod1"). Expected elements are <{}mymethod1>,<{}mymethod2>,<{}mymethod3>]
From what I understand, the problem is that my system still doesn't accept namespaces in requests. I have recompiled files based on updated XSD files and deployed it.
For end point mapping I am using org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping. I updated mappings in the endpoints to accept namespaces, and it works properly. I have multiple XSD files, but they are all using the same namespace.
Could anyone point me into the direction where should I update my system (is it in conf.xjb, or somewhere in spring), or what should I do, so that it starts accepting requests with namespaces?
Any help is highly appreciated since I have lost lots of time on this one!
Thanks in advance, Stanislav