@Override
public boolean bindingElements(WSDLBoundPortType binding,
XMLStreamReader reader) {
QName name = reader.getName();
if (JSONBindingID.NS_JSON_BINDING.equals(name) && binding instanceof WSDLBoundPortTypeImpl ) {
WSDLBoundPortTypeImpl bindingImpl = (WSDLBoundPortTypeImpl)binding;
bindingImpl.setBindingId(JSONBindingID.JSON_HTTP);
//bindingImpl.setBindingId(BindingID.SOAP11_HTTP);
String style = reader.getAttributeValue(null, "style");
if ((style != null) && (style.equals("rpc"))) {
bindingImpl.setStyle(Style.RPC);
} else {
bindingImpl.setStyle(Style.DOCUMENT);
}
goToEnd(reader);
return true;
}
return false;