forked from hooklift/gowsdl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
951dee4
commit f8b3212
Showing
7 changed files
with
603 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"net/http" | ||
"time" | ||
|
||
"github.com/hooklift/gowsdl/example/server/gen" | ||
"github.com/hooklift/gowsdl/soap" | ||
) | ||
|
||
var done = make(chan struct{}) | ||
|
||
func client() { | ||
client := soap.NewClient("http://127.0.0.1:8000") | ||
service := gen.NewMNBArfolyamServiceType(client) | ||
resp, err := service.GetInfoSoap(&gen.GetInfo{ | ||
Id: "shenfuqiang", | ||
}) | ||
fmt.Println(resp.GetInfoResult, err) | ||
done <- struct{}{} | ||
} | ||
|
||
// use fixtures/test.wsdl | ||
func main() { | ||
http.HandleFunc("/", gen.Endpoint) | ||
go func() { | ||
time.Sleep(time.Second * 1) | ||
client() | ||
}() | ||
go func() { | ||
http.ListenAndServe(":8000", nil) | ||
}() | ||
<-done | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.