Skip to content

Commit

Permalink
example: make it compile
Browse files Browse the repository at this point in the history
  • Loading branch information
tgulacsi committed Apr 15, 2017
1 parent d0f3c39 commit 375ae79
Show file tree
Hide file tree
Showing 2 changed files with 143 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ import (

"github.com/UNO-SOFT/grpcer"
"github.com/UNO-SOFT/soap-proxy"

pb "github.com/UNO-SOFT/soap-proxy/example/mysrvc"
)

//go:generate go install -v github.com/UNO-SOFT/grpcer/protoc-gen-grpcer
//go:generate go install -v github.com/gogo/protobuf/protoc-gen-gofast

//go:generate protoc --wsdl_out=mysrvc:mysrvc/ -I . mysrvc/mysrvc.proto
//go:generate protoc --gofast_out=grpc:. -I $GOPATH/src -I . mysrvc/mysrvc.proto
//go:generate protoc --gofast_out=plugins=grpc:. -I $GOPATH/src -I . mysrvc/mysrvc.proto
//go:generate protoc --grpcer_out=main:. -I $GOPATH/src -I . $GOPATH/src/github.com/UNO-SOFT/soap-proxy/example/mysrvc/mysrvc.proto

func main() {
Expand Down Expand Up @@ -41,7 +43,7 @@ func run(addr, endpoint, CA, hostOverride string) error {
addr,
soapproxy.SOAPHandler{
Client: NewClient(cc),
WSDL: soapproxy.Ungzb64(WSDLgzb64),
WSDL: soapproxy.Ungzb64(pb.WSDLgzb64),
},
)
}
139 changes: 139 additions & 0 deletions example/mysrvc/mysrvc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 375ae79

Please sign in to comment.