Hmm, {context.root} should have been replaced at compile
time by the context root.
Are you using mxmlc to compile this on the command line or
are you browsing to the .mxml file? If you are using the command line, are you
specifying a context root?
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Pruitt
Sent: Thursday, May 05, 2005 6:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] web services suddenly stopped working!!
I have a very
inexplicable problem and I have exhausted everything I know to check, twiddle,
verify, etc. Perhaps someone can think of something else. My
application has a set of webservices that have been working for months. I
have not changed anything related to the deployment environment. I have
not changed the WSDLs. I have not changed the web services that are
called. When my application starts up it makes a web service call for a
list of items. This particular web service call has been operational for
nearly a year. The only major change I have made is switching over to Flex
1.5, but I did this last week and all of my web services have working up until
now. So I do not see how 1.5 is a factor.
Like I stated, when
my application launches an initial window comes up and a web service call is
invoked. It looks like the call is never issued by Flex. I use a tcp
monitor and the request never shows. What I do get is 5 alerts. All
five are completely blank and the title is simply Error. If I click around
blindly at the bottom of the alerts I can find the Ok button and it
closes. But, I have no idea what, if any, message is supposed to be
viewable. I have 5 wsdls so I think the 5 alerts is not
coincidental. However, like I said, they have not changed. The way I
deploy has not changed. I have no idea what else I can look at or
check on.
The flashlog shows
no problems. Each WSDL has the following in the
flashlog:
5/5 18:22:29 [INFO]
WebService: Creating stub for http://localhost:8080/anywhere/wsdl/User.wsdl
5/5 18:22:29 [INFO] WSDL: Creating WSDL object for http://localhost:8080/anywhere/{context.root}/flashproxy?transport=wsdl&target=http%3A%2F%2Flocalhost%3A8080%2Fanywhere%2Fwsdl%2FUser%2Ewsdl
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/1999/XMLSchema
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/2000/10/XMLSchema
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/2001/XMLSchema
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://schemas.xmlsoap.org/soap/encoding/
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://xml.apache.org/xml-soap
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://rpc.xml.coldfusion
5/5 18:22:29 [INFO] WSDL: Successfully created WSDL object
5/5 18:22:29 [INFO] WebService: Created stub for http://localhost:8080/anywhere/{context.root}/flashproxy?transport=wsdl&target=http%3A%2F%2Flocalhost%3A8080%2Fanywhere%2Fwsdl%2FUser%2Ewsdl
5/5 18:22:29 [INFO] WSDL: Creating WSDL object for http://localhost:8080/anywhere/{context.root}/flashproxy?transport=wsdl&target=http%3A%2F%2Flocalhost%3A8080%2Fanywhere%2Fwsdl%2FUser%2Ewsdl
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/1999/XMLSchema
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/2000/10/XMLSchema
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/2001/XMLSchema
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://schemas.xmlsoap.org/soap/encoding/
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://xml.apache.org/xml-soap
5/5 18:22:29 [INFO] XMLSchema: Registering schema namespace: http://rpc.xml.coldfusion
5/5 18:22:29 [INFO] WSDL: Successfully created WSDL object
5/5 18:22:29 [INFO] WebService: Created stub for http://localhost:8080/anywhere/{context.root}/flashproxy?transport=wsdl&target=http%3A%2F%2Flocalhost%3A8080%2Fanywhere%2Fwsdl%2FUser%2Ewsdl
The Flex log doesn't
show any problems, nor does anything appear in the server
console.
The method for
calling the first service is below. Everyone of those trace stmts appears
in the Flash log, so the method is not blowing up.
public function fetchDSNList() :
Object
{
trace("UserWebServiceImpl - fetchDSNList()");
var request : XML = new XML();
var root : XMLNode = request.createElement(Constants.DSNLIST_REQUEST_TAG);
var dNode : XMLNode = request.createElement(Constants.LIST_TAG);
var tNode : XMLNode = request.createTextNode("Get List.");
dNode.appendChild(tNode);
root.appendChild(dNode);
request.appendChild(root);
trace("UserWebServiceImpl - calling: " + "FetchDSNList");
trace("UserWebServiceImpl - _userServices: " + _userServices);
_userServices.FetchDSNList.request = request;
var userCall = _userServices.FetchDSNList.send();
trace("UserWebServiceImpl - userCall: " + userCall);
userCall.resultHandler = mx.utils.Delegate.create(this, fetchDSNListResult);
userCall.faultHandler = mx.utils.Delegate.create(this, fetchDSNListFault);
trace("UserWebServiceImpl - creating return call");
userCall.returnCall = new Object();
trace("UserWebServiceImpl - returning return call");
return userCall.returnCall;
}
{
trace("UserWebServiceImpl - fetchDSNList()");
var request : XML = new XML();
var root : XMLNode = request.createElement(Constants.DSNLIST_REQUEST_TAG);
var dNode : XMLNode = request.createElement(Constants.LIST_TAG);
var tNode : XMLNode = request.createTextNode("Get List.");
dNode.appendChild(tNode);
root.appendChild(dNode);
request.appendChild(root);
trace("UserWebServiceImpl - calling: " + "FetchDSNList");
trace("UserWebServiceImpl - _userServices: " + _userServices);
_userServices.FetchDSNList.request = request;
var userCall = _userServices.FetchDSNList.send();
trace("UserWebServiceImpl - userCall: " + userCall);
userCall.resultHandler = mx.utils.Delegate.create(this, fetchDSNListResult);
userCall.faultHandler = mx.utils.Delegate.create(this, fetchDSNListFault);
trace("UserWebServiceImpl - creating return call");
userCall.returnCall = new Object();
trace("UserWebServiceImpl - returning return call");
return userCall.returnCall;
}
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.