Deepal,

are you saying that the syntax of the following [1]services.xml incorrect and should be wrriten as in [2]services.xml ?
[1]services.xml

<service name="AddressBookService" scope="application">
<parameter name="ServiceClass" locked="false">sample.addressbook.service.AddressBookService </parameter>
<operation name="addEntry">
<actionMapping>urn:addEntry</actionMapping>
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver "/>
</operation>
<operation name="findEntry">
<actionMapping>urn:findEntry</actionMapping>
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver "/>
</operation>
</service>

[2]services.xml
<service name="AddressBookService" scope="application">
<description>
This is sample service 2
</description>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class=" org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class=" org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
<parameter name="ServiceClass" locked="false">sample.addressbook.service.AddressBookService</parameter>

</service>


On 10/30/06, Deepal Jayasinghe (JIRA) <[EMAIL PROTECTED]> wrote:
     [ http://issues.apache.org/jira/browse/AXIS2-1550?page=all ]

Deepal Jayasinghe resolved AXIS2-1550.
--------------------------------------

    Resolution: Fixed

there was a problem with your services.xml and I fixed that and commited to code base.

> Generated Stubs throws and exception when invoking an IN-ONLY operation specified in the targeted WSDL
> ------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-1550
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1550
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>         Environment: java version "1.4.2_12"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-b03)
> Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode
> Linux version 2.6.17-gentoo ([EMAIL PROTECTED]) (gcc version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)) #1 SMP PREEMPT Thu Jul 6 05:04:46 UTC 2006
>            Reporter: Sanka Samaranayake
>            Priority: Blocker
>         Attachments: AddressBookService.aar, AddressBookService.aar, client-code.jar
>
>
> Generated stub throws the folllowing exception when trying to invoke an IN-ONLY operation specified in the targeted WSDL.
> Error:
> org.apache.axis2.AxisFault: Incoming message input stream is null
>       at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
>       at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:381)
>       at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
>       at sample.addressbook.stub.AddressBookServiceStub.addEntry(AddressBookServiceStub.java:152)
>       at sample.addressbook.adbclient.AddressBookADBClient.main (AddressBookADBClient.java:51)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Sanka Samaranayake
WSO2 Inc.
T:+94-77-3506382 F:+94-11-2424304

http://sankas.blogspot.com/
http://www.wso2.net/


Reply via email to