Changeset 2031

Show
Ignore:
Timestamp:
04/26/10 09:24:53 (4 months ago)
Author:
x.pechoultres@…
Message:

Xmlo and Soap use Sax instead of deprected Expat module

Location:
trunk/modules
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/Soap/source/response_parse.cl

    r1233 r2031  
    2020                (//[-100] == Found an attached SOAP fault report, 
    2121                FAULTREPORT? := true), 
    22         Expat/set_handler(clientResponseTagEnter, clientResponseTagLeave)] 
     22        Sax/set_handler(clientResponseTagEnter, clientResponseTagLeave)] 
    2323 
    2424[Xmlo/tagToClass(ns:{"soap", "Soap", "SOAP"}, t:{"Fault","fault","FAULT"}) : class -> 
    25         Expat/set_handler(fault_enter,fault_leave), 
     25        Sax/set_handler(fault_enter,fault_leave), 
    2626        Fault] 
    2727 
     
    4242        FAULTREPORT? := false, 
    4343        XMLPORT := xml, 
    44         Expat/sax(xml, clientResponseTagEnter, clientResponseTagLeave), 
     44        Sax/sax(xml, clientResponseTagEnter, clientResponseTagLeave), 
    4545        if FAULTREPORT? 
    4646                let p := use_as_output(Wcl/wcl_handler_instance.Wcl/report.target) 
  • trunk/modules/Soap/source/soap_service.cl

    r1990 r2031  
    117117        //[-100] == parse text SOAP message , 
    118118        PORT_IN := from, 
    119         Expat/sax(from, soap_message_enter, soap_message_leave), 
     119        Sax/sax(from, soap_message_enter, soap_message_leave), 
    120120        //[-100] == SOAP text/xml parsed  end?=~S // eof?(PORT_IN), 
    121121        bleedInput(PORT_IN), 
     
    149149                                error("Verification failed : ~A", dec_p7.Openssl/verify_message), 
    150150                        PORT_IN := b, 
    151                         Expat/sax(b, soap_message_enter, soap_message_leave), 
     151                        Sax/sax(b, soap_message_enter, soap_message_leave), 
    152152                        ctx.sender := Openssl/get_signers(dec_p7)[1], 
    153153                        (SOAP_IN as SoapIn).secure_context := ctx, 
  • trunk/modules/Xmlo/init.cl

    r227 r2031  
    44 
    55 
    6 (use_module("Expat")) 
     6(use_module("Sax")) 
     7(use_module("Iconv")) 
    78 
    89Xmlo :: module( 
    9         uses = list(Expat), 
     10        uses = list(Sax,Iconv), 
    1011        made_of = list("xmlize","readxml","printxml"), 
    1112        source = "source", 
  • trunk/modules/Xmlo/source/readxml.cl

    r1941 r2031  
    166166[unXml!(self:port) : any -> 
    167167        STACK := list<any>(), 
    168         Expat/sax(self, enterTag, leaveTag), 
     168        Sax/sax(self, enterTag, leaveTag), 
    169169        STACK[1]] 
    170170