axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <amilasuriarach...@gmail.com>
Subject Re: Axis2 serialization problem
Date Fri, 14 Nov 2008 11:18:34 GMT
On Fri, Nov 14, 2008 at 12:00 PM, Ravichandra <
ravichandra.thiruveedhula@fmr.com> wrote:

>
> Hi Amila,
>
> When I said custom object, I mean a composite serializable bean that i
> wanted to send to server.

I assume you use ADB. you can not send your own bean with Databound classes.
Those classes should
also be ADB classes.

thanks,
Amila.

>
> 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 <ravichandra.thiruveedhula@fmr.com> 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: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> > --
> > Amila Suriarachchi
> > WSO2 Inc.
> > blog: http://amilachinthaka.blogspot.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
>
> --
> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Mime
View raw message