Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServiceClient cliente = new ServiceClient();
- cliente.setTargetEPR(new EndpointReference("http://11:133:43:5776/css/ejemplo.cls"));
- Options options = new Options();
- options.setTransportInProtocol("http");
- cliente.setOptions(options);
- String xml = "";
- try {
- OMFactory fac = OMAbstractFactory.getOMFactory();
- // http://CS.Servicios/ServicioWeb, obtenerDato, 30
- OMNamespace omNs = fac.createOMNamespace("http://CS.Servicios/ServicioWeb","servicioPort");
- OMElement entidad= fac.createOMElement("parametroEntrada", omNs);
- OMElement value = fac.createOMElement("30", omNs);
- value.addChild(fac.createOMText(value, xml));
- entidad.addChild(value);
- cliente.fireAndForget(value);
- OMElement response = cliente.sendReceive(entidad);
- response.serialize(System.out);
- } catch (XMLStreamException | IOException e) {
- e.printStackTrace();
- }
- org.apache.axis2.AxisFault: Mensaje SOAP mal creado.
Add Comment
Please, Sign In to add comment