473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

XMLInclude error in Web Service

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
0 884

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

Similar topics

1
by: yuriy_zubarev | last post by:
Greetings, Simple scenario: I have objects that need to be persisted in XML. The declaration is as follows: public class Zoo { protected Animal animals;
0
by: Benne Smith | last post by:
I get this error when i test my webservice; System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: The type RMAWS.Symptom was...
1
by: R.A. | last post by:
Hi I have a web service that returns a custom class in one of the service methods. public class MyClass { public string Name; public string Street; }
0
by: Matthias De Ridder | last post by:
Hello, I have a Web service method who's returning an ArrayList of a custom class Tender: public ArrayList GetTenders(string user, string password){ // code}
0
by: urban011 | last post by:
I need to use XmlInclude to generate a description in the wsdl for a subtype for a given web method. I alos need to include the SoapRpcMethod directive and the use=literal attribute in order to...
1
by: deja | last post by:
hi, I'm using ParameterStyle.Bare and have a Request Object as an in parameter for my web method. The Request object holds a BaseObject. I have many different WebServices all using this single...
1
by: deja | last post by:
hi, i have 2 web services each with some of the same types but also each with their own xmlincludes to include types specific to them. I want to share the types that are common so I used wsdl...
0
by: kamran65536 | last post by:
Hi, I've implemented a SchemaImporterExtension so I can ignore or change the behaviour of the XmlSerializer used by wsdl.exe. I successfully did that :) but the problem is the types which has...
1
by: kikisan | last post by:
I am developing a windows service which utilizes the following classes: interface IPersistable; abstract class PersistableObject : IPersistable;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.