Hi Amila,
When I said custom object, I mean a composite serializable bean that i
wanted to send to server.
I checked the request/response with the wsdl. They are same
Amila Suriarachchi wrote:
>
> What do you mean by your custom object?
>
> If you have generated client and server with the wsdl. check whether
> the request and responses are matched with wsdl.
>
> please have a look at here for more info[1]
>
> thanks,
> Amila.
>
> [1] https://wso2.org/library/2873
>
> On 11/14/08, Ravichandra <[EMAIL PROTECTED]> wrote:
>>
>> Hi
>>
>> I am developing webservice using axis2 and spring. I followed wsdl first
>> approach. First I created/wrote wsdl using the eclipse plugin.
>>
>> Then generated server side code using wsdl2java, and implemented the
>> service and deployed it in tomcat5.5.23.
>>
>> Then generated the client code (stubs) using wsdl2java and tried to
>> contact
>> the service, the communication between the client and service is
>> established
>> but the data (custom object) is not getting serialzed to the service. I
>> am
>> getting "axis fault: unexpected subelement return" error. If I use simple
>> int/string in the request with out custom objuect it is working.
>>
>> I thought there might be some error in the wsdl so I created wsdl from
>> service implementation using java2wsdl tool, and then created the client
>> stubs from that wsdl but i did not help. I was getting the same error.
>>
>> Then I took the axis auto generated wsdl from the
>> http://localhost:8080/axis2/services/sampleService?wsdl and generated the
>> client stubs from that using wsdl2java tool and it is working. I observed
>> that the request and response objects are wrapped in a different objects
>> that service is unaware of, but it the service is getting the request and
>> sending the response with out those wrappers.
>>
>> Please suggest me how can I send my custom object to the service.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Axis2-serialization-problem-tp20494930p20494930.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Axis2-serialization-problem-tp20494930p20495378.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]