Skip to content

C# and SOAP

Robert

Asked Mar 10, 2006, 10:56 PM EST1 answer
Share
LinkedInX
Hi there, I new to C# and i have a question regarding C# and SOAP. On the Apache server are the methods that need to be called, they were written in java, i need to write the clientside in C#, which i have done, but when i run the application, a receive the error "Client found response content type of 'text/html;charset=utf-8', but expected 'text/xml'. The request failed with the error message:" Please does anyone know how to sort this out. Thanks Robert

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    If you are writing the client side requests using the WebRequest object (or one derived from it) you need to specify the Content Type property to be text/xml
    0