[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.ohf] Re: Top down creation of web service from wsdl file

Dear Matt,

I'm sorry for causing so much confusion.
But actually I'm trying to create the web service client.

so yes. following your instructions, entering the URL into the web service definition, I've managed to create the series of stub classes.

while creating the client, I've pushed the lever to the "test" stage which creates a JSP file to test my services.

I would like to ask how come the jsp file fail to be able to give positive results when testing the service?
also may i ask what other code do i have to write in order to create a client to access the services offered by the OHF bridge?


Thank you for your time in going through and repling my queries.

regards,
zhuohao



DMatthew Davis wrote:
Hi there,

It sounds like you might be trying to build a "Web service" not a "Web service Client" in Eclipse. The OHF Bridge - deployed on Tomcat - will be your Web service and you will want to build a client to consume the Web service. In Eclipse, you can created a new "Web service client":

1.  Create a new Java project
2.  Right click on the project and select New -> Other
3.  In the "New" window, select Web Services -> Web Service Client

That will give you an option to enter a URL to the WSDL. You can point to it by entering in the "Service Definition" field the URL:

http://localhost:8090/bridge/services/ohf-bridge?wsdl

And this will generate a series of stub classes that will allow you to access the Web service. These stub classes can then be accessed by your existing code and the complex Web service calls will be masked.

If you are looking to build a Web service from the OHF Bridge using Eclipse, that would be an interesting, yet maybe unnecessary project. The way that Eclipse would build it is almost identical to how you already have it installed.

-Matt



ZhuoHao wrote:
Dear all,

I'm sorry about my ignorance. Truth is i'm still noob in this webservices programming.

I have installed the bridge on a local tomcat server.
it is working fine. I can access http://localhost:8090/bridge/AxisServlet and view the services available to me..


I'm creating the web service from the top down creation wizard in eclipse form the wsdl file because the top down creation of the web service client requires me to have web service.

I have no idea how to move the installed bridge service to eclipse..

In other words, I have no idea how to create the client for the bridge.

can someone assist me in creating a client for the bridge for me to see how the whole thing works?

My apologies for my ignorance on this matter.

regards,
Zhuohao

Eishay Smith wrote:
Can you please give us the full background?
I.e. what OS and app server you are using?
And why are you trying to create a web service from the bridge wsdl file?
Did you already install the bridge and trying to create a client stub?
Thanks,
Eishay


ZhuoHao <sumz0001@xxxxxxxxxx> wrote:
dear all

I'm using eclipse's web service top down creation wizard to create the web service from the bridge wsdl file.

the error comes when the wizard tries to deploy the web service to Axis Run-time environmnent. It says
"IWAB0489E Error when deploying Web service to Axis runtime
axis-admin failed with {http://xml.apache.org/axis/}HTTP (404)/ohf_bridge/services/AdminService"


does anyone knows why?

regards,
Zhuohao