Skip to Content
0
Oct 06, 2016 at 09:26 AM

DTD validation?

249 Views

All,

I'm trying to control communication channels with a web service.

Source: http://help.sap.com/saphelp_nw73/helpdata/en/4b/a2862d182b63a3e10000000a42189c/frameset.htm

When I do that without any operation mapping, I see response.

But, I want to control the input and make it generic.This means having an operation mapping in place with a request and response mapping.

When we test, we see response coming back in SAP PO and it looks like this

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ChannelStatusResult SYSTEM "/AdapterFramework/channelAdmin/ChannelAdmin.dtd">

<ChannelStatusResult xsi:schemaLocation="http://host:port/AdapterFramework/channelAdmin/ChannelAdmin.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Channels>

When we test in soapUI, we see this error

<code>ADAPTER.JAVA_EXCEPTION</code>

<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_CommunicationChannelCheckResponse_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Failed to load resource from the context classloader of the current thread! Loading from classloader was caused by: java.io.FileNotFoundException: D:\AdapterFramework\channelAdmin\ChannelAdmin.dtd (The system cannot find the path specified)

Any ideas? We just use the XSD in the ESR.

Can we skip the DTD validation?

Thanks a lot

Dimitri