Hello,
here are my details

Name            : Stephen Martin

Email           : [EMAIL PROTECTED]

Homepage        : http://www.unixtown.com/resume <-- about me
                : http://www.unixtown.com  <-- Unix resource search engine


Preferred id: UNIXTOWN

Description     :

SOAP::Payload

I have written a very short module that can take either an array_hashref,
string or array
and return an XML/SOAP envelope. This module is designed to interface with
DBI
and allow database result sets to be turned into SOAP envelopes.

Here is an example of the output..

<?xml version='1.0'?>
<s:Envelope
 xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";
 xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
 xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
<s:Header>
 <m:transaction xmlns:m="soap-transaction" s:mustUnderstand="true">
  <transactionID>23080</transactionID>
 </m:transaction>
</s:Header>
<s:Body>
 <m:sayHello xmlns:m='urn:XML_module'>
        <!-- XML Data Structure begins -->
        <DATA_STRUCTURE>
        <DATA coat_desc="B/Cards Hot Gloss" coat_id="1" />
        <DATA coat_desc="B/Cards Cool Satin" coat_id="2" />
        <DATA coat_desc="Postcards (Hot Gloss Only)" coat_id="3" />
        <DATA coat_desc="DL Cards (Hot Gloss Only)" coat_id="4" />
        <DATA coat_desc="A4 Brochures (No Coating)" coat_id="5" />
        </DATA_STRUCTURE>
        <!-- XML Data Structure ends -->
 </m:sayHello>
</s:Body>
</s:Envelope>

This was the result of feeding the module some results from a MYSQL
database.
I have verified the results in XMLwriter and with XML::Parser and the module
produces valid XML.

Some point in the near future I intend to add a method to capture the above
input and return it a form ready for use by an application or script.
But for the moment I'd like to see my initial idea publicly available.

Stephen



Reply via email to