cancel
Showing results for 
Search instead for 
Did you mean: 

Importing XSD File -- facing problem

Former Member
0 Kudos

Hi all,

I just exported my orders05 idoc into my desktop and tried to import again under External definition.

when i click on Messages Tab in External Definitions, iam not getting any entries over there.

Sample of my code as below.

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

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="IDOC" type="ORDERS.ORDERS05" /></xsd:sequence></xsd:complexType></xsd:element><xsd:complexType

Please suggest me i need to add anything in my XSD..??

Regards

Seema.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI

YOur namespace is missing

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns0="//give your source namespace here" targetNamespace="//give your target namespace here" elementFormDefault="unqualified">

Check the following doc for more info

http://help.sap.com/saphelp_nw70/helpdata/en/d3/560290358c4ebd808f62db976422ba/frameset.htm

regards

krishna

Message was edited by:

Krishnamoorthy Ramakrishnan

Former Member
0 Kudos

Hi Krishna moorthy,

I got the point for Target namespace.. i will give the namespace where iam importing the xsd file.

But what i need to mention in source namespace..? because iam importing the xsd from my desktop.

Regards

Seema

Message was edited by:

reddy seema

Former Member
0 Kudos

The target and the source namespace will be the same if you are importing the XSD into the same SWC--->namespace.

regards

krishna

Former Member
0 Kudos

Hi krishna,

i done the changes.. but still it is not displaying in Messges tab and showing below error.

<b>Unable to convert imported document to WSDL

Reason: Error when parsing the XML document (Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:6, col:1426))

Check the selected category</b>

<b>First few lines of my code :</b>

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

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

xmlns="http://www.sap-help.com/xi/training/00" targetNamespace="http://www.sap-help.com/xi/training/00" elementFormDefault="unqualified">

<xsd:element name="IDOC" type="ORDERS.ORDERS05" /></xsd:sequence></xsd:complexType></xsd:element><xsd:annotation><xsd:documentation>Service line user fields</xsd:documentation></xsd:annotation><xsd:sequence><xsd:element name="USERF1_NUM"

prateek
Active Contributor
0 Kudos

select the option XSD and not WSDL while importing the file

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek ,

I gave XSD only and imported..

i gave you the error it is showing in WSDL tab.. just for your information.

guys,

please throw a light on this what might be the problem..??

Regards

Seema.

Former Member
0 Kudos

the pblm is clearly with ur XSD

A pretty print format can help us resolve the problem more easily..

regards

krishna

Former Member
0 Kudos

Hi Seema,

From the error it seems you have missed either / or >.

<b>WhiteSpace, / or >:(:main:, row:6, col:1426))</b>.

If you got XML Spy import the xsd in xml spy and then check.

You will get to know where the error is.

Regards,

Sumit

Former Member
0 Kudos

Hi Sumit,

I donot have xmlspy tool and don't have authorization to download as well.

Shall i send my xsd to your mail id.?

Will you please compare and suggest me what might be the problem.

Regards

Seema.

Former Member
0 Kudos

Hi Seema,

You can mail me the xsd. Would try to check and confirm..

Regards,

Sumit

Former Member
0 Kudos

Hi Sumit,

I have sent my file to both your mail ids.

Please check it and suggest me.

Thanks

Seema.

Former Member
0 Kudos

Hi Seema,

Mailed you the XSD. Upload the same and let us know.

Cheers,

Sumit

Former Member
0 Kudos

Thanks a lot Sumit.. its working fine.

Rewarded with points.

Regards

Seema.

Answers (3)

Answers (3)

deviprasad_pothireddy
Active Participant
0 Kudos

Hi reddy,

when you import that in external definition. change mode as xsd.

Regards,

Deviprasad.

Former Member
0 Kudos

Hi Seema,

For importing an XSD, u will have to create a new object under External Definitions and then import it by selecting the XSD stored on your desktop. The category of the file being imported has to be xsd. This can be then used in any message interface. Hope this helps.

Regards,

Karen Pereira

Former Member
0 Kudos

Seema,

Can you tell us what you are trying to achieve here? What is your compete scenario ?

Regards,

Jai Shankar