} else {
throw new IllegalArgumentException( "Can't handle mixed payloads between OMElements and other types for endpoint reference " + endpointReference);
}
}
SOAPBody body = env.getBody();
body.addChild(operationNameElement);
} else if (wsBinding.isRpcEncoded()){
throw new ServiceRuntimeException("rpc/encoded WSDL style not supported for endpoint reference " + endpointReference);
} else if (wsBinding.isDocEncoded()){
throw new ServiceRuntimeException("doc/encoded WSDL style not supported for endpoint reference " + endpointReference);
// } else if (wsBinding.isDocLiteralUnwrapped()){
// throw new ServiceRuntimeException("doc/literal/unwrapped WSDL style not supported for endpoint reference " + endpointReference);
} else if (wsBinding.isDocLiteralWrapped() ||
wsBinding.isDocLiteralUnwrapped()){
// it's doc/lit
SOAPBody body = env.getBody();
for (Object bc : args) {
if (bc instanceof OMElement) {
body.addChild((OMElement)bc);
} else {
throw new IllegalArgumentException( "Can't handle mixed payloads between OMElements and other types for endpoint reference " + endpointReference);
}
}
} else {