use of com.sun.xml.ws.server.sei.TieHandler in project metro-jax-ws by eclipse-ee4j.
the class DatabindingImpl method deserializeRequest.
public JavaCallInfo deserializeRequest(Packet req) {
com.sun.xml.ws.api.databinding.JavaCallInfo call = new com.sun.xml.ws.api.databinding.JavaCallInfo();
try {
JavaMethodImpl wsdlOp = resolveJavaMethod(req);
TieHandler tie = wsdlOpMap.get(wsdlOp);
call.setMethod(tie.getMethod());
Object[] args = tie.readRequest(req.getMessage());
call.setParameters(args);
} catch (DispatchException e) {
call.setException(e);
}
return call;
}
use of com.sun.xml.ws.server.sei.TieHandler in project metro-jax-ws by eclipse-ee4j.
the class DatabindingImpl method serializeResponse.
@Override
public Packet serializeResponse(JavaCallInfo call) {
Method method = call.getMethod();
Message message = null;
if (method != null) {
TieHandler th = tieHandlers.get(method);
if (th != null) {
return th.serializeResponse(call);
}
}
if (call.getException() instanceof DispatchException) {
message = ((DispatchException) call.getException()).fault;
}
Packet p = (Packet) packetFactory.createContext(message);
p.setState(Packet.State.ServerResponse);
return p;
}
Aggregations