mercredi 6 mai 2015

Using org.apache.cxf.binding.soap.SoapMessage for creating SOAP WS project

I want to use org.apache.cxf.binding.soap.SoapMessage and org.apache.cxf.message.Message for testing of SOAP Web-service. I have project and .xml and .msg files for tests, but I don't know, how can I create message with cxf.binding.soap.SoapMessage and send this message into WS. I have this steps in project:

  1. Upload xml or msg file
  2. Create SoapMessage and Message variables
  3. Try create SoapMessage and overwrite this messgae with security header, which contains information about cert
  4. Send this message into WS and get response

But I catched java.lang.NullPointerException into SoapMessage. Please, give me advice or some links, which show me how I can correctly create SoapMessage and send it. UPD: Also, I asked about SoapMessage here but I haven't exact answer

Aucun commentaire:

Enregistrer un commentaire