cancel
Showing results for 
Search instead for 
Did you mean: 

external definition error

Former Member
0 Kudos

I am trying to import the following XSD as an External Definition in Repository.

I am getting the following Error. Please help me.

Error

Activation of the change list canceled

Check result for External Definition Request | http://ABC.COM: Document check found errors

Cause: The loaded document does not contain valid XML

Error when parsing XML document com.sap.aii.utilxi.xml.xdom.XDOMException$ParseError: Error when parsing the XML document (External entity from address http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd in XML document is not supported

XSD

-


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

<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">

<cXML payloadID="1105574416.19583@hydra.buyer.com"

timestamp="2005-01-13T00:00:16+00:00">

<Header>

<From>

<Credential domain="NetworkId">

<Identity>AN13000000259</Identity>

</Credential>

</From>

<To>

<Credential domain="NetworkId">

<Identity>AN01000000001</Identity>

</Credential>

</To>

<Sender>

<Credential domain="NetworkId">

<Identity>AN13000000259</Identity>

<SharedSecret>abracadabra</SharedSecret>

</Credential>

<UserAgent>Our Procurement System 3.0</UserAgent>

</Sender>

</Header>

<Request>

<GetPendingRequest lastReceivedTimestamp="2005-01-12T00:00:25+00:00"

maxMessages="20">

<MessageType>StatusUpdateRequest</MessageType>

</GetPendingRequest>

</Request>

</cXML>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mohini,

Please check the structure for well-formedness in a tool such as XML Spy.

cheers,

Prashanth

Former Member
0 Kudos

Prashanth in XML SPY there was NO ERROR AT ALL. Thats where I am also confused.

Former Member
0 Kudos

Please Help me.

Former Member
0 Kudos

I am still having the error,help me please. Thanks

former_member206604
Active Contributor
0 Kudos

Hi,

The structure that you posted dose'nt look like XSD its like a XML. Actually you have created a Schema based on DTD and not XSD. Did you use Altova to create this, then please select W3Schema instead of DTD while creating it.

The following is the strucutre I got when I created using the XML you have posted.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:complexType name="CredentialType">
		<xs:sequence>
			<xs:element ref="Identity"/>
			<xs:element name="SharedSecret" type="xs:string" minOccurs="0"/>
		</xs:sequence>
		<xs:attribute name="domain" type="xs:string" use="required"/>
	</xs:complexType>
	<xs:element name="Identity" type="xs:string"/>
	<xs:element name="cXML">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Header">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="From">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Credential" type="CredentialType"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="To">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Credential" type="CredentialType"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="Sender">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Credential" type="CredentialType"/>
										<xs:element name="UserAgent" type="xs:string"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="Request">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="GetPendingRequest">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="MessageType" type="xs:string"/>
									</xs:sequence>
									<xs:attribute name="lastReceivedTimestamp" type="xs:string" use="required"/>
									<xs:attribute name="maxMessages" type="xs:string" use="required"/>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="payloadID" type="xs:string" use="required"/>
			<xs:attribute name="timestamp" type="xs:string" use="required"/>
		</xs:complexType>
	</xs:element>
</xs:schema>

Thanks,

Prakash

Former Member
0 Kudos

Thanks Prakash. Yes I used the XML SPY to convert the XML to XSD (Would you please tell me the steps involved to convert from an XML to XSD please).

Currently our XI server is down and I need to wait until it comes up.

Thanks a lot for your help.

former_member206604
Active Contributor
0 Kudos

Hi Mohini,

I think to one of your post I have given you the steps

refer this post

Anyways here are the steps

1. Open your XML in Altova XML Spy

2. Goto menu DTD/Schema ---> Generate DTD/Schema

3. You will get a popup there you select <b>W3C Schema</b> instead of <b>DTD</b> which is under the block <b>DTD/Schema file format</b>.

4. You wil be prompted for XSD name in a Save Dialog, give the XSD file name you wanted.

5. Save it

6. Import the XSD file into your IR as External definition

Thats it you will have a XSD file.

Thanks,

Prakash

Answers (0)