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 "Kumar, Vinay 2" <Vi...@barco.com> on 2002/04/01 07:55:11 UTC

RE: Urgent: Deploy problem: "Axis Engine could not find target se rvice"

hello Pontus,

regarding the endpoint of the non jws service, yes it is :
 http://localhost:8080/MyProject/services/MyServiceNJ
but you can also make use of AxisServlet for establishing a call from your
client
 http://localhost:8080/MyProject/servlet/AxisServlet

thanks for your time

VINK

-----Original Message-----
From: Pontus Amberg [mailto:pontus.amberg-local@rocketscience.nu]
Sent: Thursday, March 28, 2002 6:34 PM
To: axis-user@xml.apache.org
Subject: Re: Urgent: Deploy problem: "Axis Engine could not find target
service"


I'm not sure but shouldn't the non jws endpoint be
http://localhost:8080/MyProject/services/MyServiceNJ ?

/Pontus

----- Original Message ----- 
From: "Kumar, Vinay 2" <Vi...@barco.com>
To: "'AXIS-USER'" <ax...@xml.apache.org>
Sent: Tuesday, March 12, 2002 12:29 PM
Subject: Urgent: Deploy problem: "Axis Engine could not find target service"


> hello,
> 
> i've created a WebService, initially as JWS
> which is working perfectly
> 
> my directory structure:
> 
> MyProject\MyService.jws [For JWS Service]
> MyProject\MyService.wsdd [For NONJWS Service]
> MyProject\WEB-INF\classes\MyService.class [For NONJWS Service]
> MyProject\WEB-INF\lib\ [All the libs]
> 
> & now i'm trying to deploy that service through WSDD, shown below
>
############################################################################
> ###############################
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>  <service name="MyServiceNJ" provider="java:RPC">
>   <parameter name="className" value="MyService"/>
>   <parameter name="allowedMethods" value="*"/>
>   <parameter name="scope" value="session"/>
>  </service>
> </deployment>
>
############################################################################
> ###############################
> Command used to Deploy:
> java org.apache.axis.client.AdminClient deploy.wsdd
> says, Deployed Successfully
> but unable to see its wsdl, ???
>
############################################################################
> ###############################
> mCall    = (org.apache.axis.client.Call) mService.createCall();
> if(JWS_Service)
> mCall.setTargetEndpointAddress(new
> java.net.URL("http://localhost:8080/MyProject/MyService.jws"));
> else
> {
> mCall.setTargetEndpointAddress(new
> java.net.URL("http://localhost:8080/MyProject/servlet/AxisServlet"));
> mCall.setProperty(mCall.NAMESPACE, "MyServiceNJ");
> }
> mCall.setMaintainSession(true);
> status = (java.lang.Boolean)mCall.invoke("StartFunction", new Object[]
> {"Parameters"});
>
############################################################################
> ###############################
> for NONJWS Service, it raises an exception that "Axis Engine could not
find
> a target service"
> 
> pl. suggest..
> 
> VINK
> 
> 

How do I invoke a method that takes no parameters ?

Posted by Pramod Nair <pr...@pun.cmc.net.in>.
Pleeeeaaase !!
I am writing a client for a web service. Can somebody tell me how to
configure a Call object for the following message

      <message name="NewGameRequest" />
-    <message name="NewGameResponse">
          <part name="return" type="xs:int" />
     </message>

    I just want to invoke the NewGame() method on the remote server. The
method takes no parameters. How do I do THAT ?

    regards,
    Pramod