Flex :: IsEmpty Error When Calling Parameterless WCF Method?

Apr 12, 2010

I have a WCF web service (using basicHTTPBinding) which I am connecting to from a Flex application. I am using the FlexBuilder code generation to make a proxy for the web service.This has been working great until I tried to call a method on the web service that has no parameters. Here is it's interface declaration:

[OperationContract]
DateTime GetCurrentDateTime();

I then started getting HTTP 500 code responses from the service.Inspecting the HTTP response with Fiddler shows that WCF is reporting the following error:

Error in deserializing body of request message for operation 'GetCurrentDateTime'.
The OperationFormatter could not deserialize any information from the Message because the Message is empty (IsEmpty = true)

So it seems that there is an incompatability between Flex and WCF whan calling methods that have no paramaters - Flex doesn't include anything in the message but WCF is expecting something to be there.Is there any way to configure either Flex or WCF to work around this or am I going to have to include dummy parameters in such operation contracts?

View 1 Replies


Similar Posts:


Java :: Flex - Calling A New Method From Mxml Produces "cannot Invoke Method" Error

May 24, 2011

[Code].....

getUser was already in UserService.java. I just created getUser2 and it's identical to getUser. When I try to call getUser2, i get the "Cannot invoke method" error. question: Do I need to specify getUser2 in some other file? like in some configuration file? if so, which one and how do I do it.

View 1 Replies

Flash - TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference While Calling Swf From Flex 3

Jul 29, 2011

I have called this flash code in Flex using SWF loader . I got the following Error. Here I have attached flash coding for header_text_fla Kindly do the needful.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at header_text_fla::MainTimeline/loaderComplete()
var myEvent:Event;
var myParams:LoaderInfo;

[code]....

View 3 Replies

Flash :: Cross-domain Error - Uncaught Exception: Error Calling Method On NPObject ?

Oct 28, 2009

I am trying to emulate (in a limited way) the behavior of JavaScript's XMLHttpRequest object through Flash/ActionScript 3, in order to overcome the same-domain limitation. But I'm discovering that ActionScript has its own limitations in that regard. I admit that I might be mistaken, but from what I understand it is theoretically still possible to do this sort of cross-domain scripting using ActionScript, so long as you get all the permissions right. And that's where I'm running into trouble.

First, I borrowed some open-source code for a class called AjaxRequest, which I have saved as /ajax/AjaxRequest.as. I then created a Flash file called /jsajax.fla which exports to the final SWF file, /jsajax.swf. Now, here's the ActionScript code that comprises the first and only frame of the Flash file:

import ajax.AjaxRequest;
Security.allowDomain("domainone.com");
Security.allowDomain("domaintwo.com");[code]....

This is the only case I could not get working, and this is the case I need to get working. The first two were really just test scenarios to see if the script was working at all. When I try to run my jsAjax function here, I wind up with an error that shows up twice in Firebug:

uncaught exception: Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.].
uncaught exception: Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.].

View 1 Replies

Jquery :: Uncaught Error: Error Calling Method On NPObject?

Jan 20, 2012

I have a flash video on my page as follows:

<script type="text/javascript">
var flashvars = {
};

[code].....

View 1 Replies

Actionscript 3 :: Error Calling Method On NPObject?

Sep 26, 2010

It seems not to be working:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="600" height="300" id="externalInterface" align="middle">

[Code].....

View 2 Replies

Javascript :: Error Calling Method On NPObject

Sep 23, 2011

Making a flash video streaming web-app using Actionscript 3's external Api. I am at a very rudimentary phase of the project where we're just experimenting with external interface. Right now i just have a flash object and 3 buttons each to play pause and load a video. The only button that is currently set up to do anything is the load button. My swf and my html file sit on the same file system, and my video files sit on another server with traffic being redirected through a media server.When i press the load button, which should just give it the path of the video file on it's server. Instead it throws an error that reads "Error: Error Calling method on NPObject". [code]I've read in a lot of places that this is an issue with security, but both my swf and html are in the same folder on my local machine. Only the files come from outside, and in any case I think i've set the security settings correctly when i declare my flash player in the object tag, but maybe i'm missing something there.if you can't solve my question directly can someone please explain what "error calling method on NPObject" means? I'm sure its specific to flash-js communications because i've never seen it before and that's what i have gathered from my googling.

View 2 Replies

ActionScript 3.0 :: Error When Calling AddChild Method?

Apr 7, 2011

I created a new class as DraggableObject in Flash CS5 with the following definition:

package {
import flash.display.MovieClip;
public class DraggableObject extends MovieClip{
public function DraggableObject(){

[Code].....

Before running the code, I had a simple rectangle object converted to a movie clip and exported it to actionscript with the class of 'DraggableObject'. I just had it in library (i. e. no other instance in the stage). What I wanted is to create an instant of it at run-time ( 'draggableObject' ) and have it added to the display list of the stage, throgh its method 'draggableObject.addToStage()'.

And I don't have an idea as to what 'null object' referes to here. Since I created an instance in the line "var draggableObjectraggableObject = new DraggableObject()", it cann not be null....? When I commented out the line 'stage.addChild( this );' in the class definition (line9) it works with the trace statement output.

View 6 Replies

Javascript :: Google Visualization API - Error Calling Method On NPObject?

Apr 18, 2011

I've been playing with the visualization API aka dynamic charts and I've found that the example at [URL] does not really work on localhost. That is, Error calling method on NPObject is thrown when a event is clicked (points A and B in the example aforementioned). I suppose that is a security issue on the server end (Google's flash base).Since that jsFiddle code is hosted on a domain, the note at the very bottom of the documentation should not apply:Because of Flash security settings, this (and all Flash-based visualizations) might not work correctly when accessed from a file location in the browser [URL] rather than from a web server URL [URL] .

View 2 Replies

ActionScript 3.0 :: Calling Method From Superclass But Returned Error #1009

Oct 2, 2009

TypeError: Error #1009: Cannot access a property or method of a null object reference. the main idea is calling a method from subclass that inherit to a superclass.. here is the code

[CODE]...

View 3 Replies

Flex :: Calling A Static Method Of A Class With Only An Instance?

Jul 27, 2009

If all I have is an instance of an object, can I call a static method of its class? For fun, let's say I don't know what the name of the class is, only the name of the static method.

View 3 Replies

Flex :: Datagrid - Calling An External Method From A Component?

Aug 16, 2009

I created an application to show a datagrid with a custom column in Flex 3. How can I access the method loadDetails in this code?:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
public function loadDetails(id:String) : void { // Some code here

[Code].....

When I tried to run this code Flex throws an error. It says that loadDetails is not defined. I suppose that error is because of scope.

View 1 Replies

Actionscript 3 :: Calling A Method, Which Is Defined In Another Class, From Main Class Gives Error 1120?

Aug 16, 2010

I have two classes. The Main class calls a function, which is defined in a Second class.I'm getting the following error:Error 1120: Access of undefined property myFunctionBasically, I am creating buttons in the Main class that will add a corresponding Child to an Object in the Second class (if you click one button, child x1 will be added, if you click another button, child x2 will be added, and so forth).Here's the relevant code for the Main.as file:

package
{
import flash.display.MovieClip;

[code].....

View 3 Replies

Javascript :: Overcome "Error Calling Method On NPObject" And Play() A SWF?

Apr 9, 2011

I am working on a quiz system. Normally it uses jpeg images with each question. But a few of the quizzes instead feature animated .SWF files. I want to use jquery swfobject to call the play() method, once the user has clicked on an answer.

My solution works fine locally, but when I try to run it online, it throws the "Error calling method on NPObject!" message.

The quiz HTML is located on www.somedomain.com and the SWFs are on images.somedomain.com. So, I'm guessing this is a cross-domain thing.

Trouble for me is, I don't know anything about Flash... how to edit SWF files, anything about Flash attributes, or the like.

Here's an example of my code:

<div class="photos">
<object data="http://images.somedomain.com/q1tattooquiz.swf" type="application/x-shockwave-flash" width="600" height="350">
<param name="movie" value="http://images.somedomain.com/q1tattooquiz.swf">

[Code].....

View 4 Replies

ActionScript 3.0 :: "Error Calling Method On NPObject" On Second Function Call

Mar 17, 2011

So I have an AS3 audio player which receives commands from Javascript.I have a function in the flash file called 'set_song', which sets the URL for the song to be played. The first time I call it using something like

Code:
document.getElementById('audio_player').set_song(response.url);

(response.url being the URL response from an AJAX call) it works fine and all the other functions on the player work fine but if I then run the same function a second time I get the "Error calling method on NPObject!" error in Firebug. I googled this and it said it was something to do with permissions but;

The site is at dftba[dot]com
The flash file is at dftba[dot]com
The javascript files are at [1/4][dot]cdns[dot]dftba[dot]com
The audio files are at vox[dot]dftba[dot]com

And I have

Code:
Security.allowDomain("dftba[dot]com");
Security.allowDomain("www[dot]dftba[dot]com");
Security.allowDomain("new[dot]dftba[dot]com");

[code]...

View 0 Replies

Javascript :: "Error Calling Method On NPObject!" In Uploadify?

Mar 15, 2011

I'm using Uploadify to upload file in my CMS. Everything works fine until recently. I got an error Error calling method on NPObject on this line

document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, checkComplete);
on this part

[code]....

View 1 Replies

Flex :: Error In Using "removechild" Error #1009 : Cannot Access A Property Or Method Of A Null Object Reference?

Mar 11, 2010

Below is my code, and the question is explained after it.

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:cal="cal.*"
layout="absolute"[code]...

This is exact error message I get: TypeError: Error #1009: Cannot access a property or method of a null object reference.

View 2 Replies

Actionscript 3 :: Error When Calling A Function From Main In Flex?

Oct 12, 2011

i am trying to call a function which is defined in main.mxml

public function btnAcceptCall_clickHandler(event:MouseEvent)

[Code]...

View 3 Replies

ActionScript 2.0 :: [OOP] Calling A Method In A Method?

Jul 24, 2006

Code:
class A{
function A(){
trace("construct");
}
private function moo(){

[code]....

yet this doesn't, I'd expect it to: construct, start mooing, moo!, moo!, moo!, ...yet the moo! moo! moo! doesn't appear, as if moo() never gets called it all.

View 1 Replies

Javascript :: Flex - Flash Callback Method Produces Error UNLESS Alert() First?

Jan 11, 2010

I have a flex app and I am adding a callback method like this:

private function init():void
{
ExternalInterface.addCallback( "playVideo", playVideo );
}

[code].....

However if I uncomment and run the alert first. I get no error and it works perfectly.My first thought was that the alert was buying time until the script could execute, so i tried to run the script inside a setTimeout() but did not work.

View 1 Replies

Flex :: Error - Cannot Access A Property Or Method Of A Null Object Reference

Aug 8, 2010

I am building a AS3 only project and got runtime error that said "Cannot access a property or method of a null object reference."

Here is my code:

main.as
public class videoMain extends Sprite{
private var videoPlayer:Player;
public function videoMain (){

[code]....

View 1 Replies

ActionScript 3.0 :: 1180: Call To A Possibly Undefined Method Error For DEFINED Method

Nov 19, 2010

I am getting this error: 1180: Call to a possibly undefined method startWorld.but the method startWorld is defined as you can see in attachment.

View 4 Replies

Actionscript 3.0 :: Make A Public Static Method Call Another Method, But Flash Throws Error 1180?

Feb 19, 2010

I'm tryng to make a public static method call another method, but Flash throws error 1180, sayng that the method called by the static method is undefined.

Code: Select allpackage
{
import flash.display.MovieClip;[code]....

View 2 Replies

Flex :: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Dec 2, 2009

I changed my html template to include flashvars like so:

if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed

[code]...

And I am trying to access them in my app like so:private static var _PID:uint = Application.application.parameters.product_id;

But I am getting this error:

Error #1009: Cannot access a property or method of a null object reference.

View 2 Replies

Actionscript 3 :: Flex Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Apr 11, 2012

I am trying to use a button in my init() method.

<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="Test"
creationComplete="init()">

Now when I try to do something with my button I get the error mentioned. I am assuming maybe it has not loaded yet?

[Code]....

View 1 Replies

Flex :: TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Nov 26, 2009

I have a flex application which use DragManager.When I'm loading this application into flash application and trying to use drag'n'drop functions - I get an error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.managers::CursorManagerImpl/showCurrentCursor()
at mx.managers::CursorManagerImpl/setCursor()
at mx.managers.dragClasses::DragProxy/showFeedback()
at mx.managers.dragClasses::DragProxy/mouseMoveHandler()

But, when I simply run a flex application (not loding it into a flash one) everything works properly.

View 1 Replies

Actionscript 3 :: Error #2032: Stream Error - While Calling Webservices Through An Ssl Connection

Dec 13, 2011

I'm trying to access a webservice with an SSL connection from an AIR application, I can access the webservice and retrieve the data without SSL, but when I try and access it through it I end up getting the 2032 Stream Error. As if what I was attempting to access wasn't available (which in fact it is, since I can easilly access it through my browsers).

[Code]...

View 1 Replies

ActionScript 3.0 :: Load A SWF And Calling A Method In It?

Nov 1, 2011

I have a preloader which loads a swf file, and once it's fully loaded it, it calls a function in it.

However, it doesn't seem to work. I get an error basically saying the function doesn't exist. [code]...

View 15 Replies

ActionScript 3.0 :: Calling Method From Another Class

Jan 10, 2011

I have two classes, in one (the Start class) I want to run a function I created in another (the Brown class). I commented in Start where I want to call the "addBrownListen" method. I tried doing it with the line:
Brown.addBrownListen();
But that didnt work.

Here are the two classes:
package {
import flash.display.MovieClip;
import flash.events.Event;
public class Brown extends Rebounders {
[Code] ......

View 2 Replies

ActionScript 3.0 :: Calling Method Of Indirect Predecessor?

Apr 4, 2011

Suppose that I have  the following inheritance scheme: Foo -> Base1 -> Base0 (i.e. Foo is indirect successor of Base0). Base0" that has method "bar()" and class "Base1" overrides method "bar()". Now when overriding method bar in Foo I want to call method bar() that belongs to the Base0 class.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved