Link to home
Start Free TrialLog in
Avatar of fpuente
fpuente

asked on

Deploying a webservice from JBuilder X

Hi,

I want to access a web service from a Java application developed with JBuilder X. I'm using IIS 5.0 as a webserver and hadn't been able to achieve it. It seems like I need some aditional package or something to be able to deploy webservices, but it seems to me extrange considering how easy it is to use them in Visual Studio .NET. ¿Can anyone help me out?

Fernando
Avatar of dualsoul
dualsoul

hm...the question is?

JBuilderX uses Apache Axis  to deploy web-services, so don't forget it to package with your webapp.

Or are you asking how to access Web-service with Vs.NET?
Avatar of fpuente

ASKER

The web service I try to deply has been developed with VS.NET although it should be transparent to me. The thing is I want to develop an app built with JBuilder X that can deploy this webservice. Does anyone have a sample code or any idea of what I need to add to my project? If it is Apache Axis... Can I use it without Apache or should I install the whole Apache web server just to access a web service?  
if your Web srvice has been deployed with .NET (i mean actual code was written in C# or any) - you can't deploy it on Java platform. How do you imagine it?

You can deploy it on IIS, JBuilerX can't help you here.
Avatar of fpuente

ASKER

Isn't it suppose that web service allow cross-platform communication?
If so, then why can't I use a webservice in Jbuilder just because it has been developed in .NET platform?
Avatar of fpuente

ASKER

In fact, I', actually doing it with a hand-made class which makes the request to the web service and return the XML result. But I'm looking for something more transparent and reliable.
hm...it seems i lost  subject of question.

Let me summarize:

1. You have some webservice implemented in .NET (any CLR comliant language) right?
2. You want to deploy it under Java container?
or do you want to accees WebService deployed under IIS?
Avatar of fpuente

ASKER

1. You have some webservice implemented in .NET (any CLR comliant language) right?
RIGHT
2. You want to deploy it under Java container?
RIGHT
3. or do you want to accees WebService deployed under IIS?
IIS is used on the server that runs the webservice.
The application must be in JBuilder (because it is already implemented) and should access the webservice from any remote computer, no matter if it has IIS running on it or Apache or any other thing...
>IIS is used on the server that runs the webservice.

ahh...that's is. I thought you want deploy .net assembly under Axis :)
so you only need a client?

just point Axis to target WSDL file and it wil generate all stubs for WebServive.
Avatar of fpuente

ASKER

Where can I find the WSDL file?
Is Axis client a jar file that I have to add to my project?
Avatar of fpuente

ASKER

Do you have a sample code to do it or something that might tell me how to use Axis client?
you can find samples here : http://xml.apache.org/axis
Avatar of fpuente

ASKER

Ok, I will try to follow the instructions and then I'll tell you if it works fine.
Thanks
SOLUTION
Avatar of rdcpro
rdcpro
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fpuente

ASKER

Ok, I have the WSDL file obtained from the webservice, but when I go to the Web Service Designer provided inside JBuilder X, I put a new web service and I set its WSDL file. It automatically recognizes all the methods published by the webservice but when I try to build the client module created it says there are two errors:
Document is invalid: no grammar found
Document root element "project" must match DOCTYPE root "null".
Any idea what I', doing wrong?
Avatar of fpuente

ASKER

I have also tried out with the sample projects that come with Jbuider X but, among other errors, I get the same one.
¿Could be a problem with my Jbuilder installation?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fpuente

ASKER

I guess that´s my next step. I hope I won´t be too complicated to use...

Thanks anyway to both of you...