S
Stephen Russell
I have my webservice and it's not receiving a PDF file from my ASP.NET
application.
Client found response content type of 'text/html; charset=utf-8', but
expected 'text/xml'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Client found response
content type of 'text/html; charset=utf-8', but expected 'text/xml'.
Source Error:
Line 275:
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.o
rg/ReceiveNewPDFs", RequestNamespace="http://tempuri.org/",
ResponseNamespace="http://tempuri.org/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 276: public void
ReceiveNewPDFs([System.Xml.Serialization.XmlElementAttribute(DataType="base6
4Binary")] System.Byte[] pdf, string fileName, string filePath) {
Line 277: this.Invoke("ReceiveNewPDFs", new object[] {
Line 278: pdf,
Line 279: fileName,
References\ParkerWS\Reference.cs Line: 277
application.
Client found response content type of 'text/html; charset=utf-8', but
expected 'text/xml'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Client found response
content type of 'text/html; charset=utf-8', but expected 'text/xml'.
Source Error:
Line 275:
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.o
rg/ReceiveNewPDFs", RequestNamespace="http://tempuri.org/",
ResponseNamespace="http://tempuri.org/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 276: public void
ReceiveNewPDFs([System.Xml.Serialization.XmlElementAttribute(DataType="base6
4Binary")] System.Byte[] pdf, string fileName, string filePath) {
Line 277: this.Invoke("ReceiveNewPDFs", new object[] {
Line 278: pdf,
Line 279: fileName,
References\ParkerWS\Reference.cs Line: 277