Guest User

Untitled

a guest
Jul 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. ServiceClient cliente = new ServiceClient();
  2. cliente.setTargetEPR(new EndpointReference("http://11:133:43:5776/css/ejemplo.cls"));
  3. Options options = new Options();
  4. options.setTransportInProtocol("http");
  5. cliente.setOptions(options);
  6. String xml = "";
  7.  
  8. try {
  9. OMFactory fac = OMAbstractFactory.getOMFactory();
  10. // http://CS.Servicios/ServicioWeb, obtenerDato, 30
  11. OMNamespace omNs = fac.createOMNamespace("http://CS.Servicios/ServicioWeb","servicioPort");
  12. OMElement entidad= fac.createOMElement("parametroEntrada", omNs);
  13. OMElement value = fac.createOMElement("30", omNs);
  14. value.addChild(fac.createOMText(value, xml));
  15. entidad.addChild(value);
  16. cliente.fireAndForget(value);
  17. OMElement response = cliente.sendReceive(entidad);
  18.  
  19. response.serialize(System.out);
  20. } catch (XMLStreamException | IOException e) {
  21. e.printStackTrace();
  22. }
  23.  
  24. org.apache.axis2.AxisFault: Mensaje SOAP mal creado.
Add Comment
Please, Sign In to add comment