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 chekban <ch...@yahoo.com> on 2007/05/31 05:36:54 UTC

Problem to invoke AXIS web service

Hi,

I'm having difficulty in invoking  AXIS web service.
in the server-config.wsdd
<deployment ... >
 <service name="GenevaInterfaceService" style="message">
    <parameter name="className"
value="........genevainterface.GenevaInterfaceService" />
    <parameter name="allowedMethods" value="doProcess" />
  </service>
.....
the doProcess is the main function to invoke the web service

under GenevaInterfaceService.java
public Element[] doProcess(Element [] elems)
    {
......
      } 

in my cllient program xxx.java there are functions like 
call.setTargetEndpointAddress("responseurl...")
call.invoke() 
which i'll call using
>java xxx ...  in the command prompt


must i run this
> java org.apache.axis.client.AdminClient -l
> http://localhost:8080/axis/services/AdminService server-config.wsdd

to invoke the web service ? or i just need to run
>java xxx ...  in the command prompt

pls help , thanks !

i'm getting this kind of error after running java xxx...


AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode:
 faultString: (404)/servlet/GenevaSimulatorServlet
 faultActor:
 faultNode:
 faultDetail:
        {}string: return code:  404
&lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.0.30 - Error
report&lt;/title&gt;&lt;style&gt;&lt;!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color :
#525D76;}--&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status
404 - /servlet/GenevaSimulatorServlet&lt;/h1&gt;&lt;HR size=&quot;1&quot;
noshade=&quot;noshade&quot;&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt; Status
report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt;
&lt;u&gt;/servlet/GenevaSimulatorServlet&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt;
&lt;u&gt;The requested resource (/servlet/GenevaSimulatorServlet) is not
available.&lt;/u&gt;&lt;/p&gt;&lt;HR size=&quot;1&quot;
noshade=&quot;noshade&quot;&gt;&lt;h3&gt;Apache
Tomcat/5.0.30&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;

(404)/servlet/GenevaSimulatorServlet
        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:1672)
        at
com.geneva.genevainterface.genevaresponder.GenevaInterfaceResponder.processFile(GenevaInterfaceResponder.java:540)
        at
com.geneva.genevainterface.genevaresponder.GenevaInterfaceResponder.processAllFiles(GenevaInterfaceResponder.java:166)
        at
com.geneva.genevainterface.genevaresponder.GenevaInterfaceResponder.main(GenevaInterfaceResponder.java:89)
2007-05-31 05:34:35,376 ERROR [main]
genevaresponder.GenevaInterfaceResponder (GenevaInterfaceResponder.java:670)
- (404)/servlet/GenevaSimulatorServlet:
- (404)/servlet/GenevaSimulatorServlet:



-- 
View this message in context: http://www.nabble.com/Problem-to-invoke-AXIS-web-service-tf3844316.html#a10886883
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Forcing the unpacking of aar files

Posted by Raghu Upadhyayula <ru...@responsys.com>.
Hi Desmond,

	You can just put the wsdl file & services.xml in your aar file
and put all the class files in your WEB-INF/classes directory.

Thanks
Raghu

-----Original Message-----
From: Desmond Whewell (CV/ETL) [mailto:desmond.whewell@ericsson.com] 
Sent: Thursday, May 31, 2007 5:57 AM
To: axis-user@ws.apache.org; dims@apache.org
Subject: RE: Forcing the unpacking of aar files

Yes, that is what I have reverted to doing. I have an issue with my
business logic such that it will only work correctly when some of the
bundled resources are held as real files on Tomcat, rather than
contained in a Jar.

I really should fix this problem, but I was hoping for a quick fix that
would allow me to deploy an aar file and then let Axis2 unpack it into
the typical directory tree layout. It's easier to manage the single aar
file in my build system.

Thanks anyway.

-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com] 
Sent: 31 May 2007 13:47
To: axis-user@ws.apache.org
Subject: Re: Forcing the unpacking of aar files

Des,

You can actually deploy an unpacked aar :

http://www.developer.com/open/article.php/10930_3557741_2

-- dims

On 5/31/07, Desmond Whewell (CV/ETL) <de...@ericsson.com>
wrote:
>
> Is there a configuration option that will force Axis2 (1.2) to unpack 
> the the aar files upon deployment?
>
> Cheers, Des
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


--
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Forcing the unpacking of aar files

Posted by "Desmond Whewell (CV/ETL)" <de...@ericsson.com>.
Yes, that is what I have reverted to doing. I have an issue with my
business logic such that it will only work correctly when some of the
bundled resources are held as real files on Tomcat, rather than
contained in a Jar.

I really should fix this problem, but I was hoping for a quick fix that
would allow me to deploy an aar file and then let Axis2 unpack it into
the typical directory tree layout. It's easier to manage the single aar
file in my build system.

Thanks anyway.

-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com] 
Sent: 31 May 2007 13:47
To: axis-user@ws.apache.org
Subject: Re: Forcing the unpacking of aar files

Des,

You can actually deploy an unpacked aar :

http://www.developer.com/open/article.php/10930_3557741_2

-- dims

On 5/31/07, Desmond Whewell (CV/ETL) <de...@ericsson.com>
wrote:
>
> Is there a configuration option that will force Axis2 (1.2) to unpack 
> the the aar files upon deployment?
>
> Cheers, Des
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


--
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Forcing the unpacking of aar files

Posted by Davanum Srinivas <da...@gmail.com>.
Des,

You can actually deploy an unpacked aar :

http://www.developer.com/open/article.php/10930_3557741_2

-- dims

On 5/31/07, Desmond Whewell (CV/ETL) <de...@ericsson.com> wrote:
>
> Is there a configuration option that will force Axis2 (1.2) to unpack
> the the aar files upon deployment?
>
> Cheers, Des
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Forcing the unpacking of aar files

Posted by "Desmond Whewell (CV/ETL)" <de...@ericsson.com>.
 
Is there a configuration option that will force Axis2 (1.2) to unpack
the the aar files upon deployment?

Cheers, Des

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org