axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "keith chapman" <keithgchap...@gmail.com>
Subject Re: Axis 2 client part of web app
Date Mon, 15 Oct 2007 04:14:19 GMT
Hi Srikanth,

Can you use TCP-Monitor (U can use the eclipse plugin) and capture the
request and responses in the two cases and post it here. That'll help
diagnose the problem.

Thanks,
Keith.

On 10/15/07, Srikanth Muthyala <srikanth@iitc.com.au> wrote:
>
> I have a client code generated using Axiscode generator in eclipse. If I
> make a call to the service when client is running as a *standalone* main
> method it *works* fine but when the same code is called while running in
> web app it gets fault
> Faultcode = {http://www.w3.org/2005/08/addressing}ActionNotSupported
> Reason = The server did not recognise the action which it received:
>
> -I tried running *cient* and server on two different hosts and same host -
> no change.
>
> *This is my services.xml*
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- This file was auto-generated from WSDL -->
> <!-- by the Apache *Axis2* version: 1.3  Built on : Aug 10, 2007 (04:45:47
> LKT) -->
> <serviceGroup>
>     <service name="RtbCallEvent">
>         <messageReceivers>
>             <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out"
> class="com.customer.service.rtbcallevent.RtbCallEventMessageReceiverInOut"/>
>
>         </messageReceivers>
>         <parameter name="ServiceClass">
> com.customer.service.rtbcallevent.RtbCallEventSkeleton</parameter>
>         <parameter name="useOriginalwsdl">true</parameter>
>         <parameter name="modifyUserWSDLPortAddress">true</parameter>
>         <operation name="callEvent" mep="http://www.w3.org/ns/wsdl/in-out">
>
>         <actionMapping>\"\"</actionMapping>
>
> <outputActionMapping>urn:rtbCallEvent/wsdl:rtbCallEventSEI:callEventResponse</outputActionMapping>
>
>         </operation>
>     </service>
> </serviceGroup>
>
> *This is my java code*
>                         RtbCallEventStub stub = new RtbCallEventStub("
> http://10.96.201.30:8080/RTB/services/RtbCallEvent");
>                         CallEvent7 callEvent = new CallEvent7();
>                         CallEvent param = new CallEvent();
>
>                         param.setAnswerTime("param");
>                         param.setCalledNumber("param");
>                         param.setCallingNumber("sdfds");
>                         param.setDirection("sdf");
>                         param.setGroup("successq");
>                         param.setRecordId("sdfsd");
>                         param.setReleaseTime("sdf");
>
>                         callEvent.setCallEvent(param );
>                         CallEventResponse6 resp = stub.callEvent(callEvent);
>
>                         System.out.println(resp.getCallEventResponse().getResult());
>
>
>                 } catch (AxisFault e) {
>                         // TODO Auto-generated catch block
>                         System.out.println(e.getFaultCode());
>                         System.out.println(e.getMessage());
>                         System.out.println(e.getReason());
>                 } catch (RemoteException e) {
>                         // TODO Auto-generated catch block
>                         e.printStackTrace();
>                 }
>
> Any help will be appreciated.
>
> Regards,
>
> Srikanth Muthyala
>
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/

Mime
View raw message