Your suggestion did help, but now I have a different problem. I have two methods I am trying to expose:
Item getItem( int id );
void addItem( Item item );
Here is my services xml:
<operation name="addItem">
<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"
/>
</operation>
<operation name="getItem">
<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"
/>
</operation>
I have put some debug output in the first line of each of these methods. When I call getItem from the client I see the debug statement. When I call addItem I don't get the debug statement. The client doesn't seem to complain at all. I am at a loss to figure out what is going on. Where should I start looking. It seems like my method is never getting called, but I am not getting an error either. Any ideas?
Michael MacFadden
| Roman Weidlich <[EMAIL PROTECTED]>
05/12/2006 10:32 AM
|
|
<operation name="say">
<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</operation>
[EMAIL PROTECTED] wrote:
>
> I have been really struggling trying to make an RPC style web service
> with Axis 2. I finally have my WSDL the way I want it I think. I have
> attached it. The problem is when I generate code with WSDL2Java and
> package the service and deploy it. The WSDL Axis2 shows when I go to
> MyService?wsdl shows a document style WSDL. Is there a way to supply
> the WSDL I wrote to axis2 because the generated one doesn't look right
> to me.
>
> If anyone can help I would be grateful. Can anyone show me an example
> of an RPC style web service in Axis2? Please help. Thanks.
>
>
> Michael MacFadden
> Tomax Corp - http://www.tomax.com
> [EMAIL PROTECTED]
