Hi Susinda , Remove protocol attribute.If you define custom class it is not needed to define protocol.
thanks On Thu, Oct 8, 2015 at 8:57 AM, Susinda Perera <[email protected]> wrote: > I'm using following code segment to create a InboundEndpoint and > serialize it and get the omelement. > > InboundEndpoint inboundEndpoint1 = new InboundEndpoint(); > inboundEndpoint1.setName("susinda"); > inboundEndpoint1.setSuspend(false); > *inboundEndpoint1.setClassImpl("org.test.MyClass");* > inboundEndpoint1.setProtocol("custom"); > inboundEndpoint1.addParameter("inbound.behavior", "behaviourValue"); > OMElement inboundEndpointOmElement1 = > InboundEndpointSerializer.serializeInboundEndpoint(inboundEndpoint1); > > The resulted(serialized) OMElement looks like follows, Here *class* > attribute is not set > > <inboundEndpoint xmlns="http://ws.apache.org/ns/synapse" name="susinda" > protocol="custom" suspend="false"> > <parameters> > <parameter name="inbound.behavior">behaviourValue</parameter> > </parameters> > </inboundEndpoint> > > Correct config should contain class attribute, What is wrong here? am i > doing something wrong or is this a bug, appreciate your help on this. > > Thanks > Susinda > > > > > > -- > *Susinda Perera* > Software Engineer > B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL) > Mobile:(+94)716049075 > Blog: susinda.blogspot.com > WSO2 Inc. http://wso2.com/ > Tel : 94 11 214 5345 Fax :94 11 2145300 > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Best Regards Isuru Ranawaka M: +94714629880 Blog : http://isurur.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
