XML SOAP MessageRSS

1 reply

Last post Mar 16, 2018 08:08 AM by Yuk Ding

  • XML SOAP Message

    Mar 15, 2018 07:15 AM|rbtaskiran|LINK

    I'm trying to POST i-Invoice via XML SOAP system. Even I trying codes as it below I couldn't post successfuly.

    Services (supporting mtom)

    https://integrationtest.eveelektronik.com.tr/IntegrationService.asmx
    https://integrationtest.eveelektronik.com.tr/IntegrationService.wsdl

    Services (not supporting mtom)

    https://integrationservicewithoutmtomtest.eveelektronik.com.tr/IntegrationService.asmx
    https://integrationservicewithoutmtomtest.eveelektronik.com.tr/IntegrationService.wsdl

    My  Codes

    Set oXmlHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0")
    oXmlHTTP.Open "POST", "https://integrationservicewithoutmtomtest.eveelektronik.com.tr/IntegrationService.asmx", False 
    oXmlHTTP.setRequestHeader "SOAPAction", "https://integrationservicewithoutmtomtest.eveelektronik.com.tr/IntegrationService.asmx?op=SendInvoice"
    
    SOAPRequest = _         
    " "&_
    "" &_
    "" &_
    "" &_
    "" &_
    "" &_
      "" &_
        "Successful or Error" &_
        "string" &_
        "string" &_
        "string" &_
        "string" &_
        "int" &_
        "int" &_
        "string" &_
      "" &_
      "" &_
        "Successful or Error" &_
        "string" &_
        "string" &_
        "string" &_
        "string" &_
        "int" &_
        "int" &_
        "string" &_
      "" &_
    "" &_
    "Successful or Error" &_
    "string" &_
    "string" &_
    "string" &_
    "int" &_
    "" &_
    "" &_
    "" &_
    ""
    
    oXmlHTTP.send SOAPRequest    
    Response.Write oXmlHTTP.responseText

    Error Code

    http://schemas.xmlsoap.org/ws/2004/08/addressing/faulturn:uuid:df0bd4a9-5f2f-4e53-9cba-81382f767848urn:uuid:8ce61646-4cf9-424e-991G2-b914cfc3c0cahttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous2018-03-13T13:49:29Z2018-03-13T14:04:29Zsoap:ClientSystem.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: https://integrationservicewithoutmtomtest.eveelektronik.com.tr/IntegrationService.asmx?op=SendInvoice. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

    How I can connect to SOAP and can deliver message?

    Thanks.

  • Re: XML SOAP Message

    Mar 16, 2018 08:08 AM|Yuk Ding|LINK

    Hi rbtaskiran,

    Your SOAP return 200 status code while the page display 400 bad request. The code is executed well but the remote server return 400 error.

    Here is the sample code for SOAP:

    https://stackoverflow.com/questions/3905194/get-simple-response-from-soap-service-with-classic-asp

    https://support.microsoft.com/en-us/help/290591/how-to-submit-form-data-by-using-xmlhttp-or-serverxmlhttp-object

    This link provide the steps to fix 400 error:

    https://docs.microsoft.com/en-us/iis/troubleshoot/diagnosing-http-errors/troubleshooting-http-400-errors-in-iis

    So maybe you could

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.