|
|
|
|
|
|
| |
|
XslTransport
for PocketSOAP
|
|
XslTransport is a COM component that
integrates with Simon Fell's PocketSOAP
toolkit. It works as a replacement for the HTTP transport
bindings that the PocketSOAP provides. XslTransport allows you to
specify a local XSL document to be used to transform the message into a
response.
I built this object to use as a testing
tool. You can set up an XSL document to generate Faults, or to
simulate certain responses, without having to go to a lot of
trouble. It helps isolate payload processing errors from transport
binding errors. To see how you can build SOAP endpoints using XSL, check out
Kafka.
I have included a piece of sample code
below that uses the XslTransport object. For more information on the
PocketSOAP, click here.
Private Sub DoXsl_Click()
Dim soap As New PocketSOAP.CoEnvelope
soap.MethodName = "GetSecretIdentity"
soap.URI = "http://www.vbxml.com/soapworkshop/services/id/"
soap.CreateParameter "codename", "Mr. Fantastic", "xsd:string"
Dim t As New PSOAPXSLLib.XslTransport
t.Send "d:\vbxml\web\vbxml\soapworkshop\services\id\id.xsl", soap.Serialize
soap.parse t.Receive
MsgBox soap.Parameters.ItemByName("Result").Value
End Sub
|
|
XslTransport
is free. There is currently no install program, just
download the psoapxsl DLL and register it on your machine. I plan to
match the extensions I write for the Microsoft SOAP Toolkit one-for-one
with PocketSOAP extensions. If you do download XslTransport, please sign up
for our discussion
group get
notified of more SOAP developments at VBXML.COM. Also, if you come
up with any great XSL documents for testing, please share them.
|
|
Download psoapxsl.dll (76 kb) Check out
XslConnector for the Microsoft SOAP Toolkit
|
|
|
|
|
|
|
|
|
|