By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

XMLInclude error in Web Service

P: 15
I am building a generic web service to convert a .NET Crystal Report into a PDF document. I am trying to pass the Crystal Report through to the web service, but get the following error from the web service:

System.InvalidOperationException: The type xxx was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.

I am using the following to in my web service code behind file:

<WebMethod(Description:="Convert an aspx page (with a built in crystal report) to a PDF document that opens on screen")> _
Public Function ConvertPageToPDF _
(ByVal _db As String, _
ByVal _crystalreport As ReportDocument, _
ByVal _paramlist As String() _
) As Object


End Function

How can I pass the report through?
Apr 23 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.