Expand my Community achievements bar.

web service url redirecting problem

Avatar

Level 2

I am working on a form developed by LC Designer that will call a web service from our web server.

In the WSDL, the soap address location points to www.domain.com/webservice1,

however our web server will perform load balance by directing all www.domain.com to a new url

either www1.domain.com or www2.domain.com.

The result is that nothing is returned after executing the webservice call, I can't catch any error

after xfa.connectionSet.WebServiceDC.execute(false); just nothing returns after the call.

I suppose it is the problem that the url has been redirected to a different one.

However if the soap address location points directly to either www1 or www2, the call returns result alright.

Is there way or script that I can handle by redirecting a web service to a different URL like that in Adobe Flex?

That is what I found from the web for Adobe Flex :

...
public function onLoginResult(event:ResultEvent):void {

//Extract the new service endpoint from the login result. 
var newServiceURL = event.result.serverUrl;

// Redirect all service operations to the URL received in the login result. 
    serviceName.endpointURI=newServiceURL;
    
}
...

Best Rgds.

0 Replies