Hi All,

While trying to host a web service in WSO2 ELB (Elastic Load Balancer) (as
discussed in [1]), I've run into a blocking issue.

In ELB we set the message builder of any request, belongs to any content
type (currently there's a bug in axis2 level [2]) as
"org.wso2.carbon.relay.BinaryRelayBuilder".

This means a web service inside an ELB gets the request in a binary mode
(sample request received to the service is at [3]). Hence, I am seen a
namespace mismatch error [4].

Is there a work around to get the actual request instead of the binary
version of it, to this service, which is hosted in ELB?


[1] [Dev] Load balancer member registration Web
service<http://www.mail-archive.com/[email protected]/msg08337.html>
[2] [Dev] Any content type filter (.*) is not working

[3]

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope";><soapenv:Body><ns:binary xmlns:ns="
http://ws.apache.org/commons/ns/payload
">PHNvYXA6RW52ZWxvcGUgeG1sbnM6c29hcD0iaHR0cDovL3d3dy53My5vcmcvMjAwMy8wNS9zb2FwLWVudmVsb3BlIiB4bWxuczppbXBsPSJodHRwOi8vaW1wbC5zZXJ2aWNlLnJlZ2lzdGVyLm1lbWJlci5sYi5jYXJib24ud3NvMi5vcmciIHhtbG5zOnhzZD0iaHR0cDovL3V0aWwuc2VydmljZS5yZWdpc3Rlci5tZW1iZXIubGIuY2FyYm9uLndzbzIub3JnL3hzZCI+</ns:binary></soapenv:Body></soapenv:Envelope>

[4]
[2012-08-08 17:21:34,363] ERROR - RPCMessageReceiver Exception occurred
while trying to invoke service method addMember
org.apache.axis2.AxisFault: namespace mismatch require
http://impl.service.register.member.lb.carbon.wso2.org found
http://ws.apache.org/commons/ns/payload
    at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:190)
    at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
    at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
    at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
    at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
    at
org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:409)
    at
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261)
    at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
[2012-08-08 17:21:34,366] ERROR - ServerWorker Error processing POST
request
org.apache.axis2.AxisFault: namespace mismatch require
http://impl.service.register.member.lb.carbon.wso2.org found
http://ws.apache.org/commons/ns/payload
    at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:190)
    at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
    at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
    at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
    at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
    at
org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:409)
    at
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261)
    at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)



Thanks & regards,
Nirmal

Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to