deploy wsdl and get to it from webapp

View: New views
4 Messages — Rating Filter:   Alert me  

deploy wsdl and get to it from webapp

by jmpgate-tech :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've created a war file for my web service. The web service is working fine.

But I'd like to be able to get to wsdl from a web browser.  

That is, I want to:

  http://localhost:8080/MyApp/my-service?wsdl

And get back the wsdl.

I can't find any examples.

How do I deploy wsdl?  Where does the wsdl file go in webapp, and how should it be named? Do I have to add an entry in the web.xml or the my-service.xml?

Please advise.

Thanks, Jim

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
jibx-users mailing list
jibx-users@...
https://lists.sourceforge.net/lists/listinfo/jibx-users

Re: deploy wsdl and get to it from webapp

by Nigel Charman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jim

Which web service framework are you using?  JiBX/WS, Axis, ...?

I'm guessing you're using JiBX/WS with Spring.  JiBX/WS does not currently expose WSDL, but there are plans to do so using the updated schema generation utilities that Dennis has been working on.  It sounds like you already have a WSDL file, so wouldn't need schema generation. This should be an easy addition to make to JiBX/WS, possibly for the upcoming v0.9.1.  Do you have any specific needs for publishing the WSDL - eg. rewriting the service location?

In the meantime, if you want to implement this feature with v0.9, you'll need to create a custom servlet that extends WsSpringServlet.

cheers, nigel.

jmpgate-tech@... wrote:
I've created a war file for my web service. The web service is working fine.

But I'd like to be able to get to wsdl from a web browser.  

That is, I want to:

  http://localhost:8080/MyApp/my-service?wsdl

And get back the wsdl.

I can't find any examples.

How do I deploy wsdl?  Where does the wsdl file go in webapp, and how should it be named? Do I have to add an entry in the web.xml or the my-service.xml?

Please advise.

Thanks, Jim

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
jibx-users mailing list
jibx-users@...
https://lists.sourceforge.net/lists/listinfo/jibx-users
  

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
jibx-users mailing list
jibx-users@...
https://lists.sourceforge.net/lists/listinfo/jibx-users

Parent Message unknown Re: deploy wsdl and get to it from webapp

by jmpgate-tech :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm at home right now but wanted to respond, tonight.  I apologize for not better describing my environment.

> Which web service framework are you using?
At this point, using jibx-ws, by itself.  However, I have used Spring for a web application before.  Does spring-framework have something web service centric, that I should be looking at?

> It sounds like you already have a WSDL file...
Actually I have several wsdl's.  One for each class parameter I passed to the jibx2wsdl tool.  I haven't figured out how to correctly configure the <wsdl> portion of the customization file yet.  When I do, I suspect I'll end up with a single valid wsdl.  (fingers crossed)

> so wouldn't need schema generation
Are you talking about the xsd file that was generated, too?  I'm a newbie to web services.

My starting point was a set of objects from another project.  I didn't start with wsdl or any schema definition.

> Do you have any specific needs for publishing the WSDL - eg. rewriting the service location?
Have a developer that needs to call my web service from VB6, ugh!  He wants to use some MS soap tool that with make everything easy. This tool depends on the wsdl.  

> WsSpringServlet
I'll take a look at WsSpringServlet.  Thinking about jibx-ws current servlet implementation, it's apparent that doPost method is implemented but not doGet.  Current thinking is: Inside the doGet  should confirm the 'wsdl' url parameter was passed, then via init-parameter look for a wsdl file with same name and if found stream it's contents to response out.  

Going to be out till next week, at which time I'll look at v0.9 WsSpringServlet extension/modification.

Thanks for your help, Nigel.

Jim

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jibx-users mailing list
jibx-users@...
https://lists.sourceforge.net/lists/listinfo/jibx-users

Re: deploy wsdl and get to it from webapp

by Nigel Charman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

jmpgate-tech@... wrote:
At this point, using jibx-ws, by itself. However, I have used Spring for a web application before. Does spring-framework have something web service centric, that I should be looking at?
Spring Framework does have Spring/WS, which can also be configured to use JiBX.  Spring/WS and Axis both offer more complete web services stacks than JiBX/WS, which aims to handle simple web services easily, and with great performance.

While JiBX/WS ships with basic Spring support (using the WsSpringServlet + Spring config), you can also use it without (via the WsServlet + JiBX/WS Service Definition).

so wouldn't need schema generation
    
Are you talking about the xsd file that was generated, too?  
  
I was meaning dynamic generation of WSDL by JiBX/WS (basically building jibx2wsdl into JiBX/WS). 
Do you have any specific needs for publishing the WSDL - eg. rewriting the service location?
    
Have a developer that needs to call my web service from VB6, ugh!  He wants to use some MS soap tool that with make everything easy. This tool depends on the wsdl.  
  
If you don't need your WSDL exposed via the web service, you could give him the WSDL out-of-band.

WsSpringServlet
    
I'll take a look at WsSpringServlet.  
Look at WsServlet since you're not using the Spring support.
Thinking about jibx-ws current servlet implementation, it's apparent that doPost method is implemented but not doGet.  Current thinking is: Inside the doGet  should confirm the 'wsdl' url parameter was passed, then via init-parameter look for a wsdl file with same name and if found stream it's contents to response out.  
  
correct. I'll see if I can add something basic like this to 0.9.1, with more complete WSDL support in a later release.

nigel.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jibx-users mailing list
jibx-users@...
https://lists.sourceforge.net/lists/listinfo/jibx-users