cancel
Showing results for 
Search instead for 
Did you mean: 

Namespace addition in a DTD in ESR

Former Member
0 Kudos

Hi,

I have imported an external definition, a DTD, in my ESR. In external definition window in ESR there is a tab WSDL where I cant see namespace for he schema.

Can someone help me with how to get namespace in that WSDL or how to declare and add a namespace in a DTD (doctype) structure?

PFB the my DTD structure where MyMessage is root node in message structure.

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

<!DOCTYPE MyMessage SYSTEM "http://host.com/app_docs/dtd/PO/xyz.dtd" [

<!--

            $Source: /abc/def/xyz.dtd,v $

            $Revision: 1.2 $

            $Date: 2012/06/27 09:12:17 $

           

            Version 2.5: everything in version 2.4 plus custom field amount totals

-->

<!ELEMENT abc (#PCDATA)>

<!ELEMENT xyz (#PCDATA)>

<!ATTLIST …….

…………………….

……………………………………

>

]>

and PFB corresponding WSDL:

<wsdl:definitions xmlns:wsdl="………/wsdl/">

   <wsdl:types>

      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> ------> I want targetNamesapce field here with valid namespace.

         <xsd:element name="MyMessage" type="MyMessage" />

         <xsd:complexType ……………………….>

            <xsd:sequence>

               <xsd:element name="………………" type="xsd:string" />

               <xsd:element name="………………" type="xsd:string" />

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190624
Active Contributor
0 Kudos

Hi Saurabh,

you want to change the namespace http://host.com/app_docs/dtd/po/PO.dt in the XSD ?

Thanks

Hari.

Former Member
0 Kudos

Hi Saurabh,

Can you please send me the file you are trying to import?

Regards,

Jannus Botha

Former Member
0 Kudos

Its very large and complex DTD which I imported, it looked like this:

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

<!DOCTYPE PurchaseOrderMessage SYSTEM "http://host.com/app_docs/dtd/po/PO.dtd" [

<!ELEMENT Address (#PCDATA)>

<!ATTLIST Address

    linenumber CDATA #REQUIRED

    label CDATA #IMPLIED

>

.

.

.

.

.

.

]>