*/
public void process() {
WSEndpoint<?> endPoint = this.codec.getEndpoint();
JAXBContextImpl context = (JAXBContextImpl)endPoint.getSEIModel().getJAXBContext();
WSDLPort port = endPoint.getPort();
if (!operationDocuments.containsKey(port.getBinding().getName())) {
BufferedReader ins = new BufferedReader(new InputStreamReader(
MethodFormProvider.class.getResourceAsStream("methodForm.htm")));
StringBuffer content = new StringBuffer();
try{
String line = ins.readLine();
while(line != null){
content.append(line + "\n");
line = ins.readLine();
}
}catch(Throwable th){}
Map<String, String> contents = new HashMap<String, String>();
SEIModel seiModel = endPoint.getSEIModel();
for (WSDLBoundOperation operation : seiModel.getPort().getBinding().getBindingOperations()) {
String requestJSON = JSONHttpMetadataPublisher.getJSONAsString(operation.getInParts(), context, this.codec );
contents.put(operation.getOperation().getName().getLocalPart(),
content.toString().replaceAll("#INPUT_JSON#", String.format("{\"%s\":%s}",operation.getName().getLocalPart(),
requestJSON))
.replaceAll("#METHOD_NAME#", operation.getName().getLocalPart()));
}
operationDocuments.put(port.getBinding().getName(), contents);
}
}