locked
Consuming ASMX from WCF client -> Server did not recognize the value of HTTP Header SOAPAction RRS feed

  • Question

  • Hi,

    I have to consume an ASMX WS, setting up the channel programmatically, i do:

        lioBind = new BasicHttpBinding();    

    lioEndPoint = new EndpointAddress("http://.../test.asmx");    

    ChannelFactory<IFoo> lioChannelFactory = new ChannelFactory<IFoo>(lioBind, lioEndPoint);    

    IFoo lioDc = lioChannelFactory.CreateChannel();   

    IFoo.SomeMethod(10);   

    (lioDc as IDisposable).Dispose();


    ... The problem is that the call does not respect the namespace of the interface, it adds "/IFoo" to the namespace, so the SoapAction is <correctNameSpace>/IFoo/SomeMethod 

    of course i get Server did not recognize the value of HTTP Header SOAPAction.

    any ways to modify it without relaying in strongly typed proxies?

    thxs?


    dfirka


    • Edited by dfirka Tuesday, February 2, 2016 5:23 PM
    Tuesday, February 2, 2016 5:22 PM