Topic: SOAP

Hi all,

I have many predefined SOAP requests that I would like to use to get information back from the server. I would like to store the response in our local database.

I would appreciate some guidelines how to solve this?

Ruby 1.9.3
Rails 3.1.1
Maria DB

Thanks

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://capabilities.nat.XX.com/xsd/ManageContractInventory/2008/10/22">
        <ns1:searchContractInventoryRequest>
            <ns2:standardHeader xmlns:ns2="http://wsi.nat.XX.com/2005/06/StandardHeader/">
                <ns2:serviceState>
                    <ns2:stateCode>OK</ns2:stateCode>
                </ns2:serviceState>
                <ns2:serviceAddressing>
                    <ns2:from>http://capabilities.nat.XX.com/wsdl/ManageContractInventory/2008/10/22/BFG_WS_INTERNAL_USER</ns2:from>
                    <ns2:to>
                        <ns2:address>http://capabilities.nat.XX.com/wsdl/ManageContractInventory/2008/10/22/BFG</ns2:address>
                    </ns2:to>
                    <ns2:replyTo>
                        <ns2:address>http://capabilities.nat.XX.com/wsdl/ManageContractInventory/2008/10/22/BFG_WS_INTERNAL_USER</ns2:address>
                    </ns2:replyTo>
                    <ns2:faultTo>
                        <ns2:address>http://capabilities.nat.XX.com/wsdl/ManageContractInventory/2008/10/22/BFG_WS_INTERNAL_USER</ns2:address>
                    </ns2:faultTo>
                    <ns2:messageId>uuid:0000000001</ns2:messageId>
                    <ns2:serviceName>http://capabilities.nat.XX.com/ManageContractInventory</ns2:serviceName>
                    <ns2:action>http://capabilities.nat.XX.com/wsdl/ManageContractInventory/2008/10/22#searchContractInventory</ns2:action>
                </ns2:serviceAddressing>
                <ns2:serviceSpecification>
                    <ns2:payloadFormat>SOAP Version 1.1</ns2:payloadFormat>
                    <ns2:version>Version 1.0</ns2:version>
                </ns2:serviceSpecification>
                <ns2:serviceSecurity>
                    <ns2:callingApplication>BFG_WS_INTERNAL_USER</ns2:callingApplication>
                </ns2:serviceSecurity>
            </ns2:standardHeader>
            <ns1:filter xmlns:ns3="http://capabilities.nat.XX.com/xsd/ManageContractInventory/2008/10/22/CCM/Standards/FilterSearchPattern">
                <ns3:numberOfRecords>1</ns3:numberOfRecords>
                <ns3:uniqueIdentifier>1</ns3:uniqueIdentifier>
                <ns3:startIndex>1</ns3:startIndex>
                <ns3:expression>
                    <ns3:operandOrSimpleTermOrOrderedExpressionList>simpleTerm</ns3:operandOrSimpleTermOrOrderedExpressionList>
                    <ns3:uniqueIdentifier>1</ns3:uniqueIdentifier>
                    <ns3:simpleTerm>
                        <ns3:entityConstraint>Customer by Party Identifier</ns3:entityConstraint>
                        <ns3:isCaseSensitive>true</ns3:isCaseSensitive>
                        <ns3:substringType>beginswith</ns3:substringType>
                        <ns3:searchTerm>
                            <ns3:searchTermName>Customer ID</ns3:searchTermName>
                            <ns3:searchTermValue>11629</ns3:searchTermValue>
                        </ns3:searchTerm>
                    </ns3:simpleTerm>
                </ns3:expression>
            </ns1:filter>
        </ns1:searchContractInventoryRequest>
    </soap:Body>
</soap:Envelope>