javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

wsImport fails to generate classes for a WSDL without SOAP binding #34

Closed glassfishrobot closed 17 years ago

glassfishrobot commented 18 years ago

Doing wsImport on the attached WSDL (which doesnt have a SOAP binding) fails.

<<< e-mail discussion >>> Hi Binod,

I see you're using wsomcpile, that means jaxrpc. wscompile only worked with the wsdl with SOAPBinding. It didn't support any other binding.

I tried with jaxws, wsimport tool. At present wsimport also only supports SOAPBinding. We can try to add a feature where such wsdls can be supported. Can you file an issue at jax-ws http://jax-ws.dev.java.net/servlets/ProjectIssues and we can try to add this feature in wsimport in the upcoming version of jaxws.

If you can use jaxws, as a work around, you can work with Dispatch and Provider endpoint?

-vivek.

Binod wrote:

Hi Vivek,

Can you answer this question? Please let us know, if you are not the right person to answer this?

thanks, Binod.

Hi Vivek,

Please see the attached WSDL. It does not contain any SOAP binding. Would it be possible to generate ws client stubs from this WSDL?

If it cannot, what is the recommended way for non-http bindings to creata WSDL?

thanks for your time, Binod.

Hi Binod,

When I try to call wscompile to generate client stub on the OutputFileService.wsdl, I got the following warning:

C:\Alaska\MyProjects\EchoProject\EchoEJBModule\bindings\fileout>c:\Alaska\sun\appserver\bin\wscompile -import config.xml -verbose -Xprintstacktrace warning: ignoring port "FileOut": no SOAP address specified warning: Service "MyFileService" does not contain any usable ports [ServiceInterfaceGenerator: creating service interface: com.sun.ejbtofile.MyFileService]

C:\Alaska\MyProjects\EchoProject\EchoEJBModule\bindings\fileout>c:\Alaska\sun\appserver\bin\wscompile -gen config.xml warning: ignoring port "FileOut": no SOAP address specified warning: Service "MyFileService" does not contain any usable ports

It only created the service interface and there is no corresponding porttype classes created. Do you know how to create ws client stubs for an internal WSDL such as File BC or JMS BC? I am trying to call the File BC from an EJB.

Thanks Venu

Environment

Operating System: All Platform: Sun

Affected Versions

[current]

glassfishrobot commented 18 years ago

Reported by binod@java.net

glassfishrobot commented 18 years ago

binod@java.net said: Created an attachment (id=19) WSDL file

glassfishrobot commented 18 years ago

vivekp@java.net said: Cause known. It will be fixed in jaxws 2.1 RI.

glassfishrobot commented 18 years ago

vivekp@java.net said:

glassfishrobot commented 18 years ago

vivekp@java.net said: I have added this functionality where you would use -extension switch to generate code for non-soap binding. The code will be generated from the abstract portType.

Try the nightly build of jaxws 2.1.

glassfishrobot commented 17 years ago

gmpatil@java.net said: Created an attachment (id=41) Sample WSDL from Yahoo news feeder

glassfishrobot commented 18 years ago

File: OutputFileService.wsdl Attached By: binod@java.net

glassfishrobot commented 17 years ago

File: yahoonews.wsdl Attached By: gmpatil@java.net

glassfishrobot commented 18 years ago

Was assigned to vivekp@java.net

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAX_WS-34

glassfishrobot commented 17 years ago

Marked as fixed on Monday, November 20th 2006, 11:00:28 am