Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 507 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 507 Bytes

gohessian

A sample hessian 2.0 protocol implementation for Go-lang

Install

$ go get -u github.com/MenInBack/gohessian

Usage

package main

import (
    "fmt"

    gh "github.com/MenInBack/gohessian"
)

func main() {
    c := gh.NewClient("http://www.example.com", "/helloworld")
    res, err := c.Invoke("sendInt", 1)
    if err != nil {
        fmt.Printf("Hessian Invoke error:%s\n", err)
        return
    }
    fmt.Printf("Hessian Invoke Success, result:%s\n", res)
}