Hi,
My interface has methods that return other interface objects like:
public
IVersionInfo[] getAllVersions(
);
The first option "-a"
did notconvert the IVersionInfo interface into an XML type, and neither
did "-efoo.bar.IVersionInfo". However when I used "-e
foo.bar.impl.VersionInfoImpl" (where VersionInfoImpl is the implementation class
of IVersionInfo interface)then I saw VersionInfoImpl XML type being
defined in the WSDL types section.
So in a nutshell I could use the Java2WSDL tool to map
a JavaBean class to a corresponding XML type but not a Java
Interface.
-Sonali
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, November 12, 2006 11:45
AMTo: axis-user@ws.apache.orgSubject: RE: Java2WSDL can't expand other
interfaces referenced from an interface?
Hi
Sonali,
Can you try using
-a, --all
If this option is
specified, the Java2WSDL parser will look into extended classes to determine the
list of methods to export into the WSDL file.
Or
-e,
--extraClasses argument
Specify a space or
comma seperated list of class names which should be included in the types section of the WSDL document. This is
useful in the case where your service interface references a base class and you
would like your WSDL to contain XML Schema type defintions for these other
classes. The --extraClasses option can be specified duplicate times. Each
specification results in the additional classes being added to the list.
Because you
havent told the details of how your service references other interfaces, it is
not possible to tell which one you should use.
I hope this
helps.
Thanks,
Subir
S
From: Sonali J.
Kanaujia [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 8:31
PMTo: axis-user@ws.apache.orgSubject: RE: Java2WSDL can't expand other
interfaces referenced from an interface?
I'm using the following
Java2WSDLoptions:
java
org.apache.axis.wsdl.Java2WSDL -o MgmtAPI.wsdl -w Interface -n "http://www.sonicsw.com/bpel/runtime/mgmtapi"
-p"com.sonicsw.bpel.service.mgmtapi.runtime" "http://www.sonicsw.com/bpel/runtime/mgmtapi"
-y DOCUMENT
com.sonicsw.bpel.service.mgmtapi.runtime.IBPELServiceOperations
-Sonali
-
From
[EMAIL PROTECTED]
Subject
RE: Java2WSDL can't expand other interfaces
referenced from an interface?
Date
Fri, 10 Nov 2006 05:03:20
GMT
Can you post your java2wsdl task and let us know what options you areusing?
The information contained in
this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain proprietary,
confidential or privileged information. If you are not the intended
recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this
message and any attachments. WARNING: Computer viruses can be
transmitted via email. The recipient should check this email and any
attachments for the presence of viruses. The company accepts no liability
for any damage caused by any virus transmitted by this
email.www.wipro.com
The information contained in
this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain proprietary,
confidential or privileged information. If you are not the intended
recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this
message and any attachments. WARNING: Computer viruses can be
transmitted via email. The recipient should check this email and any
attachments for the presence of viruses. The company accepts no liability
for any damage caused by any virus transmitted by this
email.www.wipro.com