[WebService(Namespace = "http://www.wrox.com/helloworld")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class HelloSoapHeader : System.Web.Services.WebService
{

    public HelloHeader myHeader;

    [WebMethod]
    [SoapHeader("myHeader")]
    public string HelloWorld() {
        if (myHeader == null) {
           return "Witaj, świecie";
        }
        else {
           return "Witaj, " + myHeader.Username + ". " +
              "<br>Twoje hasło to: " + myHeader.Password;
        }
    }
    
}
