[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple Namespaces



   I am trying to create an integration program that uses a request that
   has what looks like multiple namespaces.  Is this possible?


   Here is a copy of the request sent from the outside programmer:


   <soapenv:Envelope
   xmlns:soapenv="[1]http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:cla="[2]http://www.chrchmutual.com/ClaimsIntegration/";
   xmlns:cla1="[3]http://www.churchmutual.com/claims_types";>

      <soapenv:Header/>

      <soapenv:Body>

         <cla:searchCustomerByAddress>

            <request>

               <cla1:STATE></cla1:STATE>

               <cla1:CITY></cla1:CITY>

               <cla1:ADDRESS></cla1:ADDRESS>

               <cla1:NAME>t</cla1:NAME>

            </request>

         </cla:searchCustomerByAddress>

      </soapenv:Body>

   </soapenv:Envelope>


   Here's a copy of my code using the 2 namespaces.  I'm thinking it's not
   legal, but I don't know for sure.

   SOAP =

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

   +'<soapenv:Envelope'

   +' xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";'

   +' xmlns:cla="http://www.chrchmutual.com/ClaimsIntegration/";'

   +' xmlns:cla1="http://www.churchmutual.com/claims_types/";'

   +' xmlns:xsd="http://www.w3.org/2001/XMLSchema";'

   +' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>'

   +'<soapenv:Header>'

   +'<soapenv:Body>'

   +'  <cla:searchCustomerByAddress>'

   +'   <request>'

   +'     <cla1:STATE>' + stateIn +'<:/cla1:STATE>'

   +'     <cla1:CITY>' + %trimr(cityIn) +'</cla1:CITY>'

   +'     <cla1:ADDRESS>' + %trimr(addrIn) +'</cla1:ADDRESS>'

   +'     <cla1:NAME>' + %trimr(nameIn) +'</cla1:NAME>'

   +'   </request>'

   +'  </cla:searchCustomerByAddress>'

   +'</soapenv:Body>'

   +'</soapenv:Header>'

   +'</soapenv:Envelope>';


   Thanks!


   Becky

References

   1. http://schemas.xmlsoap.org/soap/envelope/
   2. http://www.chrchmutual.com/ClaimsIntegration/
   3. http://www.churchmutual.com/claims_types
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------