I changed the WSDL from wrapped to bare, regenerated the code, deployed, and
tested and now get an instance of the request object but a null Edi894UCS...
document (with the different namespace from the service). It appears JAXB in
CXF is not being made aware of the namespace of the document in the payload.
1) changed WSDL:
<?xml version="1.0" encoding="UTF-8"?>
2) Generated Interface:
@WebService(targetNamespace =
"http://www.company.com/services/domain/receiving", name =
"ReceivingDataInterface")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface ReceivingDataInterface {
@Oneway
@Action(input =
"http://www.company.com/services/domain/receiving/ReceivingDataInterface/SaveEDI894Request")
@WebMethod(operationName = "SaveEDI894")
public void saveEDI894(
@WebParam(partName = "SaveEDI894Request", name =
"SaveEDI894Request", targetNamespace =
"http://www.company.com/services/domain/receiving")
SaveEDI894Request saveEDI894Request
);
}
3) Implemented Interface method:
@Override
public void saveEDI894(@WebParam(
partName = "SaveEDI894Request",
name = "SaveEDI894Request",
targetNamespace =
"http://www.company.com/services/domain/receiving")
SaveEDI894Request saveEDI894Request)
{
Edi894UCSDexNexDocument doc =
saveEDI894Request.getEdi894UCSDexNexDocument();
// saveEDI894Request is instance, doc is null.
}
--
View this message in context:
http://servicemix.396122.n5.nabble.com/CXF-SE-Null-Payload-tp4298642p4300690.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.