lib/spree_seur_shipping_labeler/pickup_label.rb
# Sends post request to Seur web service and return the response
Sends post request to Seur web service and return the response
Sends post request to Seur web service and return the response
def process_request
      client = Savon.client(wsdl: "http://cit.seur.com/CIT-war/services/ImprimirECBWebService?wsdl", pretty_print_xml: true)
      client.operations  
      if @mode.blank?
        operation = :impresionIntegracionPDFConECBWS
        message = build_messagePDF
      else
        operation = :impresionIntegracionConECBWS
        message = build_messageECB
      end
      client.call(operation, message: message)
      rescue Savon::HTTPError => error
      Logger.log error.http.code
      raise
    end
def process_request client = Savon . client ( wsdl : "http://cit.seur.com/CIT-war/services/ImprimirECBWebService?wsdl" , pretty_print_xml : true ) client . operations if @mode . blank? operation = :impresionIntegracionPDFConECBWS message = build_messagePDF else operation = :impresionIntegracionConECBWS message = build_messageECB end client . call ( operation , message : message ) rescue Savon :: HTTPError => error Logger . log error . http . code raise end
Sends post request to Seur web service and return the response
Sends post request to Seur web service and return the response
# => [:impresionIntegracionPDFConECBWS, :impresionIntegracionConECBWS]