SOA Suite developer preview is available from : http://www.oracle.com/technology/software/products/ias/soapreview.html
Documentation for SOA, ESB, BPEL available from : http://download-east.oracle.com/otn_hosted_doc/soa/docs/index.htm
SOA Suite developer preview is available from : http://www.oracle.com/technology/software/products/ias/soapreview.html
Documentation for SOA, ESB, BPEL available from : http://download-east.oracle.com/otn_hosted_doc/soa/docs/index.htm
SOAP Message Embedded in HTTP Request
POST /StockQuote HTTP/1.1 Host: www.stockquoteserver.com Content-Type: text/xml; charset="utf-8" Content-Length: nnnn SOAPAction: "Some-URI" <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org
/soap/envelope/">
<soapenv:Body>
<m:GetLastTradePrice xmlns:m="Some-URI">
<m:tickerSymbol>DIS</m:tickerSymbol>
</m:GetLastTradePrice>
</soapenv:Body>
</soapenv:Envelope>
SOAP Message Embedded in HTTP Response
HTTP/1.1 200 OK Content-Type: text/xml; charset="utf-8" Content-Length: nnnn <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org
/soap/envelope/">
<soapenv:Body>
<m:GetLastTradePriceResponse xmlns:m="Some-URI">
<m:price>34.5</m:price>
</m:GetLastTradePriceResponse>
</soapenv:Body>
</soapenv:Envelope>
Following xml fragments will give an idea of how to use multiple dtd’s in xml and also the workaround of specifying namespace in dtd
File : s.dtd
============
<?xml version=”1.0″ encoding=”UTF-8″?>
<!ELEMENT computer (ns1:address) >
<!ELEMENT ns1:address (type, ipaddress)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT ipaddress (#PCDATA)>
File : s1.dtd
==============
<?xml version=”1.0″ encoding=”UTF-8″?>
<!ELEMENT ns2:student (name, ns2:address, computer) >
<!ATTLIST ns2:student xmlns:ns2 CDATA #FIXED “http://krishna/ns2″>
<!ELEMENT ns2:address (#PCDATA) >
<!ELEMENT name (#PCDATA) >
File:student.xml
================
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE ns2:student SYSTEM “s1.dtd” [<!ENTITY % s SYSTEM "s.dtd">
%s;
]>
<ns2:student xmlns:ns2=”http://krishna/ns2″>
<name >krishna</name>
<ns2:address>unknown</ns2:address>
<computer>
<ns1:address>
<type></type>
<ipaddress></ipaddress>
</ns1:address>
</computer>
</ns2:student>