Does Xamarin not support ASMX service with SOAP 1.2?

phantonymphantonym Member ✭✭
edited February 2018 in General

I have problems with using an ASMX web service that supports SOAP version 1.2.

Specifically, the action parameter is not added to Content-Type of HTTP header in my requests.

The docs state:

The Xamarin platform supports standard SOAP 1.1 implementations over HTTP

I tried to write my own SoapHttpClientProtocol derived class, and override the ContentType, but it didn't work.

I have to parse the SOAP envelope myself, which will require extra work in writing and maintaining. When all that is missing is one action parameter.

Answers

  • DarshanJSDarshanJS USMember ✭✭✭✭

    @phantonym said:
    I have problems with using an ASMX web service that supports SOAP version 1.2.

    Specifically, the action parameter is not added to Content-Type of HTTP header in my requests.

    The docs state:

    The Xamarin platform supports standard SOAP 1.1 implementations over HTTP

    I tried to write my own SoapHttpClientProtocol derived class, and override the ContentType, but it didn't work.

    I have to parse the SOAP envelope myself, which will require extra work in writing and maintaining. When all that is missing is one action parameter.

    Even i am using ASMX web service in JSON format you can refer below link for reference
    https://bsubramanyamraju.blogspot.in/2017/04/xamarinforms-consuming-rest-webserivce_17.html

  • phantonymphantonym Member ✭✭
    edited March 2018

    I am only writing the client, and don't have a choice in format.

Sign In or Register to comment.