Hi folks.

I have the following scenario:

A dataservice in WSAS return inside it response message  an URL that point
to  the location of a file, in this case a binary file, and in the ESB I
have a proxy service that return in it message response not the URL but the
binary file.

So in the dataservice WSDL the xsd type is string and in the proxy service
the xsd type is base64Binary.

My idea is to implement a class mediator in ESB that access the message
context, extract the URL, them access to the server that store the file and
load the file as an object and inject this object back to the message
context.

I study your class mediator examples and see a code line like this:

mc.getEnvelope().getBody().getFirstElement().getFirstElement().getFirstChild
WithName(nombre).setText(image);

nombre is a QName objet.
If image is a an object, not a string, how can inject it inside the message
context? I only found the setText method.

Any help?

Another question: where I have to store the class, I put an example class in
classpath and in [ESB_HOME]\repository\components\plugins\ but I can´t load
it?


Thanks,
Ing. Jorge Infante Osorio.
J´Dpto Soluciones SOA.
CDAE.
UCI


_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to