RE: Java2WSDL can't expand other interfaces referenced from an interface?

2006-11-15 Thread Sonali J. Kanaujia



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


RE: Java2WSDL can't expand other interfaces referenced from an interface?

2006-11-10 Thread Sonali J. Kanaujia



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 are
using?




RE:Java2WSDL can't expand other interfaces referenced from an interface?

2006-11-09 Thread Sonali J. Kanaujia
Title: Re: [Axis2] Help using AXIOMXPath



Re-sending the issue. Pleaserespond how to expand referenced interfaces, using Java2WSDL. 


Thanks,
Sonali



From: Sonali J. Kanaujia 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 9:31 
PMTo: axis-user@ws.apache.orgSubject: Java2WSDL can't 
expand other interfaces referenced from an interface?

Hi,
I'm 
using Axis 1.2.1 Java2WSDL tool on an interface that has methods that reference 
other interfaces. When I run the tool it complains that it can't convert the 
other interfaces toxml schema types 
as they are not beans classes (See error/warning below).
Is there anyoption/mechanism toauto-convertother interfaces to portTypes(?) and 
related xml schema elements as well, except converting all the referenced 
interfaces to impl bean classes.
-Sonali
Nov 8, 2006 3:23:44 
PM org.apache.axis.wsdl.fromJava.Emitter writePartToMessage 


WARNING: Please 
register a typemapping/beanmapping for 
[Lcom.sonicsw.bpel.service.mgmtapi.runtime.IProcessInstanceCounts;'Nov 8, 
2006 3:23:44 PM org.apache.axis.wsdl.fromJava.Types 
isBeanCompatible

WARNING: The class 
com.sonicsw.bpel.service.mgmtapi.runtime.IProcessInstanceCounts does not contain 
a default constructor, which is a requirement for a bean class. The class 
cannot be converted into an xml schema type. An xml schema anyType will be 
used to define this class in the wsdl 
file.


Axis 1.2 Message.getSOAPPartAsString( ) - redundant namespaces

2005-10-12 Thread Sonali J. Kanaujia



When using Axis's 
serializer code in Message.getSOAPPartAsString( ); to parse theSOAPEnvelope and serialize it as String, I see that default namespace gets appended to every 
element within the SOAP Body.


For example, if the inputSOAP Bodycontains:

parent 
xmlns=defaultNS
childhfkdsj/child
/parent

After Axis serializes it to a String it 
becomes:


parent 
xmlns=defaultNS
child 
xmlns=defaultNShfkdsj/child
/parent

Why is the 
additional default namespace getting added to the child element? Doesn't look 
like it's 
because of the parser feature http://xml.org/sax/features/namespaces=true. 
What is making Axis do this? Is there a way to turn it off?

Thanks,
Sonali