cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hybris - adding Doctype to cXML Punchout

plerbs
Discoverer
0 Likes
485

Currently our cXML Punchout implementation (SAP hybris standard) does not print the Doctype on a response.
The the endsyste needs it:

Wed Sep 02 00:19:42 PDT 2020 (T12:prealm_1234:global\c1234:PasswordAdapter1:db2wer:C123_UI1) (application.cxml:ERROR) [ID1234]: CXMLDOMRequester: Unable to parse cXML response with error: org.xml.sax.SAXParseException: Document root element "cXML", must match DOCTYPE root "null".


I tried to do some research:
One request goes to

de.hybris.platform.b2bpunchoutaddon.controllers.pages.DefaultPunchOutSetUpController.handlePunchOutSetUpRequest()

and it returns a CXML Object. This Object goes through some mapper and converter. But no where it adds the Doctype.

Then I found

de.hybris.platform.b2bpunchoutaddon.converter.CXMLJaxb2MessageConverter

For me the spring configuration looks correct:

<alias name="cXMLJaxb2MessageConverter" alias="jaxbMessageConverter" />
<bean id="cXMLJaxb2MessageConverter"/>


Right now I despair on this problem. Does any of you know how to fix it?

Accepted Solutions (0)

Answers (1)

Answers (1)

ssuhana
Discoverer
0 Likes

Hi paul.kalbing

Do you have solution for this problem?