lib/openwfe/rest/osocket.rb in openwferu-0.9.12 vs lib/openwfe/rest/osocket.rb in openwferu-0.9.12.863
- old
+ new
@@ -28,12 +28,10 @@
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#++
#
-# $Id: codec.rb 2515 2006-04-26 18:38:39Z jmettraux $
-#
require 'socket'
require 'openwfe/rest/xmlcodec'
@@ -92,10 +90,11 @@
# encoded with XML
# The default encode_method is
#
def OpenWFE.dispatch_workitem (host, port, workitem)
- sXml = OpenWFE.xml_encode(workitem)
+ #sXml = OpenWFE.xml_encode(workitem)
+ sXml = OpenWFE::XmlCodec::encode workitem
socket = TCPSocket.new(host, port)
socket.puts "xmlCoder #{sXml.length}"
socket.puts
socket.puts sXml