The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: Generate one physical wsdl file for a web service

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: Jul 14, 2008 11:40 PM by: jitu
vinodsingh

Posts: 21
Generate one physical wsdl file for a web service
Posted: Apr 18, 2008 2:45 AM
 
  Click to reply to this thread Reply

Hi All,

The JAX-RPC used to generate only one physical WSDL file for a web service but JAX-WS generates multiple files (wsdl and xsd) for one web service. Though segregating different types of the stuff in different files looks logical but if one needs to distribute the WSDL then it is quite inconvenient to handle them.

Is there anyway to instruct JAX-WS to generate only one file?

Thanks,
Vinod

Glen Mazza
Re: Generate one physical wsdl file for a web service
Posted: Apr 21, 2008 9:02 PM   in response to: vinodsingh
  Click to reply to this thread Reply


Apparently not yet[1], but CXF's java2wsdl has a flag so you can choose
either way. I would say splitting them out though is a cleaner, more
modular design--all you need to do is load the wsdl's and xsd's into the
WEB-INF/wsdl directory of your WAR file. The SOAP clients accessing your
web service will automatically be able to download everything. For human
distribution, a ZIP file containing everything also will work.

If you really want everything in one file though, make an enhancement
request[2].

Glen

[1] https://metro.dev.java.net/nonav/1.0/docs/wsgen.html
[2] https://jax-ws.dev.java.net/servlets/ProjectIssues


metro wrote:
>
> Hi All,
>
> The JAX-RPC used to generate only one physical WSDL file for a web service
> but JAX-WS generates multiple files (wsdl and xsd) for one web service.
> Though segregating different types of the stuff in different files looks
> logical but if one needs to distribute the WSDL then it is quite
> inconvenient to handle them.
>
> Is there anyway to instruct JAX-WS to generate only one file?
>
> Thanks,
> Vinod
> [Message sent by forum member 'vinodsingh' (vinodsingh)]
>
> http://forums.java.net/jive/thread.jspa?messageID=269899
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>
>
>

--
View this message in context: http://www.nabble.com/Generate-one-physical-wsdl-file-for-a-web-service-tp16764084p16820917.html
Sent from the Metro - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net


vinodsingh

Posts: 21
Re: Generate one physical wsdl file for a web service
Posted: Apr 22, 2008 5:13 AM   in response to: vinodsingh
 
  Click to reply to this thread Reply

Looks like I am the only one who has this weird requirement ;-)

Vinod

jitu

Posts: 733
Re: Generate one physical wsdl file for a web service
Posted: Jul 14, 2008 11:40 PM   in response to: vinodsingh
 
  Click to reply to this thread Reply

Not really. There are some clients like adobe flash cannot consume wsdl with imports. I guess we need to prioritize this enhancement.




 XML java.net RSS