Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

No support for SOAP 1.2, how to make calls to SOAP 1.2 service?

$
0
0

I am trying to make calls to a web service that supports SOAP 1.2. But my requests fail because the action parameter is not added in Content-Type as required:

Content-Type: application/soap+xml; charset=utf-8; action="link-to-action"

The docs state:

The Xamarin platform supports standard SOAP 1.1 implementations over HTTP

Does Xamarin not support SOAP version 1.2? I know ASP.NET Web Forms supports it, and the same code can be run there with success. How can I make calls to SOAP 1.2 service?

I tried to override the header with this, but it doesn't change.

[System.Web.Services.WebServiceBindingAttribute(Name="TheService", Namespace="link-to-ns")]
public partial class TheService : SoapHttpClientProtocol
{
    protected override WebRequest GetWebRequest(Uri uri)
    {
        var request = base.GetWebRequest(uri);
        request.ContentType = "application/soap+xml; charset=utf-8; action=\"link-to-action\"";
        request.Headers.Add("Blah", "Blah");
        return request;
    }

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>