Validating a SOAP Request against a WSDL

ta5
Member Posts: 1,164
Hello
This might be slightly off topic, but anyway:
I need to validate a SOAP Request against its WSDL. This must be kind of similar to validating a xml-Document aginst its XSD, but I'm stuck here.
This is the code for validating a xml-Document against the XSD.
Thanks in advance for any tipps or advice
Thomas
This might be slightly off topic, but anyway:
I need to validate a SOAP Request against its WSDL. This must be kind of similar to validating a xml-Document aginst its XSD, but I'm stuck here.
This is the code for validating a xml-Document against the XSD.
ValidateViaSchemaCache(_xmlDoc : Automation "'Microsoft XML, v6.0'.DOMDocument60";_xmlSchema : Automation "'Microsoft XML, v6.0'.DOMDoc CREATE(xmlSchemaCache); xmlSchemaCache.add(_NameSpace,_xmlSchema); CREATE(xmlDocumentTmp); xmlDocumentTmp.async := FALSE; xmlDocumentTmp.schemas := xmlSchemaCache; // Validation using load-method, while xmlDocumentTmp has a Schema attached // (load-method has more/better possiblities than validate-method) IF NOT xmlDocumentTmp.load(_xmlDoc) THEN BEGIN XMLParseError := xmlDocumentTmp.parseError; ERROR(Text001, XMLParseError.errorCode, XMLParseError.reason, XMLParseError.line, XMLParseError.linepos, XMLParseError.filepos); END; //Text001 = Error while validating the xml-Schema.\Error No.: %1\Error Text: %2 //\Line No.: %3\Line Position: %4\File Position: %5
Thanks in advance for any tipps or advice
Thomas
0
Comments
-
Hi Thomas,
We are also in a discusion on validating soap requests within Navision, or outside Navision on IIS using a XSLT script.
Did you manage to solve your problem?
Regards
Benno0 -
Hi Benno
Hmm, long time ago. As far as I remember we managed to just validate the xml documents. Also we changed from using soap toolkit to using xmlhttp.
Regards
Thomas0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions