Chris Johnz

Greenhorn
+ Follow
since Oct 22, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chris Johnz

I am using JBoss 5.0.

And I have set my soapUI initial WSDL set to "http://localhost:8080/MyDynamicWebProject/services/MyWebServicesBean", which works. This is what I see in the MyWebServicesBean.wsdl file but NOT what jbossws/services shows. So the question is where does JBoss get this from? And why?
11 years ago
Yes, I get the expected behaviour in both browsers and soapUI.
11 years ago
Siitesh - Thank you for your help. I didn't specify Athena. But I used -b 0.0.0.0 for the JBoss binding, so that other computers on my network can connect. I guess it picked up the host name from DNS because of that.

And you are right: I don't need the @SOAPBinding annotation.

I actually have now succeeded in accessing the webservice, but I am not sure why. I looked in the MyWebServicesBean.wsdl file, to try to find some clues, and saw this:

So I tried entering that URL into my browser and, sure enough, I receive the WSDL is I expect. And when I enter this URL as the initial wsdl address in soapUI everything works as expected:

I can send the "name" soap request and I get the expected response. Hurrah!

But the JBoss localhost:8080/jbossws/services page still gives me the same (incorrect) endpoint address as before. So I am left now with a remaining question.
Why is JBoss giving me "http://Athena:8080/MyDynamicWebProjectEAR-MyDynamicWebProject/MyWebServicesBean?wsdl" as the endpoint address when it is not correct? I suppose I must have some out of date junk somewhere in my project, and I need to rebuild some artifact. But what?
11 years ago
Yes - I have seen this JRebel intro before, and I think it's great. But it doesn't solve my problem. I need to know how to set up a webservices Java Bean of the pattern I posted and run it in JBoss.
11 years ago
I have used JBoss and WebServices on projects, but I want to learn to set it up myself so I am trying a "Hello World" for starters. I have this class:

And I have added these lines to my web.xml:

When I save in Eclipse the project builds and deploys to my local JBoss server.

When I browse to localhost:8080/jbossws/services I can see the service listed as the only Registered Service Endpoints as follows:

But when I click on the link (Athena is my own computer, of course), I get "404: The requested resource (/MyDynamicWebProjectEAR-MyDynamicWebProject/MyWebServicesBean) is not available."

I can still run the servlet that I had already placed in this project before trying to generate this webservice, so JBoss is running all right. And my EAR file must surely have been rebuilt since I added my "HelloWorld" class to the project, since the webservice appears in the listing. But somehow the resource itself is not available. Nor can I access it in SoapUI.

Can someone help me, please? I can supply any more info you request.

11 years ago