Here's how i've been calling my web services.... right or wrong...

private var ws:WebService = new WebService();

// handle any error for this web service instance
ws.addEventListener("fault", faultHandler); 

ws.loadWSDL("http://mywebsite.com/service.asmx?WSDL);

// MyFunction just takes one string parameter and returns a string
ws.MyFunction.addEventListener("result", serviceResult);

// actually calls the function...
ws.MyFunction("Hello Web Service");

private function serviceResult(event:ResultEvent):void 
{
    // shows the string return from web services, 
    // cast to whatever variable type you need to.
    Alert.show(event.result.toString());
}

public function faultHandler(event:FaultEvent):void 
{
    Alert.show(event.toString(), "WebService Error");
{



--- In [email protected], "Brian Holmes" <[EMAIL PROTECTED]> wrote:
>
> Does anyone have any examples they'd be willing to share or point 
me to
> of connectin to .NET webservices with  or without soap headers,
> preferably both.
> It'll be greatly appreciated.
>  
> Thanks,
>  
> b..
> 
> 
> ***
> The information in this e-mail is confidential and intended solely 
for the individual or entity to whom it is addressed.  If you have 
received this e-mail in error please notify the sender by return e-
mail delete this e-mail and refrain from any disclosure or action 
based on the information.
> ***
>


Reply via email to