BizTalk Utilities CV ,   Jobs ,   Code library  
 
 

XslConnector for the Microsoft SOAP Toolkit 

XslConnector is a COM component that integrates with the Microsoft SOAP Toolkit.  It implements the SoapConnector interface, so it is a replacement for the HTTP transport bindings that the Toolkit provides.  XslConnector allows you to specify a local XSL document to be used to transform the message into a response.  I got the idea for this object from Don Box's SOAP example where he describes SOAP as "XSLT with a longer wire".

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 XslConnector object.  For more information on the Microsoft SOAP Toolkit, click here.

    Dim Serializer As SoapSerializer
    Dim Reader As SoapReader    
    Dim Connector As SoapConnector
    
    Set Connector = New XslConnector
    
    'Use a local XSL document to generate the response     
    Connector.Property("XSL") = "d:\projects\soapplus\fancy.xsl"      
    Connector.Connect Nothing
    
    Connector.BeginMessage Nothing
    
    Set Serializer = New SoapSerializer
    Serializer.Init Connector.InputStream
    
    Serializer.startEnvelope
    Serializer.startBody
    Serializer.startElement "TestMethod", "http://www.topxml.com", , "v" 
    Serializer.startElement "A"
    Serializer.writeString "1"
    Serializer.endElement
    Serializer.startElement "B"
    Serializer.writeString "2"
    Serializer.endElement
    Serializer.endElement
    Serializer.endBody
    Serializer.endEnvelope
        
    Connector.EndMessage
    
    Set Reader = New SoapReader
    b = Reader.Load(Connector.OutputStream)
    
    If Not Reader.Fault Is Nothing Then
        MsgBox Reader.faultstring.Text, vbExclamation
    Else
        MsgBox Reader.RPCResult.Text
    End If
    End Sub

 

 

XslConnector is free.  There is currently no install program, just download the SoapPlus DLL and register it on your machine.  I am working separately on some other extensions to the Toolkit that will provide additional help with testing and other areas of development, and these will probably be bundled with the SoapPlus DLL in the future.  If you do download XslConnector, please sign up for our discussion group get notified of more SOAP developments at TopXML.  Also, if you come up with any great XSL documents for testing, please share them with me and the rest of the developers using the SOAP Toolkit.

 

 

Download SoapPlus.dll (68 kb)

Check out XslTransport for PocketSoap


 
 

Recent Jobs

Software Developers Needed in Charl
Sr. Software Engineer - Analytics
Immediate Mainframe openings for Ch
Immediate TANDEM-TAL openings for C
Immediate ASP.NET/C# Openings for C

View all Jobs (Add yours)
View all CV (Add yours)



fax server
swimming pool contractor
teleconferencing
water softener
Teleconference
Host Department NOLIMIT Web Hosting
MSN
sunglasses


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP