Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    BancaSella e WebService

    Salve a tutti,
    Vorrei sapere se qualcuno di voi ha già utilizzato il WebService WSCryptDecrypt.asmx di BancaSella richiamandolo con del codice asp.

    Mi sono stati forniti due script dall'assistenza, uno per il criptaggio e l'altro per il decriptaggio dei dati, ma continuo a ricevere un messaggio di errore già nelle prime righe del criptaggio.

    In pratica lo script dovrebbe creare un file xml che richiama il web service, ma la richiesta non parte assolutamente perchè si blocca già prima

    Questa la prima parte del file:

    <%
    nAmount = request("totOrd")
    nAmount = Replace(nAmount,",",".")
    sShopTransactionId = request("idordine")
    response.write "nAmount="&nAmount&"
    "
    response.write "sShopTransactionId="&sShopTransactionId&"
    "
    Dim XML_SendData
    Dim CryptString

    'XML data
    'all the commented nodes are optional, remove the comments if you need to send those

    XML_SendData = "<?xml version=""1.0"" encoding=""utf-8""?>"
    XML_SendData = XML_SendData & "<soap12:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap12=""http://www.w3.org/2003/05/soap-envelope"">"
    XML_SendData = XML_SendData & " <soap12:Body>"
    XML_SendData = XML_SendData & " <Encrypt xmlns=""https://testecomm.sella.it/"">"
    XML_SendData = XML_SendData & " <shopLogin>GESPAY50089</shopLogin>" 'your Merchant code ex. GesPayXXXXXXX
    XML_SendData = XML_SendData & " <uicCode>242</uicCode>" 'Currency code ex. 242 for Euro
    XML_SendData = XML_SendData & " <amount>"&nAmount&"</amount>" 'the amount ex. 0.05
    XML_SendData = XML_SendData & " <shopTransactionId>"&sShopTransactionId&"</shopTransactionId>" 'your ShopTransactionID
    'XML_SendData = XML_SendData & " <cardNumber>string</cardNumber>"
    'XML_SendData = XML_SendData & " <expiryMonth>string</expiryMonth>"
    'XML_SendData = XML_SendData & " <expiryYear>string</expiryYear>"
    'XML_SendData = XML_SendData & " <buyerName>string</buyerName>"
    'XML_SendData = XML_SendData & " <buyerEmail>string</buyerEmail>"
    'XML_SendData = XML_SendData & " <languageId>string</languageId>"
    'XML_SendData = XML_SendData & " <cvv>string</cvv>"
    'XML_SendData = XML_SendData & " <customInfo>string</customInfo>"
    XML_SendData = XML_SendData & " </Encrypt>"
    XML_SendData = XML_SendData & " </soap12:Body>"
    XML_SendData = XML_SendData & "</soap12:Envelope>"

    Set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
    'xmlHTTP.setProxy 2, "http://proxy.planetek.it:8080"
    Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument")
    xmlHTTP.open "POST", "https://ecomms2s.sella.it/gestpay/gestpayws/WSCryptDecrypt.asmx", false
    'xmlHTTP.open "POST", "https://testecomm.sella.it/gestpay/gestpayws/WSCryptDecrypt.asmx", False
    xmlHTTP.setRequestHeader "Content-Type", "application/soap+xml; charset=utf-8"
    xmlHTTP.setRequestHeader "Host", "testecomm.sella.it"
    xmlHTTP.setRequestHeader "SOAPAction", "https://testecomm.sella.it/Encrypt"

    xmlHTTP.send XML_SendData
    %>

    Ma il messaggio d'errore che visualizzo è:
    Unable to handle request without a valid action parameter. Please supply a valid soap action.

    Qualcuno sa aiutarmi?

    Grazie
    tre fiorini!!!

  2. #2
    Nessuno ha mai realizzato un ecommerce utilizzando il webservice di BancaSella?
    tre fiorini!!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.