Here is a sample program I am using to call a public web service I found online to test with.
But when I change this program to use my web service I am getting a 500 status returned to me on the call to HttpURLConnection.getInputStream. No errors appear in the glassfish log on the server so I'm at a loss as to what I have done wrong here.
here you are trying to connect to deeptraining.com...so obviously your server will not get the request, are you sure you want this?
2) I think you need some client to invoke webservice, since its combination of service (@Webservice) and method (@Webmethod) simply using url will not help as server needs to know which method is to be invoked.