It appears that your trading partner is sending you a soap request for an outbound (to them) notification. The “notifications” tag inside the body of the Soap request contains the data you are looking for.
I would ask your partner for a WSDL that describes the Web Service that the “notifications” operation belongs to. That WSDL will either define a schema that decribes the notifications message in its “wsdl:types” section or import another XSD that does so.
You will need to create a Flow service and then expose it as either a document/literal or SOAP-RPC web service depending on how the operation is described in the partner’s WSDL. In essence, they are asking you to provide a web service to receive their outbound notifications. IS 7.1 makes this much easier by letting you generate a web services descriptor in the “provider” role.
To validate a document against a schema, first create an Integration Server schema from the XSD. If the partner’s WSDL does not import an XSD, you might need to make a simple one and paste in the definition from the wsdl:types/xs:schema section that contains the “notifications” element definition.
You should not create a IS doc type that includes the SOAP envelope, but instead create a doc type that corresponds to the “notifications” element. Then use the pub.soap.utils:getBody built-in service to get a node containing just the payload of the soap message and convert that node into an IS document using pub.xml:xmlNodeToDocument specifying the fully-qualified name of the doc type you create for “notifications”.
If you do this, you can then use pub.schema:validate to validate the node created from the getBody call against the fully qualified name of the IS schema created from the XSD. If the “isValid” output parameter is true, then the document inside the soap body is valid. If not, you should throw an exception which will be returned as a SOAP fault.
Finally, the SOAP Developer’s Guide and Web Services Developer’s Guide located in the webm_home\Developer\doc\guides folder are required reading if you will be working with web services in IS.
Good luck,
Mark
#webMethods#API-Management#soa