File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Trying to test the WSDL file I wrote Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Trying to test the WSDL file I wrote" Watch "Trying to test the WSDL file I wrote" New topic
Author

Trying to test the WSDL file I wrote

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Hi All,

So I wrote the xsds, wsdl, generated the skeleton code out of the wsdl, and I am printing a hello world in the binding impl class. Now, I have the project EAR file deployed to my local app server. I am trying to test the service using the web services explore (assuming my service is up and running since the ear file is deployed to the server) but I am getting a 404 transport error. Am I doing anything wrong here? Do I have to write click on the wsdl and select publish to test the service?

The port number I am using is the one from my console window. The one after the default_host[*port number

Please advice on what I am doing wrong here.

Thanks.


Be Humble... Be Nice.
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Hi All,

Right now, I am using the end point: http://localhost:9061/services/CheckingService

I tried the below and all three failed in my internet explorer.

1). http://localhost:9061
2). http://localhost:9061/services/CheckingService
3). http://localhost:9061/services/CheckingService?wsdl

The port number I am using is the one from my console window. The one after the default_host[*port number. I am using web sphere 7.0 application server.

I also tried the below ports mentioned from the link http://publib.boulder.ibm.com/infocenter/wasinfo/fep/index.jsp?topic=/com.ibm.websphere.migration.nd.doc/info/ae/ae/rmig_portnumber.html and they failed too.

http://localhost:9080
http://localhost:9443
http://localhost:9043
http://localhost:9060

Any idea what I might be doing here? I am using WAS 7.0 Application server.

-Arjun
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Anybody guys?

Thanks
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi Arjun,
Did you check if your web service is deployed and running in admin console?


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Naren Chivukula wrote:Hi Arjun,
Did you check if your web service is deployed and running in admin console?


Hi Naren,

Thanks for replying. How do I check it from admin console? Right now, I can see the EAR deployed to my local App server though.


-Arjun
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi Arjun,
Can you see other web applications running? If so, then you may have to check your web service url path in your web service (just to double check). Also, you may have to check ibm specific binding files if your default context path is overridden.
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Hi all,

I found the answer to my question. When a web service is installed on a WAS server, it changes the end point we give in the wsdl to the below.


All this while, I was trying the wrong URL. Thanks for trying to help me out Naren

-Arjun
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to test the WSDL file I wrote
 
Similar Threads
Service Versioning Deployment - Best approach
Help need :
Consuming SOAP
Web Service over LAN
Can't connect to the deployment manager through wsadmin tool