func marshalSOAPResponse(sa upnp.SoapAction, args map[string]string) []byte {
	soapArgs := make([]soap.Arg, 0, len(args))
	for argName, value := range args {
		soapArgs = append(soapArgs, soap.Arg{
			XMLName: xml.Name{Local: argName},
			Value:   value,
		})
	}
	return []byte(fmt.Sprintf(`<u:%[1]sResponse xmlns:u="%[2]s">%[3]s</u:%[1]sResponse>`, sa.Action, sa.ServiceURN.String(), xmlMarshalOrPanic(soapArgs)))
}
// Marshal SOAP response arguments into a response XML snippet.
Marshal SOAP response arguments into a response XML snippet.
// Marshal SOAP response arguments into a response XML snippet .
func marshalSOAPResponse(sa upnp.SoapAction, args map[string]string) []byte {
	soapArgs := make([]soap.Arg, 0, len(args))
	for argName, value := range args {
		soapArgs = append(soapArgs, soap.Arg{
			XMLName: xml.Name{Local: argName},
			Value:   value,
		})
	}
	return []byte(fmt.Sprintf(`<u:%[1]sResponse xmlns:u="%[2]s">%[3]s</u:%[1]sResponse>`, sa.Action, sa.ServiceURN.String(), xmlMarshalOrPanic(soapArgs)))
}
func marshalSOAPResponse ( sa upnp . SoapAction , args map [ string ] string ) [ ] byte { soapArgs := make ( [ ] soap . Arg , 0 , len ( args ) ) for argName , value := range args { soapArgs = append ( soapArgs , soap . Arg { XMLName : xml . Name { Local : argName } , Value : value , } ) } return [ ] byte ( fmt . Sprintf ( `<u:%[1]sResponse xmlns:u="%[2]s">%[3]s</u:%[1]sResponse>` , sa . Action , sa . ServiceURN . String ( ) , xmlMarshalOrPanic ( soapArgs ) ) ) }
Marshal SOAP response arguments into a response XML snippet.
Marshal SOAP response arguments into a response XML snippet .