Error. Problem invoking method 'GetJavascriptDefinition'.

4 views
Skip to first unread message

ch...@globalsoftware-inc.com

unread,
Dec 3, 2008, 3:46:19 PM12/3/08
to WebWidgetry Users
Viewing the source of the webpage shows me this:

<script type="text/javascript">

WW.Configuration.CacheBust = false;
WW.Configuration.EnableDebugging = false;
WW.Configuration.PrototypeVersion = "1.6.0.2";
WW.Configuration.DataServicesVersion = "2";
WW.Configuration.ExtVersion = "2.2";
WW.Configuration.EnableDataServices = true;
WW.Configuration.EnableAuthentication = false;
WW.Configuration.EnableTemplateCaching = false;
WW.Configuration.EnableExt = true;
WW.Configuration.EnableJSCompression = false;
WW.Configuration.EnableWindowing = true;
WW.Configuration.ApplicationMode = false;
WW.Configuration.IncludeBuilder = false;
WW.Configuration.AjaxLoadingImage = "/resources/images/
ani_loading.gif";

test = {};

test.qWeigh = {};

test.qWeigh = {
WSPath:"http://localhost:8181/Services/qWeighService.asmx",
WSDLPath:"http://localhost:8181/Services/qWeighService.asmx?WSDL",
ServiceName:"qWeigh"
};
WW.Application = {
WSPath:"http://localhost:8181/Services/qWeighService.asmx",
WSDLPath:"http://localhost:8181/Services/qWeighService.asmx?WSDL",
ServiceName:"qWeigh"
};
alert("Error. Problem invoking method 'GetJavascriptDefinition'.");
</script>

Ryan Gahl

unread,
Dec 3, 2008, 4:10:26 PM12/3/08
to webwidge...@googlegroups.com
Hi there! This is a really common error. We'll make this easier going forward for our users, but the issue here is that you have entered an incorrect value for the "ServiceName" property in the WW.Interface properties pane...

Notice the URL for the service: "http://localhost:8181/Services/qWeighService.asmx"

The service name is actually "qWeighService"... and you have simply "qWeigh".

In future versions of our tools we'll try to make this auto-detected instead of making you have to type it in. Sorry about that! Change that value and it should work for you.

Sincerely,
Ryan Gahl
--
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
WebWidgetry.com / MashupStudio.com
Future Home of the World's First Complete Web Platform
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl

ch...@globalsoftware-inc.com

unread,
Dec 3, 2008, 4:38:45 PM12/3/08
to WebWidgetry Users
that got it, thanks for the fast answer!

is it just me or why do I seem to need to manually delete the
generated file before re-generating?

I like what I see so far!

Ryan Gahl

unread,
Dec 3, 2008, 4:46:27 PM12/3/08
to webwidge...@googlegroups.com
What file are you saying you have to manually delete before re-generating?

And I'm glad to here you like what you see so far :)

-Ryan

ch...@globalsoftware-inc.com

unread,
Dec 4, 2008, 8:17:39 AM12/4/08
to WebWidgetry Users



Just came back in this morning and the WWinterface tool didnt seem to
load correctly... It asked to uninstall I chose no... I then quit out
of VS and re-ran VS open my solution went to tools and the second time
all was well... I'm now unable to reproduce the error...

Unfortunately at the moment I get a VS error dialog ATM when I try to
generate application on my WW.webservice
"No object information could be found in the data model. Is the
GetXMLDefinition method of the web service available?"


http://localhost:8181/Services/qWeighService.asmx/GetXMLDefinition

<?xml version="1.0" encoding="utf-8" ?>
- <ServiceCallResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://
tempuri.org/">
<Success>true</Success>
<LoggedIn>true</LoggedIn>
<Message />
- <SessionInfo>
<TimeoutInMilliseconds>1200000</TimeoutInMilliseconds>
</SessionInfo>
<Result xsi:type="xsd:string"><?xml version="1.0" encoding="utf-8" ?
> <model namespace="test.qWeigh" name="qWeigh"> <objects> <object
name="Shitbird" collectionName="ShitbirdCollection"> <initialSchema
pluralName="Shitbirds"> <table name="shitbird" tree="false"
displayName="shitbird" readOnly="false" searchable="false" />
<relations> </relations> <pks> <pk columnName="Id" /> </pks> <columns>
<column name="Stuff" displayName="Stuff" type="string" maxLength="10" /
> <column name="Id" displayName="Id" type="int32" editable="false" />
</columns> </initialSchema> </object> </objects> </model></Result>
</ServiceCallResult>

And yeah I got my schema a little borked ATM.

Ryan Gahl

unread,
Dec 4, 2008, 10:11:09 AM12/4/08
to webwidge...@googlegroups.com
The error you have now seems to indicate your back end web service is not running at the URL you have specified. The WW.DataServices service does have to be running in order to use WW.Interface.
Reply all
Reply to author
Forward
0 new messages