You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Fadly <fa...@gmx.net> on 2002/10/24 17:13:50 UTC

re: bug at wsdl2java creating ServiceLocation-Address ? beta 3

Hi guys,

I have the same problem with you.
I've created a simple wsdl file, generate the java classes
using wsdl2java, compile them, create the
deploy.wsdd and deploy it.
All classes already put in
$TOMCAT_HOME/webapps/axis/WEB-INF/classes

webservice deployed properly,  since i can see
"tutorial" webservice deployed from
http://192.168.24.105:8080/axis/services/MyService?wsdl

But, i failed when invoking the service.
service not found exception, even though it is deployed.

These are snippet code

i) for service.wsdl
........
<service name="tutorial">
   <port name="TutorialPort" binding="tns:tutorialSoap">
     <soap:address
location="http://localhost:8080/axis/servlet/AxisServlet"/>
    </port>
..........

ii). for deployment descriptor
<deployment name="testEcho"
 xmlns="http://xml.apache.org/axis/wsdd/"
 xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
     <service name="tutorial" provider="java:RPC">
        <parameter name="className" value="MyService"/>
        <parameter name="allowedMethods" value="helloWorld"/>
        <parameter name="wsdlServicePort" value="TutorialPort"/>
    </service>
 </deployment>

iii). for webservice
public class MyService
{
    public String
        helloWorld (String arg)
    {
        return "Hello " + arg;
  ......

I wonder my deployment descriptor not correct ?

I really need your advice guys ..

thank you very much

--fadly


Configuring Axis 1.0

Posted by Fadly <fa...@gmx.net>.
Hi all,

Sorry for my previous posting.

> I've created a simple wsdl file, generate the java classes
> using wsdl2java, compile them, create the
> deploy.wsdd and deploy it.
> All classes already put in
> $TOMCAT_HOME/webapps/axis/WEB-INF/classes
>
> webservice deployed properly,  since i can see
> "tutorial" webservice deployed from
> http://192.168.24.105:8080/axis/services/MyService?wsdl
>
> But, i failed when invoking the service.
> service not found exception, even though it is deployed.
.........

I already sorted out my problem with invoking
the webservice.

I defined the "location" attribute of "soap:addres" element
with the value
"htp://192.168.24.105:8080/axis/servlet/Axis/Servlet"
It should be the location of the service
"http://192.168.24.105:8080/axis/services/<service_name>
.....

Also, for configuration problems, I just installed necessary
jars with the version listed in the "dependencies.html" in the download site
for Axis 1.0
Just notice the version of the ext app carefully.

Once again, sorry for posting silly questions

--fadly