java - Wsimport generated message has payload in header instead of body -
i generated code wsdl using wsimport. when use service , view generated xml message notice should in soap:body section in soap:header section. messing message since not reading header correctly now.
controller
myexample_service service = new myexample_service(); // set handler here prints message system.out myexample port = service.getmyexampleport(); handler
soapmessage message = context.getmessage(); try { message.writeto(system.out); } catch (exception e) { e.printstacktrace(); } i end following result:
<?xml version="1.0" encoding="utf-8"?> <s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <s:header> <myexample> </myexample> </s:header> <s:body /> </s:envelope> the myexample tag supposed inside body section. doing wrong here?
Comments
Post a Comment