• 24-04-2017, 16:11:05
    #1
    Selamlar,

    Soap ile veri çekmek istiyorum. Servis kullanıcı adı ve şifresi ile bağlanıyorum.

    __getFunctions ile kullanabileceğim fonksiyonları listeleyebiliyorum. Ancak kullanacağım fonksiyonu yazdırdığımda aşağıdaki hatayı alıyorum. Sorunu nasıl çözebilirim?


    Cannot process the message because the content type 'application/soap+xml; charset=utf-8; action="http://tempuri.org/IHotelService/HotelList"' was not the expected type 'text/xml; charset=utf-8'.
  • 25-04-2017, 01:03:42
    #2
    Header gönderirken content-type'ını application/soap+xml vermişsiniz, ama karşı tarafta beklenen header text/xml.

    Header'da Content-Type=text/xml olarak düzenleyin sorununuz çözülecektir.

    Bol şans.