# Can't access web service in Tomcat

**URL:** https://forum.kirupa.com/t/cant-access-web-service-in-tomcat/191961
**Category:** flash
**Created:** [June 24, 2006, 1:44pm UTC](https://forum.kirupa.com/t/cant-access-web-service-in-tomcat/191961 "2006-06-24T13:44:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)
#### Post date: [June 24, 2006, 1:44pm UTC](https://forum.kirupa.com/t/cant-access-web-service-in-tomcat/191961/1 "2006-06-24T13:44:02Z")

</div>

Oi! I posed this in the Client-Side forum, but couldn’t get an answer and was hoping maybe some people who don’t visit that forum could help me…

I am having a bit of trouble getting webservices to work for me here in flash… basically, I have set up Axis2 in Tomcat to “hold”, if you will, my webservices.

There is a webservice preloaded on there called version, convieniently located at: [http://localhost:8080/axis2/services/version?wsdl](http://localhost:8080/axis2/services/version?wsdl), and it has 1 available operation known as “getVersion”.

Right now, I am just trying to use this in Flash. Basically connect to webservice, ‘getVersion’ and print it out… here is my code…

```auto

var sWSDLURL:String = "http://localhost:8080/axis2/services/version?wsdl";
    var wsAffiliateInfo:WebService = new WebService(sWSDLURL);
    
    var pcResponse: PendingCall = wsAffiliateInfo.getVersion(); // space here to remove smiley
    
    pcResponse.onResult = function(affiliateInfo):Void
    {
        trace(affiliateInfo);
        //affiliate = affiliateInfo;
    };

```

Obviously I have set this up for a webservice I intend to use later, but I cannot get anything traced besides "Error opening URL “[http://localhost:8080/axis2/services/version](http://localhost:8080/axis2/services/version)”.

I have downloaded a web services analyzer, and from it I know that my web service is running / working. Which means my Flash is messed up… if anyone could give me a kick in the right direction, it would be a great help… thanks!
