Skip to content

Commit

Permalink
Improves warning message when no parts are found for a message.
Browse files Browse the repository at this point in the history
GoWSDL only supports document/literal wrapped WS-I compliant services
and will fail generating code for a WSDL that doesn't comply with this.
  • Loading branch information
c4milo committed Sep 12, 2015
1 parent 2c89ea3 commit f3118bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gowsdl.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,10 @@ func (g *GoWSDL) findType(message string) string {
// Message does not have parts. This could be a Port
// with HTTP binding or SOAP 1.2 binding, which are not currently
// supported.
log.Println("WSDL does seem to have HTTP or SOAP 1.2 binding which is not currently supported.")
log.Printf("[WARN] %s message doesn't have any parts. It is probably part of HTTP or SOAP 1.2 bindings which are unsupported, ignoring message...", msg.Name)
continue
}

part := msg.Parts[0]
if part.Type != "" {
return stripns(part.Type)
Expand Down

0 comments on commit f3118bf

Please sign in to comment.