mibuso.com

Microsoft Business Solutions online community
It is currently Fri Aug 29, 2014 1:13 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Validating a SOAP Request against a WSDL
PostPosted: Wed Dec 10, 2008 5:51 pm 
Offline

Joined: Thu Sep 09, 2004 2:04 pm
Posts: 1080
Location: Switzerland
Country: Switzerland (ch)
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.
Code: Select all
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


Top
 Profile  
 
 Post subject: Re: Validating a SOAP Request against a WSDL
PostPosted: Wed Jul 18, 2012 11:25 am 
Offline

Joined: Mon May 18, 2009 10:36 am
Posts: 36
Country: Netherlands (nl)
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

Benno


Top
 Profile E-mail  
 
 Post subject: Re: Validating a SOAP Request against a WSDL
PostPosted: Mon Jul 23, 2012 11:05 am 
Offline

Joined: Thu Sep 09, 2004 2:04 pm
Posts: 1080
Location: Switzerland
Country: Switzerland (ch)
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
Thomas


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: