• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UDDI Wrapper Service

Kevin G Scott
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I am working with a UDDI registry that doesn't seem to play nice with JAXR implementations. The problem seems to be that the UDDI registry does not place a xml:lang attribute in the services, so that when the JAXR client searches, it places a xml:lang="en" attribute in the search, so that the return does not include all the services. So anyway, I decided to attempt to write a wrapper service so that I could strip this attribute from the requests and transform the return so that the JAXR client can understand it. I have this written this service and checked the tcp trace, and the return going back to the client looks good, and I checked it against the UDDI v2 schema and it looks good. However, I get the following error:

at com.sun.xml.registry.uddi.bindings_v2.impl.runtime.UnmarshallerImpl.unmarshal(Unknown Source)
at com.sun.xml.registry.common.util.MarshallerUtil.jaxbUnmarshalObject(Unknown Source)
at com.sun.xml.registry.uddi.Processor.processResponseJAXB(Unknown Source)
at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
at com.sun.xml.registry.uddi.UDDIMapper.findServices(Unknown Source)
at com.sun.xml.registry.uddi.BusinessQueryManagerImpl.findServices(Unknown Source)

So here are my questions:
1) Does anyone have a better idea to accomplish this wrapping, or am I at least going down the correct path?
2) I placed the XML that I am returning into the MarshallerUtil and the Unmarshaller and it is able to unmarshall it properly. I also checked the JAXB API and this error is apparently caused by a null source being passed into the unmarshall method. Any ideas on where this source is being set to null in the interim?
3) Is there a way to get a hold of the source of the objects written above, so I can check out what's going on?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic