Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Making scene7 soap call from spring boot!


Level 1

Hi Team,

I have a requirement where in we need to make scene7 soap call from spring application to get the given image member set ( multiple images associated). Wdls file I have is :

not sure if its latest wsdl reason being I am getting :

org.springframework.oxm.UncategorizedMappingException: Unknown JAXB exception; nested exception is javax.xml.bind.JAXBException: class nor any of its super class is known to this context..)

I followed article : to make soap call from spring boot.

I am appreciate your help or any pointers or reference document is greatly appreciated!

3 Replies


Employee Advisor

Hi @akashs71073883 ,


The error looks like the annontations are not being followed properly.

Are you adding any annotation on CreateRequest() method ?




Level 1

Below is the code i am using to create request.

   public GetAssetsByNameReturn getAssetsByNameReturn(String[] items) {
GetAssetsByNameParam getAssetsByNameParamRequest = new GetAssetsByNameParam();
StringArray itemArray = new StringArray();
for (String item : items){

return (GetAssetsByNameReturn) getWebServiceTemplate().marshalSendAndReceive(
"", getAssetsByNameParamRequest,
message -> {
try {
AuthHeader authHeader = getS7AuthHeader();
((SOAPMessage) message).set.setSoapAction("getAssetsByName");
SoapMessage soapMessage = (SoapMessage)message;
SoapHeader soapHeader = soapMessage.getSoapHeader();
this.getMarshaller().marshal(authHeader, soapHeader.getResult());

} catch (Exception e) {
log.error("Error during marshalling of the SOAP headers", e);



I am not using any annotation Milind. However, when I hardcode the request I get  <?xml version='1.0' encoding='UTF-8'?><tns:ipsApiFault xmlns:tns=""><tns:code>30000</tns:code><tns:reason>Required authHeader element not found.</tns:reason></tns:ipsApiFault>"


Appreciate your response!


Employee Advisor

Hi @akashs71073883 ,


Does the error say which line exactly has issue here.

I was going through certain threads :

I suppose the issue lies with Marshaller here, can you post the full log if possible, thanks.