cancel
Showing results for 
Search instead for 
Did you mean: 

XML validation of a SOAP request

Former Member
0 Kudos

Hello,

Our SAP NetWeaver CE 7.1 Java Application Server runs and publishes our Web Services with their compliant WSDLs. A Web Service consumer invokes our Web Services.

When this consumer sends a SOAP request with a non-existing field in the message, no error or warning is returned.

How is it possible to validate this SOAP request, at the server side, from the XSD schema defined in the WSDL that the Application Server provides?

Thanks for your help,

Anne-Lise

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In my opinion this is not possible using any standard approach and you need to either route call via PI which can validate request using XSD (in communication channel you can validate incoming request) or need to validate on this on consumer application itself.

Any unwanted fields will be simply ignored by service provider.

Regards,

Gourav

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anne-Lise,

You going to struggle to get this working on the CE server side. SAP xml deserialization works in a similar fashion as JAXB deserialization & JAX-WS ref. implementation in that it's fault tolerant, so it will just log a warning message if the severity of your tracing location is set to 'Warning'

You could adopt the mediated SAP PI approach that Gourav has suggested OR increasing the severity of your tracing location & try to catch the warning message in you logic from the log OR (very dirty) just add aditional logic to try & catch it.

Ultimately, you would want the consumer to fix their problems first though

Regards, Trevor