Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6784519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:00:18+00:00 2026-05-26T17:00:18+00:00

I have a WCF Service running SOAP and allowing Flex / Flash to connect

  • 0

I have a WCF Service running SOAP and allowing Flex / Flash to connect to it using basicHttpBinding by using the ‘Data’ \ ‘Import Web Service’ option. Unfortunately when I consume and invoke this service within Flex it throws the following error…

Error: Cannot find definition for type 
'http://schemas.datacontract.org/2004/07/System.Drawing::Size' at 
mx.rpc.xml::XMLDecoder/decodeType()

…when using the following code…

// This will return an array of presentations
var service:PresentationAuthoring = new PresentationAuthoring();
var token:AsyncToken = service.getAllPresentationByClientId(
    mClientId , mUserId , mWCFServiceHash );
token.addEventListener( ResultEvent.RESULT, onResult );
token.addEventListener( FaultEvent.FAULT, onFault );

This method returns an array of Presentation objects that are retreived by the service. At the moment there are no DataContracts and I’m allowing the POCO Presentation object to be serialised and punted out by the service that works fine. However, this class has a readonly property of the type System.Drawing.Size that derived from appropriate height and width properties. Looking through the generated code, it doesn’t register a ‘Size’ class in the base import schema although it still seems to create a Size class.

An alternative has been to stop the derived property from being serialised using the [XmlIgnore] but that has not worked.

Ideally, I need a way of allowing my Flex application to communicate with my WCF service but it seems to choke on the System.Drawing.Size type and while I could change this, there are other framework types such as Point, Rectangle, etc, etc. that are utilised within the project. Has anyone else experienced this problem or can suggest an alternative approach to take?

[Please note that the WCF Service functions correctly when a .NET application consumes it.]

Kind regards and thanks in advance – S

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:00:18+00:00Added an answer on May 26, 2026 at 5:00 pm

    Well the answer was to box the Size struct with a custom class that worked perfectly although it is somewhat irksome I might have to do this with (potentially) other native drawing structs. Ho hum.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a WCF SOAP (C#) based web service running in my local
I have a WCF service running on Windows 2008 R2 64 bit, using IIS
I have a self-hosted WCF service running as a windows service using the WebAPI
I have a self-hosted WCF web service running, and an Android client application. I
I have a WCF web service that I am hosting in IIS (actually running
I have a wcf self-hosted service running as windows service, serving multiple win/web clients
I have a WCF service running on my machine, which get lauched while I
I have a WCF service running inside a windows service on a remote machine.
I have a WCF service running, I added a reference to the service by
I have a netTcp WCF service running in a windows service on a remote

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.