Re: WSDL2Java throws IOException

2010-02-10 Thread Venkatesh Audinarayanan
After I renamed the namespace name to fix the issue, started getting an NPE
in Axis parser code (with both 1.2 and 1.4):
java.lang.NullPointerException
   at
org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.getAsFieldName(JavaB
eanHelperWriter.java:435)
   at
org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.writeMetaData(JavaBe
anHelperWriter.java:325)
   at
org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.writeFileBody(JavaBe
anHelperWriter.java:183)
   at
org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
   at
org.apache.axis.wsdl.toJava.JavaBeanWriter.writeFileBody(JavaBeanWrit
er.java:257)
   at
org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
   at
org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.ja
va:1406)
   at
org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.ja
va:113)
   at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(Jav
aGeneratorFactory.java:421)
   at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:547)
   at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
   at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
   at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
   at java.lang.Thread.run(Unknown Source)
Thanks,
Venkatesh.


On Wed, Feb 10, 2010 at 11:33 AM, Venkatesh Audinarayanan 
venkatesh.a...@gmail.com wrote:

 Hi All,
 Am getting the following error while trying to parse my service wsdl with
 Axis 1.2 wsdl2java:
 Feb 10, 2010 11:28:59 AM org.apache.axis.utils.JavaUtils
 isAttachmentSupported
 WARNING: Unable to find required classes (javax.activation.DataHandler and
 javax
 .mail.internet.MimeMultipart). Attachment support is disabled.
 java.io.IOException: Type {
 http://www.w3.org/2000/09/xmldsig#}SignaturePropertyhttp://www.w3.org/2000/09/xmldsig#%7DSignatureProperty
 is referenced but not defined.
 at
 org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
 Table.java:665)
 at
 org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545
 )
 at
 org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
 a:518)
 at
 org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
 a:495)
 at
 org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
 at java.lang.Thread.run(Unknown Source)

 is it reporting the actual error? is this due to some issue with WSDL?
 Appreciate your help.
 Thanks,
 Venkatesh.



RE: wsdl2java -R option

2010-01-27 Thread Doughty, Michael
I use the -R option in Axis 1.5.1 and it works ok for me.  However, I supply a 
relative path.  If I try to supply an absolute path as you have here, I get a 
CodeGenerationException.

From: rahul yadav [mailto:rahulyada...@gmail.com]
Sent: Wednesday, January 27, 2010 5:07 AM
To: u...@xmlbeans.apache.org; axis-user@ws.apache.org
Subject: wsdl2java -R option

Has anybody used -R option in wsdl2java codegeneration with xmlbeans binding, I 
am using Axis1.5.1 ?
here is my command line...
wsdl2java -uri d:\test.wsdl -d xmlbeans -o d:\src -p com.axis.test -R 
d:\resourceTest

 It throws following exception...
 org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

running same command without -R flag generates code successfully.


Thanks,
Rahul Yadav



Re: WSDL2Java: How to generating a single serivce.xml for multiple wsdl files?

2009-12-31 Thread Amila Suriarachchi
On Wed, Dec 30, 2009 at 11:07 AM, fazlan faz...@wso2.com wrote:


 Hi All,

 I'am trying to generate a *.aar from multiple wsdl's using the wsdl2java
 ant
 task.
 But I;am having a problem when generating services.xml files.

 My requirement is to generate a single services.xml for all the *.wsdl's,
 rather than services.xml files for each *.wsdl file.

 Is this possible?

no unless you merge your wsdl files into into one by creating multiple
services.

thanks,
Amila.

 If so, Pleases provide me with a snippet of ant script how
 to achieve this.

 e.g:
 I need something like the following,

 serviceGroup
service name=ServiceA_From_WsdlA
. . .
/service
service name=ServiceB_From_WsdlB
 . . .
/service
 /serviceGroup

 but, at present it generates in seperate services.xml files as,

 services.xml for WsdlA
 serviceGroup
service name=ServiceA_From_WsdlA
. . .
/service
 /serviceGroup

 services.xml for WsdlB
 serviceGroup
service name=ServiceB_From_WsdlB
. . .
/service
 /serviceGroup

 Thanks  Regards,
 Fazlan
 --
 View this message in context:
 http://old.nabble.com/WSDL2Java%3A-How-to-generating-a-single-serivce.xml-for-multiple-wsdl-files--tp26964298p26964298.html
 Sent from the Axis - User mailing list archive at Nabble.com.




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: WSDL2Java: How to generating a single serivce.xml for multiple wsdl files?

2009-12-31 Thread fazlan

Thanks for the update Amila!


Amila Suriarachchi wrote:
 
 On Wed, Dec 30, 2009 at 11:07 AM, fazlan faz...@wso2.com wrote:
 

 Hi All,

 I'am trying to generate a *.aar from multiple wsdl's using the wsdl2java
 ant
 task.
 But I;am having a problem when generating services.xml files.

 My requirement is to generate a single services.xml for all the *.wsdl's,
 rather than services.xml files for each *.wsdl file.

 Is this possible?

 no unless you merge your wsdl files into into one by creating multiple
 services.
 
 thanks,
 Amila.
 
 If so, Pleases provide me with a snippet of ant script how
 to achieve this.

 e.g:
 I need something like the following,

 serviceGroup
service name=ServiceA_From_WsdlA
. . .
/service
service name=ServiceB_From_WsdlB
 . . .
/service
 /serviceGroup

 but, at present it generates in seperate services.xml files as,

 services.xml for WsdlA
 serviceGroup
service name=ServiceA_From_WsdlA
. . .
/service
 /serviceGroup

 services.xml for WsdlB
 serviceGroup
service name=ServiceB_From_WsdlB
. . .
/service
 /serviceGroup

 Thanks  Regards,
 Fazlan
 --
 View this message in context:
 http://old.nabble.com/WSDL2Java%3A-How-to-generating-a-single-serivce.xml-for-multiple-wsdl-files--tp26964298p26964298.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 
 
 -- 
 Amila Suriarachchi
 WSO2 Inc.
 blog: http://amilachinthaka.blogspot.com/
 
 

-- 
View this message in context: 
http://old.nabble.com/WSDL2Java%3A-How-to-generating-a-single-serivce.xml-for-multiple-wsdl-files--tp26964298p26984018.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: WSDL2Java

2009-12-23 Thread Demetris


Yep - I guess I answered my own question of how to manage the namespace. 
Since I am not really
interested on using the namespace on the client side other than building 
local directories to store the

stubs, I can simple use the --package option to generate what I need.
If there is any other (more efficient and correct method) out there by 
all means stop me ! ;)


Thanks

Demetris wrote:


Hi all,

   I intercept and transport the outgoing HTTP GET request to a remote 
axis container/engine
over a p2p overlay. I reissue the GET command using HTTP libraries on 
the remote side and the
URL I sent always has the http://127.0.0.1:8080 in it .. however the 
WSDL I get back does not
always (and I say does not always because it is not consistent over 
identical reps) contain this

local address in its namespace:

ex. wsdl:definitions 
targetNamespace=http://cypress.ne.uk:25718/axis/services/remoteBooks73862E4EF09047ABB172814D14F915A9; 


instead of
ex. wsdl:definitions 
targetNamespace=http://127.0.0.1:25718/axis/services/remoteBooks73862E4EF09047ABB172814D14F915A9; 


etc.

Why is this the case and should I force the namespace to be what I 
want on the client side by

using the --package command as a safeguard?

Thanks much
Demetris





Re: wsdl2java and Two Similar Elements

2009-10-29 Thread Amila Suriarachchi
On Thu, Oct 29, 2009 at 12:28 PM, Matthew McKenna mtmckenna...@mac.comwrote:

 Hello-

 I have a WSDL file that imports several XML schemas.  One of those schemas
 has the following:

 xs:element name=ITEM-ID
  xs:complexType
 xs:sequence maxOccurs=unbounded
 xs:element ref=emsg:Item-Id/
 /xs:sequence
   /xs:complexType
 /xs:element

 followed very closely by:

 xs:element name=Item-Id
 xs:complexType
 xs:simpleContent
 xs:extension base=xs:string
 xs:attribute name=Type use=required
 xs:simpleType
 xs:restriction base=xs:NMTOKEN
 xs:enumeration value=14/
 xs:enumeration value=SA/
 xs:enumeration value=VN/
 xs:enumeration value=CR/
 xs:enumeration value=ON/
 xs:enumeration value=PK/
 xs:enumeration value=TG/
 /xs:restriction
 /xs:simpleType
 /xs:attribute
 /xs:extension
 /xs:simpleContent
 /xs:complexType
 /xs:element

 In order to generate the appropriate Java code, I am using the following in
 my build.xml file:

taskdef name=wsdl2java
 classname=org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask
classpath refid=cp/
/taskdef

target name=generateJavaFromWSDL depends=prepare
echo message=Running Axis WSDL2Java tool/
wsdl2java url=${wsdlpath}/X.wsdl
output=generated/src
serverSide=false
all=true
 wraparrays=true
verbose=true
mapping namespace=${A-namespace}
  package=${A-package-name}/
mapping namespace=${services-namespace}
 package=${services-package-name}/
mapping namespace=${exchange-namespace}
 package=${exchange-package-name}/
mapping namespace=${types-namespace}
 package=${types-package-name}/
/wsdl2java
/target


 The problem I am running in to is that wsdl2java generates a ITEMID.java
 file, but the class declaration
 and constructor are ItemId.  All references to the ITEMID object in other
 generated code 'cannot be resolved'.

 My question - Is there some way I can generate the two item id objects?

 Thanks very much for any assistance.


this seems to be a problem with ADB. please log a jira with your wsdl file.

try with another databinding framework eg -d xmlbeans, -d jaxbri

thanks,
Amila.


 Matthew McKenna
 mtmckenna...@mac.com




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: wsdl2java and Two Similar Elements

2009-10-29 Thread Matthew McKenna
When I use Axis2, I get a whole host of other problems.  With Axis 1.4 (what I 
am currently using) I get the behavior described
in my original post.

Thanks

Matthew McKenna
mtmckenna...@mac.com

 
On Thursday, October 29, 2009, at 03:09AM, Amila Suriarachchi 
amilasuriarach...@gmail.com wrote:



RE: wsdl2java issue when parsing wsdl that uses empty namespaces

2009-10-15 Thread Alick Buckley
Hi Sean,
 
You could change PhoneType to string
 
You lose the restriction on the possible values, but at least the SOAP agent
will work.
 
Your application that calls the Axis generated classes could handle the
phone type value check.
 
   s:attribute name=PhoneType type=s:string use=required /
 
You are using the 22 April 2006 version of Axis 1.4, you could look at using
a later over-night build.
 
I have used 19 November 2006 Axis 1.4 for several years.
 
http://people.apache.org/dist/axis/nightly/
http://people.apache.org/dist/axis/nightly/ 
 
axis-bin-1_4.zip   19-Nov-2006 02:33   11M
 


 
 

-Original Message-
From: Sean O'Leary [mailto:razorho...@gmail.com]
Sent: Friday, 16 October 2009 5:00 AM
To: axis-user@ws.apache.org
Subject: wsdl2java issue when parsing wsdl that uses empty namespaces


Hi everyone, 


Using: Axis version 1.4 (4/22/2006)


I'm using wsdl2java to compile a wsdl for a service that one of my customers
has provided. Everything is fine except for they have one type that they
have declared in a separate schema in the wsdl with no targetNamespace and
then they refer to that type from another schema without putting anything in
for the namespace prefix. This seems to be valid wsdl (using no namespace)
but wsdl2java throws the following exception:


java.io.IOException: Type PhoneType is referenced but not defined.
at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
Table.java:665)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545
)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:518)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)




Here's the offending WSDL snippet:


?xml version=1.0 encoding=utf-8?
wsdl:definitions xmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/
http://schemas.xmlsoap.org/wsdl/soap/  xmlns:tm=
http://microsoft.com/wsdl/mime/textMatching/
http://microsoft.com/wsdl/mime/textMatching/  xmlns:soapenc=
http://schemas.xmlsoap.org/soap/encoding/
http://schemas.xmlsoap.org/soap/encoding/  xmlns:mime=
http://schemas.xmlsoap.org/wsdl/mime/
http://schemas.xmlsoap.org/wsdl/mime/  xmlns:tns=
http://services.xyzcompany.com http://services.xyzcompany.com  xmlns:s=
http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema 
xmlns:soap12= http://schemas.xmlsoap.org/wsdl/soap12/
http://schemas.xmlsoap.org/wsdl/soap12/  xmlns:http=
http://schemas.xmlsoap.org/wsdl/http/
http://schemas.xmlsoap.org/wsdl/http/  targetNamespace=
http://services.xyzcompany.com http://services.xyzcompany.com 
xmlns:wsdl= http://schemas.xmlsoap.org/wsdl/
http://schemas.xmlsoap.org/wsdl/ 
  
  wsdl:types
  
s:schema elementFormDefault=qualified targetNamespace=
http://services.xyzcompany.com http://services.xyzcompany.com 
  s:import /
  
  
  
  


  s:complexType name=Phone
  s:sequence
s:element minOccurs=0 maxOccurs=1 name=PhoneDescription
type=s:string /
s:element minOccurs=0 maxOccurs=1 name=PhoneNumber type=s:string /
s:element minOccurs=0 maxOccurs=1 name=Extension type=s:string /
  /s:sequence
  s:attribute name=PhoneType type=PhoneType use=required /
  /s:complexType
  
  
  
  
/s:schema

s:schema elementFormDefault=qualified
  s:simpleType name=PhoneType
s:restriction base=s:string
  s:enumeration value=office /
  s:enumeration value=cell /
  s:enumeration value=fax /
  s:enumeration value=personal /
  s:enumeration value=home /
  s:enumeration value=other /
/s:restriction
  /s:simpleType
/s:schema

  /wsdl:types


/wsdl:definitions




If I add  targetNamespace= http://services.xyzcompany.com
http://services.xyzcompany.com   to the 2nd schema and then prefix the
type=PhoneType so it is type=tns:PhoneType, wsdl2java is able to compile
the wsdl. Then the problem is of course as soon as I use the generated code
to connect to the service it errors out as axis complains about the same
issue with the service's wsdl.


Any help you can provide is very much appreciated.


Thanks!
Sean



Re: WSDL2Java tool generating invalid package name

2009-09-06 Thread Venkatesh Audinarayanan

 Hi,
 Am using Axis 1.4 version. Have attached the WSDL file.
 I use the following command to generate proxy and stub classes
 java org.apache.axis.wsdl.WSDL2Java  -o
 C:\ddrive\10.3\soap_test\axis14_latest\axis-1_4\sigan c:\Sigan.wsdl

 If you look at the attached WSDL (Rename  file extension to zip and unzip)
 , the namespace is not an URL. It's like relative directory path
 br/com/vivo/sigan/integracao/schema/interface8/pesquisa/PesquisaMSISDNXMLEntrada.


 If you look at the package declarations/package member references in the
 generated classes, you will find that, it uses / as package name separator
 i.e., package
 br/com/vivo/sigan/integracao/schema/interface8/PesquisaEntradaMSISDN;
 due to this, the classes don't get compiled..
 I don't want to explicitly specify package name using -p option as this
 leads to other issues.
 is there any solution for this issue?
 Please advise.
 Appreciate your quick reply.
 Thanks,
 Venkatesh.




Sigan.zap
Description: Binary data


Re: WSDL2Java header creation issues

2009-08-12 Thread sksalver

You can use axis client stub class methos set header to do  this.

Thanks,
Swapna

samanth marisetty wrote:
 
 Hi,
 
I am using WSDL2Java to create java stubs and want to write a client. I
 wanted to know if there is any argument that I need to use, to generate
 the
 headers.
 
   Thanks,
 Samanth.
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL2Java-header-creation-issues-tp24940347p24941612.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: WSDL2Java header creation issues

2009-08-12 Thread samanth marisetty
Hi,

I tried to do this.

header.addChildElement(userID).addTextNode(java);
header.addChildElement(userPwd).addTextNode(sun);
((Stub) portType).setHeader(header);

but the problem is, I get a null response back from the service. I used a
tool called SoapUI to call the service, I was getting back the response. Is
there a way to see what SOAP xml request is being sent? I mean a way to log
or do a standard out?

Thanks,
Samanth.

On Wed, Aug 12, 2009 at 1:51 PM, sksalver sksal...@gmail.com wrote:


 You can use axis client stub class methos set header to do  this.

 Thanks,
 Swapna

 samanth marisetty wrote:
 
  Hi,
 
 I am using WSDL2Java to create java stubs and want to write a client.
 I
  wanted to know if there is any argument that I need to use, to generate
  the
  headers.
 
Thanks,
  Samanth.
 
 

 --
 View this message in context:
 http://www.nabble.com/WSDL2Java-header-creation-issues-tp24940347p24941612.html
 Sent from the Axis - User mailing list archive at Nabble.com.




Re: WSDL2Java header creation issues

2009-08-12 Thread sksalver

add the following where it says _resp = _call.invoke in your stub class


//*

inputXML =
_call.getMessageContext().getRequestMessage().getSOAPPartAsString();
outputXML =
_call.getMessageContext().getResponseMessage().getSOAPPartAsString();
 

//*

samanth marisetty wrote:
 
 Hi,
 
 I tried to do this.
 
 header.addChildElement(userID).addTextNode(java);
 header.addChildElement(userPwd).addTextNode(sun);
 ((Stub) portType).setHeader(header);
 
 but the problem is, I get a null response back from the service. I used a
 tool called SoapUI to call the service, I was getting back the response.
 Is
 there a way to see what SOAP xml request is being sent? I mean a way to
 log
 or do a standard out?
 
 Thanks,
 Samanth.
 
 On Wed, Aug 12, 2009 at 1:51 PM, sksalver sksal...@gmail.com wrote:
 

 You can use axis client stub class methos set header to do  this.

 Thanks,
 Swapna

 samanth marisetty wrote:
 
  Hi,
 
 I am using WSDL2Java to create java stubs and want to write a
 client.
 I
  wanted to know if there is any argument that I need to use, to generate
  the
  headers.
 
Thanks,
  Samanth.
 
 

 --
 View this message in context:
 http://www.nabble.com/WSDL2Java-header-creation-issues-tp24940347p24941612.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL2Java-header-creation-issues-tp24940347p24942634.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: WSDL2Java header creation issues

2009-08-12 Thread samanth marisetty
Hi Swapna,

   Thanks for you response.

**I am doing something like this:

WebServiceLocator service = new WebServiceLocator();
WebServiceSoap_PortType portType = null;

try {

portType = service.getWebServiceSoap();


service.setWebServiceSoapEndpointAddress(address);
((Stub)portType).setUsername(java);
((Stub)portType).setPassword(sun);

ConsumptionHistoryDetails chd = new
ConsumptionHistoryDetails(1234);

ConsumptionHistoryDetailsResponse response  =
portType.getConsumptionHistoryDetails(chd);

System.out.println(request :
+service.getCall().getMessageContext().getRequestMessage().getSOAPPartAsString());

}catch(Exception e){
e.printStackTrace();
}

looks like I am not able to connect to the service. Could you please let me
know if I am missing something?

Thanks,
Samanth.


On Wed, Aug 12, 2009 at 2:56 PM, sksalver sksal...@gmail.com wrote:


 add the following where it says _resp = _call.invoke in your stub class



 //*

inputXML =
 _call.getMessageContext().getRequestMessage().getSOAPPartAsString();
outputXML =
 _call.getMessageContext().getResponseMessage().getSOAPPartAsString();



 //*

 samanth marisetty wrote:
 
  Hi,
 
  I tried to do this.
 
  header.addChildElement(userID).addTextNode(java);
  header.addChildElement(userPwd).addTextNode(sun);
  ((Stub) portType).setHeader(header);
 
  but the problem is, I get a null response back from the service. I used a
  tool called SoapUI to call the service, I was getting back the response.
  Is
  there a way to see what SOAP xml request is being sent? I mean a way to
  log
  or do a standard out?
 
  Thanks,
  Samanth.
 
  On Wed, Aug 12, 2009 at 1:51 PM, sksalver sksal...@gmail.com wrote:
 
 
  You can use axis client stub class methos set header to do  this.
 
  Thanks,
  Swapna
 
  samanth marisetty wrote:
  
   Hi,
  
  I am using WSDL2Java to create java stubs and want to write a
  client.
  I
   wanted to know if there is any argument that I need to use, to
 generate
   the
   headers.
  
 Thanks,
   Samanth.
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/WSDL2Java-header-creation-issues-tp24940347p24941612.html
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/WSDL2Java-header-creation-issues-tp24940347p24942634.html
 Sent from the Axis - User mailing list archive at Nabble.com.




Re: WSDL2Java: Different class mappings of nested complex types with identical names with JDKs of different vendors.

2009-07-31 Thread Andreas Veithen
Norman,

Can you open a JIRA for this issue? Thanks.

Andreas

On Fri, Jul 31, 2009 at 11:32, Norman Kubicekn.kubi...@intershop.de wrote:
 Hi,



 we run in to some problems developing an Axis2 v1.5 Web service client with
 SUN JDK 6 (different platforms) and IBM JDK 6 (PowerPC Linux) in parallel.

 The WSDL of the Web service contains following nested type definitions with
 identical names:



 …

 xsd:complexType name=string2stringMap

   xsd:sequence

     xsd:element maxOccurs=unbounded minOccurs=0 name=entry

   xsd:complexType

     xsd:sequence

  xsd:element maxOccurs=1 minOccurs=0
 name=key type=xsd:string/

  xsd:element maxOccurs=1 minOccurs=0
 name=value type=xsd:string/

     /xsd:sequence

   /xsd:complexType

     /xsd:element

   /xsd:sequence

 /xsd:complexType



 xsd:complexType name=anyType2anyTypeMap

   xsd:sequence

     xsd:element maxOccurs=unbounded minOccurs=0 name=entry

   xsd:complexType

     xsd:sequence

  xsd:element maxOccurs=1 minOccurs=0
 name=key type=xsd:anyType/

  xsd:element maxOccurs=1 minOccurs=0
 name=value type=xsd:anyType/

     /xsd:sequence

   /xsd:complexType

     /xsd:element

   /xsd:sequence

 /xsd:complexType

 …



 As result the WSDL2Java tool generates inner or separate classes (depends on
 –u command line option) for the “entry” type definitions with the following
 names:



 Entry_type0.java

 Entry_type1.java



 The problem is the order the Entry_type*.java classes are created, i.e.
 Entry_type0.java belongs to the string2stringMap class in the SUN JDK, but
 to the anyType2anyTypeMap class in the IBM JDK. As result source code that
 accesses these classes is affected and has to be adapted for the JDKs of
 both vendors.



 Is there any fix or workaround for this issue?



 Regards,

 Norman Kubicek












Re: WSDL2Java StringIndexOutOfBoundException

2009-07-15 Thread Tina Vießmann

Ok, I've found the cause of the problem.
It seems to be a problem with Axis2 1.5 itself. I've tried to build a 
service out of different wsdl files and got the same error every time - 
also with a file originally generated by Axis2 once. I've switched to 
version 1.4.1 and everything is fine now.


Greetings,
Tina


Hi everyone,

I try to generate a service out of my wsdl file. Unfortunately, I get 
a exception I can't interpret.

Does anyone have an idea what could be the cause?

Greetings,
Tina


Exception in thread main 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
   at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:159) 


   at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
   at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out 
of range: -1

   at java.lang.String.substring(String.java:1938)
   at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getBaseURI(CodeGenerationEngine.java:341) 

   at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:151) 


   ... 2 more





Re: WSDL2Java generates uncompilable code

2009-06-12 Thread sri ram

Hello  Again ,

Do i need to put in some more details 
Please let me know.
This is a major issue.



--- On Wed, 10/6/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: WSDL2Java generates uncompilable code
To: axis-user@ws.apache.org
Date: Wednesday, 10 June, 2009, 4:29 PM

Hi axis 1.4 Users,
I have an issue while using axis 1.4 engine .

While I run wsdl2java
 WSDL2Java generates uncompilable code 

Issue is : 
(java.lang.String)
super(_value);
^
1 error
 Because the code invokes a superconstructor but doesn't extend any 
other class. I'm assuming that the problem is in the use of the extension 
element.

For this scenario  I have found the probable solution given from one of the 
users 
in this link

https://issues.apache.org/jira/browse/AXIS-2605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505768

He modified the JavaBeanWriter.java file .
Is that the right fix should I follow it.
Can anyone confirm  or give an alternate fix for this .


Can anyone give a solution...
 

Thanks 
Sriram











   Explore and discover exciting holidays and getaways with Yahoo! India 
Travel  Click here!


  Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/

Re: WSDL2Java generates uncompilable code

2009-06-11 Thread sri ram
resending .
This issue should have been addressed before, can anyone guide me its important.

--- On Wed, 10/6/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: WSDL2Java generates uncompilable code
To: axis-user@ws.apache.org
Date: Wednesday, 10 June, 2009, 4:29 PM

Hi axis 1.4 Users,
I have an issue while using axis 1.4 engine .

While I run wsdl2java
 WSDL2Java generates uncompilable code 

Issue is : 
(java.lang.String)
super(_value);
^
1 error
 Because the code invokes a superconstructor but doesn't extend any 
other class. I'm assuming that the problem is in the use of the extension 
element.

For this scenario  I have found the probable solution given from one of the 
users 
in this link

https://issues.apache.org/jira/browse/AXIS-2605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505768

He modified the JavaBeanWriter.java file .
Is that the right fix should I follow it.
Can anyone confirm  or give an alternate fix for this .


Can anyone give a solution...
 

Thanks 
Sriram











   Explore and discover exciting holidays and getaways with Yahoo! India 
Travel  Click here!


  Cricket on your mind? Visit the ultimate cricket website. Enter 
http://beta.cricket.yahoo.com

RE: wsdl2java

2009-05-21 Thread Caristi, Joe
The answer may be contained in the rest of the Exception stack trace.  You 
could look there for clues and if you still can't figure it out, post the 
entire trace.

-Original Message-
From: TomazM [mailto:tomaz.majerh...@arnes.si]
Sent: Thursday, May 21, 2009 10:34 AM
To: axis
Subject: wsdl2java

I have error when using jbix

%AXIS2_HOME%\bin\wsdl2java  -uri jibx\META-INF\IPIS_JIBX.wsdl -Ebindingfile 
jibx\META-INF\binding.xml -p service.jibx -d jibx -s -ss -sd -ssi -uw -o
build_jibx
 Exception in thread main 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL


Is there any way to determine in which line of wsdl is error.



wsdl:

?xml version=1.0 encoding=UTF-8?
wsdl:definitions
targetNamespace=http://aris.ipis/;
xmlns=http://schemas.xmlsoap.org/wsdl/;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:tns=http://arnes.ipis/;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
wsdl:documentationIPISOZ/wsdl:documentation
wsdl:types

xsd:schema xmlns:tns=http://arnes.ipis/; 
targetNamespace=http://arnes.ipis/;
xsd:complexType name=Organizacija
xsd:sequence
xsd:element minOccurs=0 name=fax nillable=true 
type=xsd:string/
xsd:element minOccurs=0 name=id nillable=true 
type=xsd:int/
xsd:element minOccurs=0 name=ime nillable=true 
type=xsd:string/
xsd:element minOccurs=0 name=maticna nillable=true 
type=xsd:string/
xsd:element minOccurs=0 name=mesto nillable=true 
type=xsd:string/
xsd:element minOccurs=0 name=opombe nillable=true 
type=xsd:string/
xsd:element minOccurs=0 name=org_mat nillable=true 
type=xsd:string/
xsd:element minOccurs=0 name=posta nillable=true 
type=xsd:string/
xsd:element minOccurs=0 name=telefon nillable=true 
type=xsd:string/
xsd:element minOccurs=0 name=ulica nillable=true 
type=xsd:string/
xsd:element minOccurs=0 name=updated nillable=true 
type=xsd:dateTime/
/xsd:sequence
/xsd:complexType

xsd:complexType name=Exception
xsd:sequence
xsd:element minOccurs=0 name=Exception nillable=true 
type=xsd:anyType/
/xsd:sequence
/xsd:complexType
xsd:element name=Exception
xsd:complexType
xsd:sequence
xsd:element minOccurs=0 name=Exception 
nillable=true type=tns:Exception/
/xsd:sequence
/xsd:complexType
/xsd:element
xsd:element name=login
xsd:complexType
xsd:sequence
xsd:element minOccurs=0 name=user nillable=true 
type=xsd:string/
xsd:element minOccurs=0 name=pass nillable=true 
type=xsd:string/
/xsd:sequence
/xsd:complexType
/xsd:element
xsd:element name=loginResponse
xsd:complexType
xsd:sequence
xsd:element minOccurs=0 name=return 
type=xsd:boolean/
/xsd:sequence
/xsd:complexType
/xsd:element
xsd:element name=getOrgList_pooblascenec
xsd:complexType
xsd:sequence
xsd:element minOccurs=0 name=user nillable=true 
type=xsd:string/
/xsd:sequence
/xsd:complexType
/xsd:element
xsd:element name=getOrgList_pooblascenecResponse
xsd:complexType
xsd:sequence
xsd:element maxOccurs=unbounded minOccurs=0 
name=return nillable=true type=tns:OrganizacijaSmal/
/xsd:sequence
/xsd:complexType
/xsd:element
xsd:complexType name=OrganizacijaSmal
xsd:sequence
xsd:element minOccurs=0 name=id nillable=true 
type=xsd:int/
xsd:element minOccurs=0 name=ime nillable=true 
type=xsd:string/
/xsd:sequence
/xsd:complexType
/xsd:schema
/wsdl:types


wsdl:message name=getOrgList_pooblascenecRequest
wsdl:part name=parameters element=tns:getOrgList_pooblascenec/
/wsdl:message
wsdl:message name=getOrgList_pooblascenecResponse
wsdl:part name=parameters 
element=tns:getOrgList_pooblascenecResponse/
/wsdl:message
wsdl:message name=Exception
wsdl:part name=parameters element=tns:Exception/
/wsdl:message
wsdl:message name=loginRequest
wsdl:part name=parameters element=tns:login/
/wsdl:message
wsdl:message name=loginResponse
wsdl:part name=parameters 

Re: WSDL2JAVA created uncompilable Stub

2009-04-07 Thread Jacques46

Hi Pricilla,

I'll answer you to the best of my knowledge, which is limited to how I've
used Axis so far.

The file with the word Skeleton in it is the only file that you should
have to modify.  The java class that you created in the first steps (to come
up with the WSDL file) probably only contained the signatures of your web
service methods.  The Skeleton file is pretty much the equivalent of your
.java file, e.g. it only contains method signatures, but it uses SOAP object
types instead of the types that you used.

Look for your method names in the skeleton file.  There should be a comment
for each of them telling you that you need to implement them (along with a
thrown exception).  In other words, for each of your methods, remove
everything between the opening and closing braces, and start coding.

The WSDL2Java process should have also created a build.xml file.  Once your
Skeleton is coded, you can right-click this build file, and choose Run
as..., and then Ant Build.  This will compile your classes (skeleton
included), and create the .class files and a .aar file in the build
sub-directory of your project (which it will create).

The .aar file is the archive that you need to deploy to a container. 
Personnally, I use Tomcat, and so that's what I'll talk to you about.

First, you need to download and install Tomcat.  Once tomcat is installed,
you need to download and install the Axis2 War Archive FOR THE SAME VERSION
OF AXIS2 THAT YOU USED TO CREATE YOUR WEB SERVICE.  

To install the .war file, you have two options : copy it to the
TOMCAT_HOME/webapps directory (and restart tomcat just to make sure), or
use the Tomcat Manager application that comes with Tomcat.  I'll let you
search a bit for that...

Once Axis2 is installed, you can access it by going to
http://server:8080/axis2.  Three options will be offered there : Services,
Validate, and Admin.  You can validate your Axis2 installation with the
Validate option.

To deploy your service, again, you have two options.  1- drop your .aar file
in the TOMCAT_HOME/webapps/axis2/WEB-INF/services directory, or use the
deployment tool in the Admin section of axis2 (user/pass is admin/axis2). 
The deployment tool is the first option in the Admin section.

For development, I also recommend editing the
TOMCAT_HOME/webapps/axis2/WEB-INF/conf/axis2.xml configuration file.  The
line to edit is has hotupdate in it, you should set this parameter to
true.  This will make Axis re-deploy your web service every time you
overwrite the .aar file with a new one.

As for the stub, don't touch it.  It was created by WSDL2Java to match the
method signatures of your web service.  What you need to do in your client
is instantiate it, and call its methods.  It will take care of communicating
with your web service and returning you the result.

Here's a sample of my code that uses my stub.  This is the more complex
asynchronous call, for which you need to create a callback object.  The more
direct synchronous call is more intuitive... :

Dispatch request = new Dispatch();
DispatcherStub stub = new DispatcherStub(http://; + dispatcherHost +
:8080/axis2/services/Dispatcher);
Callback callback = new Callback();
callback.setId(obj.getId());
request.setId(obj.getId());
stub.startdispatch(request, callback);

I'm sure I forgot a detail or two, but that's the essence of it.


pricilla p wrote:
 
 Hi Jacques,
 
 I am new to axis.
 
 I have to develop an web service
 
 I have followed the steps you mentioned and created a wsdl, skeleton and
 stubs.
 
 Could you pls tell me what changes i need to make it in skeleton and stub
 files
 
 Also pls tell me how to deploy this web service.
 
 
 Thanks,
 Pricilla.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL2JAVA-created-uncompilable-Stub-tp17775033p22927751.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: WSDL2JAVA created uncompilable Stub

2009-04-06 Thread pricilla p
Hi Jacques,

I am new to axis.

I have to develop an web service

I have followed the steps you mentioned and created a wsdl, skeleton and
stubs.

Could you pls tell me what changes i need to make it in skeleton and stub
files

Also pls tell me how to deploy this web service.


Thanks,
Pricilla.


On Fri, Apr 3, 2009 at 11:43 AM, Jacques46 jacques.pou...@gmail.com wrote:


 Just putting in my 2 cents, because a week ago I knew nothing about Axis,
 and
 I had to overcome some of the hurdles that have been encountered by other
 posters in the past...  I hope I can avoid other people the same wasted
 time
 that I experienced...

 My environment is Eclipse 3.2.2, with the Codegen Wizard plugin.

 I have used the wizard in both directions (wsdl2java and java2wsdl) in
 versions 1.3 and 1.4.1 of Axis2.

 About the wizard : when you go to the Axis website, you can download the
 Codegen Wizard plugin for any version of Axis.  What's misleading is that
 when you unzip each version (1.3 and 1.4.1), they both are contained in the
 Axis2_Codegen_Wizard_1.3.0 directory.  Having successfully created my
 stubs with version 1.3 of the wizard and Axis libraries, I now wanted to
 compile them with Axis2 1.4.1.  My first reaction when I downloaded the
 1.4.1 wizard was to say hmmm... seems the wizard hasn't changed since
 version 1.3, because it's in the same directory name.  WRONG !  Upon
 further inspection, I clearly saw that the libraries in the /lib directory
 of the plugin were indeed different.

 So, here are the steps I would recommend for a successful compile :

 - If you're in Eclipse, EXIT !
 - If you have not done so yet, download the Axis2 standard distribution
 binary for the version you want, unzip it to some directory, and then
 create
 an environment variable AXIS2_HOME that points to that directory.
 - Download the Codegen Wizard for the Axis version you're shooting for (the
 same version as the standard distribution).  Unzip it into your Eclipse's
 plugins directory.  Note that if you had a previous version of the plugin
 there, you're gonna have to overwrite it with this new one if they both
 have
 the same name.
 - Copy the geronimo-stax-api_1.0_spec-1.0.1.jar and
 backport-util-concurrent-3.1.jar from the AXIS2_HOME/lib directory to the
 Wizard's /lib directory.
 - Edit the plugin.xml file of the Wizard.  You'll see in there a bunch of
 library nodes, add 2 nodes pointing to the jars you just copied.
 - Start Eclipse
 - Create a new project
 - In that project, import the jars from the AXIS2_HOME/lib directory
 (import
 them in a new folder you'll call lib)
 - Refresh the project
 - Project properties : Add all the jars to the build path
 - Create some java class that will have the methods you want your web
 service to have.  Save it.
 - Right-click on the project, New-, Other...
 - Select Axis2 Wizards - Axis2 Code Generator, Next.
 - Select Java2WSDL
 - Type the fully qualified class name, and then add the path for the class
 file.  For example, if you class is com.xyz.TheClass, and your java source
 is in SomeDir/src/com/xyz/TheClass.java, and the corresponding class file
 is in SomeDir/bin/com/xyz/TheClass.class, then you'd enter
 SomeDir/bin.
 - Click Test Class Loading...  If it doesn't work, review previous step.
 - Click Next, and you can change the options if you want, and then click
 next again.
 - Select to send the output to a project in the workspace, and browse to
 that project.  Then give your wsdl a name, and click Finish.
 - Hopefully, all went well, and if you refresh your project, you'll see the
 WSDL.

 Now, if you want to create client and server code for this new WSDL:

 - Go in the codegen wizard again, this time select WSDL2Java, click Next.
 - Select the WSDL file you've just created.  Next.
 - In Codegen Option, select Custom.  Check Generate both... (last
 checkbox).  Next.
 - Browse to the project location, and Click Finish.

 You should have the client and server code generated, along with a nice ant
 build file.

 The class you'll want to modify is ClassNameSkeleton.java for the
 server-side.  For a client to use that service, you'd instantiate
 ClassNameStub.java.

 I really hope this helps someone in the future.  It's been a frustrating
 week.

 Jacques.
 --
 View this message in context:
 http://www.nabble.com/WSDL2JAVA-created-uncompilable-Stub-tp17775033p22872262.html
 Sent from the Axis - User mailing list archive at Nabble.com.




Re: WSDL2JAVA created uncompilable Stub

2009-04-06 Thread Amila Suriarachchi
On Tue, Apr 7, 2009 at 9:15 AM, pricilla p pricy...@gmail.com wrote:

 Hi Jacques,

 I am new to axis.

 I have to develop an web service

 I have followed the steps you mentioned and created a wsdl, skeleton and
 stubs.

 Could you pls tell me what changes i need to make it in skeleton and stub
 files

 Also pls tell me how to deploy this web service.


you have to implement your business logic at the skelton. you need to create
a .aar file to deploy it
as an axis2 service.
Please refer to user guide.

thanks,
Amila.



 Thanks,
 Pricilla.


 On Fri, Apr 3, 2009 at 11:43 AM, Jacques46 jacques.pou...@gmail.comwrote:


 Just putting in my 2 cents, because a week ago I knew nothing about Axis,
 and
 I had to overcome some of the hurdles that have been encountered by other
 posters in the past...  I hope I can avoid other people the same wasted
 time
 that I experienced...

 My environment is Eclipse 3.2.2, with the Codegen Wizard plugin.

 I have used the wizard in both directions (wsdl2java and java2wsdl) in
 versions 1.3 and 1.4.1 of Axis2.

 About the wizard : when you go to the Axis website, you can download the
 Codegen Wizard plugin for any version of Axis.  What's misleading is that
 when you unzip each version (1.3 and 1.4.1), they both are contained in
 the
 Axis2_Codegen_Wizard_1.3.0 directory.  Having successfully created my
 stubs with version 1.3 of the wizard and Axis libraries, I now wanted to
 compile them with Axis2 1.4.1.  My first reaction when I downloaded the
 1.4.1 wizard was to say hmmm... seems the wizard hasn't changed since
 version 1.3, because it's in the same directory name.  WRONG !  Upon
 further inspection, I clearly saw that the libraries in the /lib directory
 of the plugin were indeed different.

 So, here are the steps I would recommend for a successful compile :

 - If you're in Eclipse, EXIT !
 - If you have not done so yet, download the Axis2 standard distribution
 binary for the version you want, unzip it to some directory, and then
 create
 an environment variable AXIS2_HOME that points to that directory.
 - Download the Codegen Wizard for the Axis version you're shooting for
 (the
 same version as the standard distribution).  Unzip it into your Eclipse's
 plugins directory.  Note that if you had a previous version of the plugin
 there, you're gonna have to overwrite it with this new one if they both
 have
 the same name.
 - Copy the geronimo-stax-api_1.0_spec-1.0.1.jar and
 backport-util-concurrent-3.1.jar from the AXIS2_HOME/lib directory to the
 Wizard's /lib directory.
 - Edit the plugin.xml file of the Wizard.  You'll see in there a bunch of
 library nodes, add 2 nodes pointing to the jars you just copied.
 - Start Eclipse
 - Create a new project
 - In that project, import the jars from the AXIS2_HOME/lib directory
 (import
 them in a new folder you'll call lib)
 - Refresh the project
 - Project properties : Add all the jars to the build path
 - Create some java class that will have the methods you want your web
 service to have.  Save it.
 - Right-click on the project, New-, Other...
 - Select Axis2 Wizards - Axis2 Code Generator, Next.
 - Select Java2WSDL
 - Type the fully qualified class name, and then add the path for the class
 file.  For example, if you class is com.xyz.TheClass, and your java source
 is in SomeDir/src/com/xyz/TheClass.java, and the corresponding class
 file
 is in SomeDir/bin/com/xyz/TheClass.class, then you'd enter
 SomeDir/bin.
 - Click Test Class Loading...  If it doesn't work, review previous step.
 - Click Next, and you can change the options if you want, and then click
 next again.
 - Select to send the output to a project in the workspace, and browse to
 that project.  Then give your wsdl a name, and click Finish.
 - Hopefully, all went well, and if you refresh your project, you'll see
 the
 WSDL.

 Now, if you want to create client and server code for this new WSDL:

 - Go in the codegen wizard again, this time select WSDL2Java, click Next.
 - Select the WSDL file you've just created.  Next.
 - In Codegen Option, select Custom.  Check Generate both... (last
 checkbox).  Next.
 - Browse to the project location, and Click Finish.

 You should have the client and server code generated, along with a nice
 ant
 build file.

 The class you'll want to modify is ClassNameSkeleton.java for the
 server-side.  For a client to use that service, you'd instantiate
 ClassNameStub.java.

 I really hope this helps someone in the future.  It's been a frustrating
 week.

 Jacques.
 --
 View this message in context:
 http://www.nabble.com/WSDL2JAVA-created-uncompilable-Stub-tp17775033p22872262.html
 Sent from the Axis - User mailing list archive at Nabble.com.





-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: WSDL2JAVA created uncompilable Stub

2009-04-03 Thread Jacques46

Just putting in my 2 cents, because a week ago I knew nothing about Axis, and
I had to overcome some of the hurdles that have been encountered by other
posters in the past...  I hope I can avoid other people the same wasted time
that I experienced...

My environment is Eclipse 3.2.2, with the Codegen Wizard plugin.

I have used the wizard in both directions (wsdl2java and java2wsdl) in
versions 1.3 and 1.4.1 of Axis2.

About the wizard : when you go to the Axis website, you can download the
Codegen Wizard plugin for any version of Axis.  What's misleading is that
when you unzip each version (1.3 and 1.4.1), they both are contained in the
Axis2_Codegen_Wizard_1.3.0 directory.  Having successfully created my
stubs with version 1.3 of the wizard and Axis libraries, I now wanted to
compile them with Axis2 1.4.1.  My first reaction when I downloaded the
1.4.1 wizard was to say hmmm... seems the wizard hasn't changed since
version 1.3, because it's in the same directory name.  WRONG !  Upon
further inspection, I clearly saw that the libraries in the /lib directory
of the plugin were indeed different.

So, here are the steps I would recommend for a successful compile :

- If you're in Eclipse, EXIT !
- If you have not done so yet, download the Axis2 standard distribution
binary for the version you want, unzip it to some directory, and then create
an environment variable AXIS2_HOME that points to that directory.
- Download the Codegen Wizard for the Axis version you're shooting for (the
same version as the standard distribution).  Unzip it into your Eclipse's
plugins directory.  Note that if you had a previous version of the plugin
there, you're gonna have to overwrite it with this new one if they both have
the same name.
- Copy the geronimo-stax-api_1.0_spec-1.0.1.jar and
backport-util-concurrent-3.1.jar from the AXIS2_HOME/lib directory to the
Wizard's /lib directory.
- Edit the plugin.xml file of the Wizard.  You'll see in there a bunch of
library nodes, add 2 nodes pointing to the jars you just copied.
- Start Eclipse
- Create a new project
- In that project, import the jars from the AXIS2_HOME/lib directory (import
them in a new folder you'll call lib)
- Refresh the project
- Project properties : Add all the jars to the build path
- Create some java class that will have the methods you want your web
service to have.  Save it.
- Right-click on the project, New-, Other...
- Select Axis2 Wizards - Axis2 Code Generator, Next.
- Select Java2WSDL
- Type the fully qualified class name, and then add the path for the class
file.  For example, if you class is com.xyz.TheClass, and your java source
is in SomeDir/src/com/xyz/TheClass.java, and the corresponding class file
is in SomeDir/bin/com/xyz/TheClass.class, then you'd enter SomeDir/bin.
- Click Test Class Loading...  If it doesn't work, review previous step.
- Click Next, and you can change the options if you want, and then click
next again.
- Select to send the output to a project in the workspace, and browse to
that project.  Then give your wsdl a name, and click Finish.
- Hopefully, all went well, and if you refresh your project, you'll see the
WSDL.

Now, if you want to create client and server code for this new WSDL:

- Go in the codegen wizard again, this time select WSDL2Java, click Next.
- Select the WSDL file you've just created.  Next.
- In Codegen Option, select Custom.  Check Generate both... (last
checkbox).  Next.
- Browse to the project location, and Click Finish.

You should have the client and server code generated, along with a nice ant
build file.

The class you'll want to modify is ClassNameSkeleton.java for the
server-side.  For a client to use that service, you'd instantiate
ClassNameStub.java.

I really hope this helps someone in the future.  It's been a frustrating
week.

Jacques.
-- 
View this message in context: 
http://www.nabble.com/WSDL2JAVA-created-uncompilable-Stub-tp17775033p22872262.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: wsdl2java issue in upgrading from axis 1.2 to 1.4

2009-03-31 Thread Rishi Renjith
Is there any workaround for this problem?
What i was thinking was to use wsdl2java of axis1.2 and use axis 1.4 for
actual SOAP requests. But when i tried it by replacing the jars, it seems
not working :(

On Mon, Mar 30, 2009 at 8:56 PM, Jean-christophe cazeaux 
jccazeau...@gmail.com wrote:

 Hello,

 I got exactly the same issue. This occurs with axis 1.3 and axis 1.4.
 If you add a foo attribute in your wsdl like this :
  complexType name=ItemList
   sequence
element name=foo type=anyType/
 element name=ItemEntry type=abcd:ItemEntry minOccurs=0
 maxOccurs=49 nillable=true/
   /sequence
  /complexType

 The java Class ItemList will be correctly generated. So it appears to
 be a regression in axis from 1.3... Maybe someone has an other
 explanation and/or solution?

 JC

 2009/3/30 Rishi Renjith rishirenj...@gmail.com:
  Hello,
  In my project, we are planning to upgrade from axis 1.2 to axis 1.4.  But
  when we tested, we noticed that wsdl2java is not generating some java
  classes which it used to generate in axis 1.2
  For eg, with the wsdl structure as below,
   complexType name=ItemEntry
 sequence
  element name=one type=abcd:DOW minOccurs=1 maxOccurs=1/
  element name=two type=xsd:time minOccurs=0 maxOccurs=1
  nillable=true/
 /sequence
/complexType
complexType name=ItemList
 sequence
  element name=ItemEntry type=abcd:ItemEntry minOccurs=0
  maxOccurs=49 nillable=true/
 /sequence
/complexType
complexType name=Item-loc
 sequence
  element name=ItemList type=abcd:ItemList minOccurs=0
  maxOccurs=1 nillable=true/
 /sequence
/complexType
  wsdl2java is not generating a class for ItemList in axis 1.4, but it used
 to
  generate a class for ItemList in axis1.2.
  Is wsdl2java in 1.4 backward compatible with 1.2 ?
 
 
  Thanks,
  Rishi



Re: wsdl2java issue in upgrading from axis 1.2 to 1.4

2009-03-30 Thread Jean-christophe cazeaux
Hello,

I got exactly the same issue. This occurs with axis 1.3 and axis 1.4.
If you add a foo attribute in your wsdl like this :
  complexType name=ItemList
   sequence
element name=foo type=anyType/
element name=ItemEntry type=abcd:ItemEntry minOccurs=0
maxOccurs=49 nillable=true/
   /sequence
  /complexType

The java Class ItemList will be correctly generated. So it appears to
be a regression in axis from 1.3... Maybe someone has an other
explanation and/or solution?

JC

2009/3/30 Rishi Renjith rishirenj...@gmail.com:
 Hello,
 In my project, we are planning to upgrade from axis 1.2 to axis 1.4.  But
 when we tested, we noticed that wsdl2java is not generating some java
 classes which it used to generate in axis 1.2
 For eg, with the wsdl structure as below,
  complexType name=ItemEntry
    sequence
     element name=one type=abcd:DOW minOccurs=1 maxOccurs=1/
     element name=two type=xsd:time minOccurs=0 maxOccurs=1
 nillable=true/
    /sequence
   /complexType
   complexType name=ItemList
    sequence
     element name=ItemEntry type=abcd:ItemEntry minOccurs=0
 maxOccurs=49 nillable=true/
    /sequence
   /complexType
   complexType name=Item-loc
    sequence
     element name=ItemList type=abcd:ItemList minOccurs=0
 maxOccurs=1 nillable=true/
    /sequence
   /complexType
 wsdl2java is not generating a class for ItemList in axis 1.4, but it used to
 generate a class for ItemList in axis1.2.
 Is wsdl2java in 1.4 backward compatible with 1.2 ?


 Thanks,
 Rishi


Re: wsdl2java

2009-03-10 Thread chathuranga
Hi Nandana,
thanks for the reply.
i have added the bouncycastle jar into the path. now i am getting below
exception,


require client's private key...

org.apache.axis2.AxisFault: WSHandler: Signature: error during message *
processingorg.apache.ws.security.WSSecurityException*: An unsupported token
was provided (An X509 certificate with version 3 must be used for SKI. The
presented cert has version: 1)

at org.apache.rampart.handler.WSDoAllSender.processMessage(*
WSDoAllSender.java:67*)

at org.apache.rampart.handler.WSDoAllHandler.invoke(*WSDoAllHandler.java:72*
)

at org.apache.axis2.engine.Phase.invoke(*Phase.java:317*)

at org.apache.axis2.engine.AxisEngine.invoke(*AxisEngine.java:264*)

at org.apache.axis2.engine.AxisEngine.send(*AxisEngine.java:429*)

at org.apache.axis2.description.OutInAxisOperationClient.send(*
OutInAxisOperation.java:401*)

at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(*
OutInAxisOperation.java:228*)

at org.apache.axis2.client.OperationClient.execute(*OperationClient.java:163
*)

at
com.huawei.www.bme.cbsinterface.cbs.businessmgr.CBSInterfaceBusinessMgrServiceStub.QueryBasicInfo(
*CBSInterfaceBusinessMgrServiceStub.java:11503*)

at Test.main(*Test.java:75*)

Caused by: *org.apache.ws.security.WSSecurityException*: WSHandler:
Signature: error during message *
processingorg.apache.ws.security.WSSecurityException*: An unsupported token
was provided (An X509 certificate with version 3 must be used for SKI. The
presented cert has version: 1)

at org.apache.ws.security.action.SignatureAction.execute(*
SignatureAction.java:57*)

at org.apache.ws.security.handler.WSHandler.doSenderAction(*
WSHandler.java:197*)

at org.apache.rampart.handler.WSDoAllSender.processBasic(*
WSDoAllSender.java:201*)

at org.apache.rampart.handler.WSDoAllSender.processMessage(*
WSDoAllSender.java:64*)

... 9 more


do you have any idea about this?

thanks,
chathuranga


On Sun, Mar 8, 2009 at 12:40 AM, Nandana Mihindukulasooriya 
nandana@gmail.com wrote:

 Hi Chathuranga,
Did you make sure bouncycatlse jars are in the class path ? If you
 using solaris please refer to this [1] JIRA.

 thanks,
 nandana

 [1] - https://issues.apache.org/jira/browse/WSS-99


 On Fri, Mar 6, 2009 at 1:20 PM, chathuranga gay...@gmail.com wrote:



 Hi,

 We have a server which runs on axis2 1.1 and rampart1.1.

  I was trying to generate a client using the WSDL’s in the server. First
 I used axis2 1.4 and rampart1.1.

 And were able to successfully generate the java files using wsdl2java

 I used WSDL2Java -uri http://10.56.176.30:8680/services/sMgrService?wsdl-uw 
 -t -ssi –u



 And the client code also compiled successfully.  But when I am running the
 code below exception is giving.

 [WARN] Dispatcher org.apache.axis2.engine.RequestURIBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.SOAPActionBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.AddressingBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher
 is now deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.InstanceDispatcher is now
 deprecated.
 [WARN] Please remove the entry for
 org.apache.axis2.engine.InstanceDispatcherfrom axis2.xml
 [WARN] Dispatcher org.apache.axis2.engine.RequestURIBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.SOAPActionBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.AddressingBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher
 is now deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.InstanceDispatcher is now
 deprecated.
 [WARN] Please remove the entry for
 org.apache.axis2.engine.InstanceDispatcherfrom axis2.xml
 [INFO] No services directory was found under
 /data1/app/apache-test/htdocs/test/java/chaths/src/axis2-repo.
 [INFO] Deploying module: rampart-1.1 -
 file:/data1/app/apache-test/htdocs/test/java/chaths/src/axis2-repo/modules/rampart-1.1.mar
 [INFO] Deploying module: metadataExchange -
 

Re: wsdl2java

2009-03-07 Thread Nandana Mihindukulasooriya
Hi Chathuranga,
   Did you make sure bouncycatlse jars are in the class path ? If you
using solaris please refer to this [1] JIRA.

thanks,
nandana

[1] - https://issues.apache.org/jira/browse/WSS-99

On Fri, Mar 6, 2009 at 1:20 PM, chathuranga gay...@gmail.com wrote:



 Hi,

 We have a server which runs on axis2 1.1 and rampart1.1.

  I was trying to generate a client using the WSDL’s in the server. First I
 used axis2 1.4 and rampart1.1.

 And were able to successfully generate the java files using wsdl2java

 I used WSDL2Java -uri http://10.56.176.30:8680/services/sMgrService?wsdl-uw 
 -t -ssi –u



 And the client code also compiled successfully.  But when I am running the
 code below exception is giving.

 [WARN] Dispatcher org.apache.axis2.engine.RequestURIBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.SOAPActionBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.AddressingBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher is
 now deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.InstanceDispatcher is now
 deprecated.
 [WARN] Please remove the entry for
 org.apache.axis2.engine.InstanceDispatcherfrom axis2.xml
 [WARN] Dispatcher org.apache.axis2.engine.RequestURIBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.SOAPActionBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.AddressingBasedDispatcher is now
 deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher is
 now deprecated.
 [WARN] Please edit axis2.xml and replace with the same class in
 org.apache.axis2.dispatchers package
 [WARN] Dispatcher org.apache.axis2.engine.InstanceDispatcher is now
 deprecated.
 [WARN] Please remove the entry for
 org.apache.axis2.engine.InstanceDispatcherfrom axis2.xml
 [INFO] No services directory was found under
 /data1/app/apache-test/htdocs/test/java/chaths/src/axis2-repo.
 [INFO] Deploying module: rampart-1.1 -
 file:/data1/app/apache-test/htdocs/test/java/chaths/src/axis2-repo/modules/rampart-1.1.mar
 [INFO] Deploying module: metadataExchange -
 file:/data1/app/apache-test/htdocs/test/java/chaths/src/axis2/lib/mex-1.4.1.jar
 test1
 require server's private key...
 org.apache.axis2.AxisFault: WSHandler: Encryption: error during message
 processingorg.apache.ws.security.WSSecurityException: An unsupported
 signature or encryption algorithm was used (unsupported key transport
 encryption algorithm: No such algorithm:
 http://www.w3.org/2001/04/xmlenc#rsa-1_5)
 at
 org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:67)
 at
 org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:429)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
 at
 com.huawei.www.bme.cbsinterface.cbs.businessmgr.CBSInterfaceBusinessMgrServiceStub.QueryBasicInfo(CBSInterfaceBusinessMgrServiceStub.java:11555)
 at test.main(test.java:47)
 Caused by: org.apache.ws.security.WSSecurityException: WSHandler:
 Encryption: error during message
 processingorg.apache.ws.security.WSSecurityException: An unsupported
 signature or encryption algorithm was used (unsupported key transport
 encryption algorithm: No such algorithm:
 http://www.w3.org/2001/04/xmlenc#rsa-1_5)
 at
 org.apache.ws.security.action.EncryptionAction.execute(EncryptionAction.java:64)
 at
 org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:192)
 at
 org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:201)
 at
 org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:64)
 ... 9 more







 Then I used the axis2 1.1 and rampart1.1, same as Server.

 Then I 

Re: WSDL2Java - Skip Classes options

2009-02-28 Thread amit shah
Could using jibx data binding option help in this scenario (Skipping some
class generations) ?

On Thu, Feb 26, 2009 at 4:39 PM, amit shah amits...@gmail.com wrote:

 Re-replying to the mail in case I was not clear in explaining the problem.

 I want to generate java classes from a published wsdl file (exposed by
 Microsoft SQL Reporting Services 2008). During the class generation, I want
 to skip some of these classes (for e.g TrustedUserHeader).

 Pasting a snippet of the wsdl file.

 _
 wsdl:types
  s:schema elementFormDefault=qualified targetNamespace=
 http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices
 
   s:element name=ListSecureMethods
  s:complexType /
 /s:element
   s:element name=ListSecureMethodsResponse
s:complexType
  s:sequence
 s:element minOccurs=0 maxOccurs=1 name=ListSecureMethodsResult
 type=tns:ArrayOfString /
/s:sequence
  /s:complexType
 /s:element
   s:complexType name=ArrayOfString
   s:sequence
  s:element minOccurs=0 maxOccurs=unbounded name=string
 nillable=true type=s:string /
 /s:sequence
 /s:complexType
 *s:element name=TrustedUserHeader type=tns:TrustedUserHeader / *
 **
 */s:element*

   ..
   ..

 /wsdl:types
 _

 Are there any ways (may be a command option) of using wsdl2java.bat which
 would skip the generation of *TrustedUserHeader *class?

 Thanks in advance,
 Amit Shah.


   On 2/17/09, amit shah amits...@gmail.com wrote:

 Hi,
   I am using axis2 1.4.1 to generate java classes from a wsdl file.
 The
 web services are exposed by the SQL Server 2008 Reporting Services. I
 wanted to know if there is any command line option while using
 wsdl2java.bat to skip generating some classes (In my case a soap
 header called TrustedUserHeader). I use the following command to
 convert wsdl to java

   wsdl2java.bat -o E:\wsdl2java\ -p
 sqlserver.reporting.reportingexecutionservices -ss -g -ns2p

 http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices=sqlserver.reporting.reportingexecutionservices
 -uri http://v-sql-2k8/reportserver/ReportExecution2005.asmx

   I want to skip generation of the TrustedUserHeader class. If anyone
 can provide any guidance it would be very helpful

 Note : The wsdl file has the same namespace for all the classes. Hence
 the namespace of the TrustedUserHeader class is also

 http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices
 .

 Thanks in advance,
 Amit Shah.





Re: WSDL2Java - Skip Classes options

2009-02-28 Thread Dennis Sosnoski

Hi Amit,

Why do you want to skip generating the element? You could do this using 
JiBX, but any XML documents you generated without this element would be 
invalid (since the schema says it's a required element).


 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



amit shah wrote:
Could using jibx data binding option help in this scenario (Skipping 
some class generations) ?


On Thu, Feb 26, 2009 at 4:39 PM, amit shah amits...@gmail.com 
mailto:amits...@gmail.com wrote:


Re-replying to the mail in case I was not clear in explaining the
problem.
 
I want to generate java classes from a published wsdl file

(exposed by Microsoft SQL Reporting Services 2008). During the
class generation, I want to skip some of these classes (for e.g
TrustedUserHeader).
 
Pasting a snippet of the wsdl file.
 
_

wsdl:types
 s:schema elementFormDefault=qualified

targetNamespace=http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices;
  s:element name=ListSecureMethods
 s:complexType /
/s:element
  s:element name=ListSecureMethodsResponse
   s:complexType
 s:sequence
s:element minOccurs=0 maxOccurs=1
name=ListSecureMethodsResult type=tns:ArrayOfString /
   /s:sequence
 /s:complexType
/s:element
  s:complexType name=ArrayOfString
  s:sequence
 s:element minOccurs=0 maxOccurs=unbounded name=string
nillable=true type=s:string /
/s:sequence
/s:complexType
*s:element name=TrustedUserHeader
type=tns:TrustedUserHeader / *
** 
*/s:element*


  ..
  ..

/wsdl:types

_
 
Are there any ways (may be a command option) of using

wsdl2java.bat which would skip the generation of
*TrustedUserHeader *class?
 
Thanks in advance,

Amit Shah.


On 2/17/09, *amit shah* amits...@gmail.com
mailto:amits...@gmail.com wrote:

Hi,
  I am using axis2 1.4.1 to generate java classes from a
wsdl file. The
web services are exposed by the SQL Server 2008 Reporting
Services. I
wanted to know if there is any command line option while using
wsdl2java.bat to skip generating some classes (In my case a soap
header called TrustedUserHeader). I use the following command to
convert wsdl to java

  wsdl2java.bat -o E:\wsdl2java\ -p
sqlserver.reporting.reportingexecutionservices -ss -g -ns2p

http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices=sqlserver.reporting.reportingexecutionservices
-uri http://v-sql-2k8/reportserver/ReportExecution2005.asmx

  I want to skip generation of the TrustedUserHeader
class. If anyone
can provide any guidance it would be very helpful

Note : The wsdl file has the same namespace for all the
classes. Hence
the namespace of the TrustedUserHeader class is also

http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices.

Thanks in advance,
Amit Shah.





Re: WSDL2Java - Skip Classes options

2009-02-28 Thread amit shah
The reason I want to skip it is because, as the class gets generated each
web service call (method) takes an instance of this class as a parameter,
which I don't want.
Can this be done by using JiBX ? (i.e. skip the generation which I think
will automatically make the service calls not take an instance of the
skipped class as a parameter. Please correct me if I am wrong). If yes then
can you please provide me some guidance on what should the binding
definition file include i.e which tags? On a first look (
http://jibx.sourceforge.net/tutorial/binding-tutorial.html) I was not able
to figure out the xml tags for this particular scenario.

I know there is some way to skip these classes as they are not their in the
production environment but I don't know how.

On Sun, Mar 1, 2009 at 2:56 AM, Dennis Sosnoski d...@sosnoski.com wrote:

 Hi Amit,

 Why do you want to skip generating the element? You could do this using
 JiBX, but any XML documents you generated without this element would be
 invalid (since the schema says it's a required element).

  - Dennis

 Dennis M. Sosnoski
 SOA and Web Services in Java
 Training and Consulting
 http://www.sosnoski.com - http://www.sosnoski.co.nz
 Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



 amit shah wrote:

 Could using jibx data binding option help in this scenario (Skipping some
 class generations) ?

  On Thu, Feb 26, 2009 at 4:39 PM, amit shah amits...@gmail.com mailto:
 amits...@gmail.com wrote:

Re-replying to the mail in case I was not clear in explaining the
problem.
I want to generate java classes from a published wsdl file
(exposed by Microsoft SQL Reporting Services 2008). During the
class generation, I want to skip some of these classes (for e.g
TrustedUserHeader).
Pasting a snippet of the wsdl file.
_
wsdl:types
 s:schema elementFormDefault=qualified
targetNamespace=
 http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices
 
  s:element name=ListSecureMethods
 s:complexType /
/s:element
  s:element name=ListSecureMethodsResponse
   s:complexType
 s:sequence
s:element minOccurs=0 maxOccurs=1
name=ListSecureMethodsResult type=tns:ArrayOfString /
   /s:sequence
 /s:complexType
/s:element
  s:complexType name=ArrayOfString
  s:sequence
 s:element minOccurs=0 maxOccurs=unbounded name=string
nillable=true type=s:string /
/s:sequence
/s:complexType
*s:element name=TrustedUserHeader
type=tns:TrustedUserHeader / *
***/s:element*

  ..
  ..

/wsdl:types

_
Are there any ways (may be a command option) of using
wsdl2java.bat which would skip the generation of
*TrustedUserHeader *class?
Thanks in advance,
Amit Shah.


On 2/17/09, *amit shah* amits...@gmail.com
mailto:amits...@gmail.com wrote:

Hi,
  I am using axis2 1.4.1 to generate java classes from a
wsdl file. The
web services are exposed by the SQL Server 2008 Reporting
Services. I
wanted to know if there is any command line option while using
wsdl2java.bat to skip generating some classes (In my case a soap
header called TrustedUserHeader). I use the following command to
convert wsdl to java

  wsdl2java.bat -o E:\wsdl2java\ -p
sqlserver.reporting.reportingexecutionservices -ss -g -ns2p

 http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices=sqlserver.reporting.reportingexecutionservices
-uri http://v-sql-2k8/reportserver/ReportExecution2005.asmx

  I want to skip generation of the TrustedUserHeader
class. If anyone
can provide any guidance it would be very helpful

Note : The wsdl file has the same namespace for all the
classes. Hence
the namespace of the TrustedUserHeader class is also

 http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices
 .

Thanks in advance,
Amit Shah.






Re: WSDL2Java - Skip Classes options

2009-02-28 Thread Dennis Sosnoski
The latest version of JiBX (1.2, currently in beta test and soon to be 
production released) supports code generation from schema, and you'd 
easily be able to eliminate this element in that code generation. But 
WSDL2Java is separate, and to eliminate the parameter from the generated 
web services interface output from WSDL2Java you'd need to actually edit 
the WSDL to remove the references to TrustedUserHeader. (you don't show 
the actual operation and message definitions from the WSDL, but I assume 
the references are there - otherwise you wouldn't see this showing up in 
the method call interfaces).


So your best approach is probably to just edit the WSDL and eliminate 
the reference to TrustedUserHeader from the messages components of the 
WSDL. Once you've done that, it should be dropped from the method call 
interfaces.


 - Dennis


amit shah wrote:
The reason I want to skip it is because, as the class gets generated 
each web service call (method) takes an instance of this class as a 
parameter, which I don't want.
Can this be done by using JiBX ? (i.e. skip the generation which I 
think will automatically make the service calls not take an instance 
of the skipped class as a parameter. Please correct me if I am wrong). 
If yes then can you please provide me some guidance on what should the 
binding definition file include i.e which tags? On a first look 
(http://jibx.sourceforge.net/tutorial/binding-tutorial.html) I was not 
able to figure out the xml tags for this particular scenario.
 
I know there is some way to skip these classes as they are not their 
in the production environment but I don't know how.
 
On Sun, Mar 1, 2009 at 2:56 AM, Dennis Sosnoski d...@sosnoski.com 
mailto:d...@sosnoski.com wrote:


Hi Amit,

Why do you want to skip generating the element? You could do this
using JiBX, but any XML documents you generated without this
element would be invalid (since the schema says it's a required
element).

 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com http://www.sosnoski.com/ -
http://www.sosnoski.co.nz http://www.sosnoski.co.nz/
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



amit shah wrote:

Could using jibx data binding option help in this scenario
(Skipping some class generations) ?

On Thu, Feb 26, 2009 at 4:39 PM, amit shah amits...@gmail.com
mailto:amits...@gmail.com mailto:amits...@gmail.com
mailto:amits...@gmail.com wrote:

   Re-replying to the mail in case I was not clear in
explaining the
   problem.
   I want to generate java classes from a published wsdl file
   (exposed by Microsoft SQL Reporting Services 2008). During the
   class generation, I want to skip some of these classes (for e.g
   TrustedUserHeader).
   Pasting a snippet of the wsdl file.
 
 _

   wsdl:types
s:schema elementFormDefault=qualified
 
 targetNamespace=http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices;

 s:element name=ListSecureMethods
s:complexType /
   /s:element
 s:element name=ListSecureMethodsResponse
  s:complexType
s:sequence
   s:element minOccurs=0 maxOccurs=1
   name=ListSecureMethodsResult type=tns:ArrayOfString /
  /s:sequence
/s:complexType
   /s:element
 s:complexType name=ArrayOfString
 s:sequence
s:element minOccurs=0 maxOccurs=unbounded
name=string
   nillable=true type=s:string /
   /s:sequence
   /s:complexType
   *s:element name=TrustedUserHeader
   type=tns:TrustedUserHeader / *
   ***/s:element*

 ..
 ..

   /wsdl:types

 
 _

   Are there any ways (may be a command option) of using
   wsdl2java.bat which would skip the generation of
   *TrustedUserHeader *class?
   Thanks in advance,
   Amit Shah.


   On 2/17/09, *amit shah* amits...@gmail.com
mailto:amits...@gmail.com
   mailto:amits...@gmail.com mailto:amits...@gmail.com wrote:

   Hi,
 I am using axis2 1.4.1 to generate java classes
from a
   wsdl file. The
   web services are exposed by the SQL Server 2008 Reporting
   Services. I
   wanted to know if there is any command line option
while using
   wsdl2java.bat to skip generating some classes (In my
case a soap
   

Re: WSDL2Java - Skip Classes options

2009-02-28 Thread amit shah
The wsdl is a published one (by Microsoft SQL Reporting Services 2008) and
hence I cannot edit it.

On Sun, Mar 1, 2009 at 10:45 AM, Dennis Sosnoski d...@sosnoski.com wrote:

 The latest version of JiBX (1.2, currently in beta test and soon to be
 production released) supports code generation from schema, and you'd easily
 be able to eliminate this element in that code generation. But WSDL2Java is
 separate, and to eliminate the parameter from the generated web services
 interface output from WSDL2Java you'd need to actually edit the WSDL to
 remove the references to TrustedUserHeader. (you don't show the actual
 operation and message definitions from the WSDL, but I assume the references
 are there - otherwise you wouldn't see this showing up in the method call
 interfaces).

 So your best approach is probably to just edit the WSDL and eliminate the
 reference to TrustedUserHeader from the messages components of the WSDL.
 Once you've done that, it should be dropped from the method call interfaces.

  - Dennis


 amit shah wrote:

 The reason I want to skip it is because, as the class gets generated each
 web service call (method) takes an instance of this class as a parameter,
 which I don't want.
 Can this be done by using JiBX ? (i.e. skip the generation which I think
 will automatically make the service calls not take an instance of the
 skipped class as a parameter. Please correct me if I am wrong). If yes then
 can you please provide me some guidance on what should the binding
 definition file include i.e which tags? On a first look (
 http://jibx.sourceforge.net/tutorial/binding-tutorial.html) I was not
 able to figure out the xml tags for this particular scenario.
  I know there is some way to skip these classes as they are not their in
 the production environment but I don't know how.
  On Sun, Mar 1, 2009 at 2:56 AM, Dennis Sosnoski d...@sosnoski.commailto:
 d...@sosnoski.com wrote:

Hi Amit,

Why do you want to skip generating the element? You could do this
using JiBX, but any XML documents you generated without this
element would be invalid (since the schema says it's a required
element).

 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com http://www.sosnoski.com/ -
http://www.sosnoski.co.nz http://www.sosnoski.co.nz/
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



amit shah wrote:

Could using jibx data binding option help in this scenario
(Skipping some class generations) ?

On Thu, Feb 26, 2009 at 4:39 PM, amit shah amits...@gmail.com
mailto:amits...@gmail.com mailto:amits...@gmail.com

mailto:amits...@gmail.com wrote:

   Re-replying to the mail in case I was not clear in
explaining the
   problem.
   I want to generate java classes from a published wsdl file
   (exposed by Microsoft SQL Reporting Services 2008). During the
   class generation, I want to skip some of these classes (for e.g
   TrustedUserHeader).
   Pasting a snippet of the wsdl file.

 _
   wsdl:types
s:schema elementFormDefault=qualified
 targetNamespace=
 http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices
 
 s:element name=ListSecureMethods
s:complexType /
   /s:element
 s:element name=ListSecureMethodsResponse
  s:complexType
s:sequence
   s:element minOccurs=0 maxOccurs=1
   name=ListSecureMethodsResult type=tns:ArrayOfString /
  /s:sequence
/s:complexType
   /s:element
 s:complexType name=ArrayOfString
 s:sequence
s:element minOccurs=0 maxOccurs=unbounded
name=string
   nillable=true type=s:string /
   /s:sequence
   /s:complexType
   *s:element name=TrustedUserHeader
   type=tns:TrustedUserHeader / *
   ***/s:element*

 ..
 ..

   /wsdl:types


 _
   Are there any ways (may be a command option) of using
   wsdl2java.bat which would skip the generation of
   *TrustedUserHeader *class?
   Thanks in advance,
   Amit Shah.


   On 2/17/09, *amit shah* amits...@gmail.com
mailto:amits...@gmail.com
mailto:amits...@gmail.com mailto:amits...@gmail.com
 wrote:

   Hi,
 I am using axis2 1.4.1 to generate java classes
from a
   wsdl file. The
   web services are exposed by the SQL Server 2008 Reporting
   Services. I
   wanted to know if there is any 

Re: WSDL2Java - Skip Classes options

2009-02-28 Thread amit shah
In my last mail I forgot to provide the full details of the s:element
which I want to skip

s:element name=*TrustedUserHeader* type=*tns:TrustedUserHeader*
/ *-*http://ind-sd-01/reportserver/ReportExecution2005.asmx#
s:complexType name=*TrustedUserHeader*
 *-* http://ind-sd-01/reportserver/ReportExecution2005.asmx#
s:sequence
 * *  s:element minOccurs=*0* maxOccurs=*1* name=*
UserName* type=*s:string* /
 * *   s:element minOccurs=*0* maxOccurs=*1* name=*
UserToken* type=*s:base64Binary* /
* *  /s:sequence
 * *  s:anyAttribute /
* * /s:complexType
In case this gives any clues
On Sun, Mar 1, 2009 at 11:17 AM, amit shah amits...@gmail.com wrote:

 The wsdl is a published one (by Microsoft SQL Reporting Services 2008) and
 hence I cannot edit it.


 On Sun, Mar 1, 2009 at 10:45 AM, Dennis Sosnoski d...@sosnoski.com wrote:

 The latest version of JiBX (1.2, currently in beta test and soon to be
 production released) supports code generation from schema, and you'd easily
 be able to eliminate this element in that code generation. But WSDL2Java is
 separate, and to eliminate the parameter from the generated web services
 interface output from WSDL2Java you'd need to actually edit the WSDL to
 remove the references to TrustedUserHeader. (you don't show the actual
 operation and message definitions from the WSDL, but I assume the references
 are there - otherwise you wouldn't see this showing up in the method call
 interfaces).

 So your best approach is probably to just edit the WSDL and eliminate the
 reference to TrustedUserHeader from the messages components of the WSDL.
 Once you've done that, it should be dropped from the method call interfaces.

  - Dennis


 amit shah wrote:

 The reason I want to skip it is because, as the class gets generated each
 web service call (method) takes an instance of this class as a parameter,
 which I don't want.
 Can this be done by using JiBX ? (i.e. skip the generation which I think
 will automatically make the service calls not take an instance of the
 skipped class as a parameter. Please correct me if I am wrong). If yes then
 can you please provide me some guidance on what should the binding
 definition file include i.e which tags? On a first look (
 http://jibx.sourceforge.net/tutorial/binding-tutorial.html) I was not
 able to figure out the xml tags for this particular scenario.
  I know there is some way to skip these classes as they are not their in
 the production environment but I don't know how.
  On Sun, Mar 1, 2009 at 2:56 AM, Dennis Sosnoski d...@sosnoski.commailto:
 d...@sosnoski.com wrote:

Hi Amit,

Why do you want to skip generating the element? You could do this
using JiBX, but any XML documents you generated without this
element would be invalid (since the schema says it's a required
element).

 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com http://www.sosnoski.com/ -
http://www.sosnoski.co.nz http://www.sosnoski.co.nz/
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



amit shah wrote:

Could using jibx data binding option help in this scenario
(Skipping some class generations) ?

On Thu, Feb 26, 2009 at 4:39 PM, amit shah amits...@gmail.com
mailto:amits...@gmail.com mailto:amits...@gmail.com

mailto:amits...@gmail.com wrote:

   Re-replying to the mail in case I was not clear in
explaining the
   problem.
   I want to generate java classes from a published wsdl file
   (exposed by Microsoft SQL Reporting Services 2008). During the
   class generation, I want to skip some of these classes (for e.g
   TrustedUserHeader).
   Pasting a snippet of the wsdl file.

 _
   wsdl:types
s:schema elementFormDefault=qualified
 targetNamespace=
 http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices
 
 s:element name=ListSecureMethods
s:complexType /
   /s:element
 s:element name=ListSecureMethodsResponse
  s:complexType
s:sequence
   s:element minOccurs=0 maxOccurs=1
   name=ListSecureMethodsResult type=tns:ArrayOfString /
  /s:sequence
/s:complexType
   /s:element
 s:complexType name=ArrayOfString
 s:sequence
s:element minOccurs=0 maxOccurs=unbounded
name=string
   nillable=true type=s:string /
   /s:sequence
   /s:complexType
   *s:element name=TrustedUserHeader
   type=tns:TrustedUserHeader / *
   ***/s:element*

 ..
 ..

   /wsdl:types


 

Re: wsdl2java not accepting rampart-1.4.1.mar

2009-02-27 Thread Andreas Veithen
Marc,

Actually there is no real problem here. The messages you get are
caused by the following two issues:
* The Rampart module implements the ModulePolicyExtension interface
(indicating that it supports codegen policy extensions), but the
implementation of the getPolicyExtension method throws an
UnsupportedOperationException (with message TODO...).
* The error reporting in wsdl2java is a bit misleading, in particular
cannot create repository: there is no problem when loading the
repository, but only when retrieving the policy extension from
Rampart.

I fixed the second issue so that you would now see the following messages:

[ERROR] Error loading policy extension from module rampart
java.lang.UnsupportedOperationException: TODO
at org.apache.rampart.Rampart.getPolicyExtension(Rampart.java:45)
at 
org.apache.axis2.wsdl.codegen.extension.PolicyEvaluator.init(PolicyEvaluator.java:102)
at 
org.apache.axis2.wsdl.codegen.extension.PolicyEvaluator.engage(PolicyEvaluator.java:118)
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
[WARN] Cannot find a PolicyExtension to process
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy type assertions

Actually Rampart is not involved at all during the code generation.
The way it works is that wsdl2java extracts the policies from the WSDL
and puts them into the generated code (simply as String containing
XML). This information is then decoded at _runtime_. This means that
you don't even need to specify a repository containing the Rampart
module when invoking wsdl2java.

Regards,

Andreas

On Fri, Feb 27, 2009 at 14:40, Marc Boorshtein mboorsht...@gmail.com wrote:
 I didn't get any response from rampart, so I think I sent this request to
 the wrong list?  I've tried rebuilding rampart from source but nothing seems
 to work.  I also downloaded bouncy castle.my stack is:

 java 1.6
 axis2 1.4.1
 rampart 1.4

 Any help would be greatly appreciated

 Thanks
 Marc

 -- Forwarded message --
 From: Marc Boorshtein mboorsht...@gmail.com
 Date: Tue, Feb 24, 2009 at 7:35 AM
 Subject: wsdl2java not accepting rampart-1.4.1.mar
 To: rampart-...@ws.apache.org


 Hello,

 I'm trying to use rampart 1.4.1 and axis2 1.4.1.  I'm able to create a
 secure service (based on the tutorial linked to by the main page), but
 creating the client using wsdl2java keeps failing:

 [...@localhost bin]$ sh wsdl2java.sh  -uri
 https://localhost:8443/axis2/services/SecureService?wsdl -r
 /home/mlb/downloads/axis2-1.4.1/repository -p tutorial.rampart.client  -uw
 -or -o /home/mlb/projects/ws-security/java-client
  Using AXIS2_HOME:   /home/mlb/downloads/axis2-1.4.1
  Using JAVA_HOME:   /usr/java/jdk1.6.0_03
 Retrieving document at
 'https://localhost:8443/axis2/services/SecureService?wsdl'.
 [INFO] Deploying module: addressing-1.41 -
 file:/home/mlb/downloads/axis2-1.4.1/repository/modules/addressing-1.41.mar
 [INFO] Deploying module: script-1.41 -
 file:/home/mlb/downloads/axis2-1.4.1/repository/modules/scripting-1.41.mar
 [INFO] Deploying module: ping-1.41 -
 file:/home/mlb/downloads/axis2-1.4.1/repository/modules/ping-1.41.mar
 [INFO] Deploying module: smtpfault -
 file:/home/mlb/downloads/axis2-1.4.1/repository/modules/smtpfault.mar
 [INFO] Deploying module: metadataExchange-1.41 -
 file:/home/mlb/downloads/axis2-1.4.1/repository/modules/mex-1.41.mar
 [INFO] Deploying module: rampart-1.4 -
 file:/home/mlb/downloads/axis2-1.4.1/repository/modules/rampart-1.4.mar
 [INFO] Deploying module: soapmonitor-1.41 -
 file:/home/mlb/downloads/axis2-1.4.1/repository/modules/soapmonitor-1.41.mar
 [INFO] Deploying module: metadataExchange -
 file:/home/mlb/downloads/axis2-1.4.1/lib/mex-1.4.1.jar
 [INFO] Deploying Web service: version.aar -
 file:/home/mlb/downloads/axis2-1.4.1/repository/services/version.aar
 cannot create repository : policy will not be supported
 cannot find a PolicyExtension to process
 http://schemas.xmlsoap.org/ws/2005/07/securitypolicytype assertions
 [...@localhost bin]$


 I tried copying axis2-codegen*.jar to the $AXIS2_HOME/lib directory but that
 didn't work and I'm not getting any errors.  Any ideas as to what the issue
 could be?

 Thanks
 Marc




Re: WSDL2Java - Skip Classes options

2009-02-26 Thread amit shah
Re-replying to the mail in case I was not clear in explaining the problem.

I want to generate java classes from a published wsdl file (exposed by
Microsoft SQL Reporting Services 2008). During the class generation, I want
to skip some of these classes (for e.g TrustedUserHeader).

Pasting a snippet of the wsdl file.

_
wsdl:types
 s:schema elementFormDefault=qualified targetNamespace=
http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices

  s:element name=ListSecureMethods
 s:complexType /
/s:element
  s:element name=ListSecureMethodsResponse
   s:complexType
 s:sequence
s:element minOccurs=0 maxOccurs=1 name=ListSecureMethodsResult
type=tns:ArrayOfString /
   /s:sequence
 /s:complexType
/s:element
  s:complexType name=ArrayOfString
  s:sequence
 s:element minOccurs=0 maxOccurs=unbounded name=string
nillable=true type=s:string /
/s:sequence
/s:complexType
*s:element name=TrustedUserHeader type=tns:TrustedUserHeader / *
**
*/s:element*

  ..
  ..

/wsdl:types
_

Are there any ways (may be a command option) of using wsdl2java.bat which
would skip the generation of *TrustedUserHeader *class?

Thanks in advance,
Amit Shah.


On 2/17/09, amit shah amits...@gmail.com wrote:

 Hi,
   I am using axis2 1.4.1 to generate java classes from a wsdl file. The
 web services are exposed by the SQL Server 2008 Reporting Services. I
 wanted to know if there is any command line option while using
 wsdl2java.bat to skip generating some classes (In my case a soap
 header called TrustedUserHeader). I use the following command to
 convert wsdl to java

   wsdl2java.bat -o E:\wsdl2java\ -p
 sqlserver.reporting.reportingexecutionservices -ss -g -ns2p

 http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices=sqlserver.reporting.reportingexecutionservices
 -uri http://v-sql-2k8/reportserver/ReportExecution2005.asmx

   I want to skip generation of the TrustedUserHeader class. If anyone
 can provide any guidance it would be very helpful

 Note : The wsdl file has the same namespace for all the classes. Hence
 the namespace of the TrustedUserHeader class is also

 http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices
 .

 Thanks in advance,
 Amit Shah.



Re: WSDL2Java 3 ports 1 service

2009-02-03 Thread keith chapman
If you use the -ap option (All Ports) it will generate code for all ports.

Thanks,
Keith.

On Tue, Feb 3, 2009 at 12:35 AM, Paul French paul.fre...@kirona.com wrote:

  The WSDL I have has one service defined with 3 ports (I use axis2 1.4.1)

 i.e.

  wsdl:service name=ServiceRequestConnectorService
   wsdl:port name=CommonConnectorSoapPort
 binding=tns:CommonConnectorSoapBinding
soap:address location=
 http://localhost/ServiceRequestConnectorService/ServiceRequestConnectorService.asmx/http://localhost/ServiceRequestConnectorService/ServiceRequestConnectorService.asmx%22/
 
   /wsdl:port
   wsdl:port name=ServiceRequestSoapPort
 binding=tns:ServiceRequestConnectorSoapBinding
soap:address location=
 http://localhost/ServiceRequestConnectorService/ServiceRequestConnectorService.asmx/http://localhost/ServiceRequestConnectorService/ServiceRequestConnectorService.asmx%22/
 
   /wsdl:port
   wsdl:port name=ServiceRequestUpdatesSoapPort
 binding=tns:ServiceRequestConnectorUpdatesSoapBinding
soap:address location=
 http://localhost/ServiceRequestConnectorService/ServiceRequestConnectorService.asmx/http://localhost/ServiceRequestConnectorService/ServiceRequestConnectorService.asmx%22/
 
   /wsdl:port
  /wsdl:service

 However when I generate a client stub using:

 WSDL2Java -u -uri MyWSDL -p MyPackage -d none -s

  ...I only get stub methods for one of the ports and not all three. Is
 there a reason for this? I would expect stub methods for all 3 ports? I can
 generate stub methods for each port in turn by removing the other 2 from the
 WSDL.

 Thanks,

 Paul




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: wsdl2java no setters in ADBBean

2009-01-04 Thread Amila Suriarachchi
On Sun, Jan 4, 2009 at 12:07 PM, rogerhb ro...@niederland.com wrote:



 Generating java classes using wsdl2java (as ADBBeans) (Axis2 version 1.4.1)
  on WSDL containing the following information:


   xs:complexType name=PaymentAmount
  xs:simpleContent
 xs:extension base=tns:Amount/
  /xs:simpleContent
   /xs:complexType
   xs:complexType name=Amount
  xs:simpleContent
 xs:extension base=xs:decimal
xs:attribute name=currency type=tns:currency
 use=required/
 /xs:extension
  /xs:simpleContent
   /xs:complexType


 The generated PaymentAmount class has no setter or getter methods.
 The generated Amount class has as expected setter and getter method for
 Currency and Decimal.

 I am fairly new to Axis2, is this expected?  If so how can I work around
 this?
 I tried the same WSDL with prior versions of Axis2 and got the same
 results.

 This WSDL is from a standards group and in use at many companies.  I must
 be
 missing
 somthing simple.


this seems to be an issue with ADB. Please log a jira. Please try with
another data binding framework
such as jaxbri or xmlbeans (use -d jaxbri or -d xmlbeans)

thanks,
Amila.



 Thanks for any clues or suggestions.

 --
 View this message in context:
 http://www.nabble.com/wsdl2java-no-setters-in-ADBBean-tp21273457p21273457.html
 Sent from the Axis - User mailing list archive at Nabble.com.




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: wsdl2java no setters in ADBBean

2009-01-04 Thread rogerhb

Thanks for the response I generated a Jira ticket (AXIS2-4193).

-- 
View this message in context: 
http://www.nabble.com/wsdl2java-no-setters-in-ADBBean-tp21273457p21286046.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: WSDL2JAVA created uncompilable Stub

2008-12-02 Thread asheikh
Hi

I am having same issue, any idea how to solve this. I am using  Eclipse
Platform
Version: 3.3.1.1, and  my axis2 runtime is axis2-1.4

I have also noticed that in  service.xml  says

!-- This file was auto-generated from WSDL --
!-- by the Apache Axis2 version: 1.3  Built on : Aug 10, 2007 (04:45:47
LKT) --

I was expecting to service.xml to say  !-- This file was auto-generated
from WSDL --
!-- by the Apache Axis2 version: 1.34


On Wed, Jun 11, 2008 at 7:17 PM, Kraus, David [EMAIL PROTECTED]wrote:

 Yeah, something similar happened to me. The MTOMAwareXMLStreamWriter
 parameter is replaced by XMLStreamWriter in the stub code, which causes
 the compilation problems.

 I am not absolutely sure what is happening here. I tried enabling MTOM
 in my services.xml file, and found that wsdl2java generated different
 stubs, which did compile.

 However, when I went back and removed the services.xml setting, stub
 generation did not change, and I could still compile.

 I began to think that maybe my environment had been mixed between two
 different versions of Axis2 (I was upgrading from axis2 1.2 to 1.4). So,
 make sure you have your environment variables set correctly, and then
 your classpath is correct.

 Dave

 -Original Message-
 From: Adam Muller [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 11, 2008 4:02 AM
 To: axis-user@ws.apache.org
 Subject: WSDL2JAVA created uncompilable Stub

 Hi,

 with Axis2 1.4 - when I regenerate Stub, it cannot be compiled.
 I got errors like these all over it:

 The type WhoIsWhoServiceStub.AddressType must implement the inherited
 abstract method ADBBean.serialize(QName, OMFactory,
 MTOMAwareXMLStreamWriter, boolean)

 The type WhoIsWhoServiceStub.AsyncResponseType must implement the
 inherited abstract method ADBBean.serialize(QName, OMFactory,
 MTOMAwareXMLStreamWriter, boolean)

 etc. (there are about 100 errors in the file).

 What am I doing wrong? I just upgraded from axis2 1.3 - it worked there
 perfectly.

 Thanks for your reply!

  Best regards
  Adam


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: WSDL2JAVA created uncompilable Stub

2008-12-02 Thread Amila Suriarachchi
On Wed, Jun 11, 2008 at 4:32 PM, Adam Muller [EMAIL PROTECTED] wrote:

 Hi,

 with Axis2 1.4 - when I regenerate Stub, it cannot be compiled.
 I got errors like these all over it:

 The type WhoIsWhoServiceStub.AddressType must implement the inherited
 abstract method ADBBean.serialize(QName, OMFactory,
 MTOMAwareXMLStreamWriter, boolean)

 The type WhoIsWhoServiceStub.AsyncResponseType must implement the inherited
 abstract method ADBBean.serialize(QName, OMFactory,
 MTOMAwareXMLStreamWriter, boolean)

 etc. (there are about 100 errors in the file).

 What am I doing wrong? I just upgraded from axis2 1.3 - it worked there
 perfectly.


I think you compiling code with the axis2  1.3 jars.  please make sure you
have axis2 1.4 jars in the class patch.

thanks,
Amila.



 Thanks for your reply!

  Best regards
  Adam


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: WSDL2Java error

2008-11-21 Thread Amila Suriarachchi
On Thu, Nov 20, 2008 at 8:47 AM, warnockm [EMAIL PROTECTED] wrote:


 I'm trying to use WSDL2Java to create some shell java code from a WSDL file
 I
 created.  I created the SOAP server in PHP and used the WSDL file to create
 code in c# using Visual Studio 2008.  This works very well, but when i try
 it using the Axis2 tool, i get an error.

 My WSDL file is: https://www.warnockinc.com/Dunbar/ws/wsdl/dunbar.wsdl

 The error is:

 wsdl2java -uri https://www.warnockinc.com/Dunbar/ws/wsdl/dunbar.wsdl
 Using AXIS2_HOME:   C:\axis2\
 Using JAVA_HOME:C:\Program Files\Java\jre6\
 Retrieving document at
 'https://www.warnockinc.com/Dunbar/ws/wsdl/dunbar.wsdl'.
 Exception in thread main
 org.apache.axis2.wsdl.codegen.CodeGenerationException:
 java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at

 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
 Caused by: java.lang.RuntimeException:
 java.lang.reflect.InvocationTargetException
at

 org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
at

 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
... 2 more
 Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at

 org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
... 3 more
 Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find
 type 
 {http://schemas.xmlsoap.org/soap/encoding/}Arrayhttp://schemas.xmlsoap.org/soap/encoding/%7DArrayfrom
  the parent schema
 http://
 schema.example.com
at

 org.apache.axis2.schema.SchemaCompiler.copyMetaInfoHierarchy(SchemaCompiler.java:1296)
at

 org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1258)
at

 org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1153)
at

 org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1097)
at

 org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1017)
at

 org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:931)
at

 org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
at

 org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:552)
at
 org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1991)
at

 org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1874)
at

 org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1081)
at

 org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:980)
at

 org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:934)
at

 org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
at

 org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:563)
at
 org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:370)
at
 org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280)
at
 org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103)
... 8 more

 Any idea what this would be? Thanks!


Here the problem is Axis2 does not support SoapEncoding.

Thanks,
Amila.


 --
 View this message in context:
 http://www.nabble.com/WSDL2Java-error-tp20594340p20594340.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: WSDL2Java error

2008-11-21 Thread warnockm

Thanks, that helps.  Specifically, is it the SOAP-ENC part?  It occurs when
there is an array of a complex data type.  I read more about this, and many
people have a problem with it.  What is the alternative to this?


Amila Suriarachchi wrote:
 
 On Thu, Nov 20, 2008 at 8:47 AM, warnockm [EMAIL PROTECTED] wrote:
 

 I'm trying to use WSDL2Java to create some shell java code from a WSDL
 file
 I
 created.  I created the SOAP server in PHP and used the WSDL file to
 create
 code in c# using Visual Studio 2008.  This works very well, but when i
 try
 it using the Axis2 tool, i get an error.

 My WSDL file is: https://www.warnockinc.com/Dunbar/ws/wsdl/dunbar.wsdl

 The error is:

 wsdl2java -uri https://www.warnockinc.com/Dunbar/ws/wsdl/dunbar.wsdl
 Using AXIS2_HOME:   C:\axis2\
 Using JAVA_HOME:C:\Program Files\Java\jre6\
 Retrieving document at
 'https://www.warnockinc.com/Dunbar/ws/wsdl/dunbar.wsdl'.
 Exception in thread main
 org.apache.axis2.wsdl.codegen.CodeGenerationException:
 java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at

 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
 Caused by: java.lang.RuntimeException:
 java.lang.reflect.InvocationTargetException
at

 org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
at

 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
... 2 more
 Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at

 org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
... 3 more
 Caused by: org.apache.axis2.schema.SchemaCompilationException: can not
 find
 type
 {http://schemas.xmlsoap.org/soap/encoding/}Arrayhttp://schemas.xmlsoap.org/soap/encoding/%7DArrayfrom
 the parent schema
 http://
 schema.example.com
at

 org.apache.axis2.schema.SchemaCompiler.copyMetaInfoHierarchy(SchemaCompiler.java:1296)
at

 org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1258)
at

 org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1153)
at

 org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1097)
at

 org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1017)
at

 org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:931)
at

 org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
at

 org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:552)
at
 org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1991)
at

 org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1874)
at

 org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1081)
at

 org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:980)
at

 org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:934)
at

 org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
at

 org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:563)
at
 org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:370)
at
 org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280)
at
 org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103)
... 8 more

 Any idea what this would be? Thanks!
 
 
 Here the problem is Axis2 does not support SoapEncoding.
 
 Thanks,
 Amila.
 

 --
 View this message in context:
 http://www.nabble.com/WSDL2Java-error-tp20594340p20594340.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Amila Suriarachchi
 WSO2 Inc.
 blog: http://amilachinthaka.blogspot.com/
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL2Java-error-tp20594340p20632805.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL2JAVA options

2008-11-18 Thread Amila Suriarachchi
this is the default method it generates the code. this has done to
avoid compilation errors. There is no option to change it.

thanks,
Amila.

On 11/18/08, ibrahim demir [EMAIL PROTECTED] wrote:
 Hi All;

 I'm creating my classes with axis2 wsdl2java tool. But teh resultant classes
 are hard to read. It adds the class package name before every element. Is
 there any option to stop them. Or do you have any way to get rid of them
 quickly.

 As an example:

 private staticjava.lang.String generatePrefix(java.lang.String
 namespace) {
if(namespace.equals(urn:cs.com.tr/banking)){
return ;
}
return
 org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
}


 I do not want to see java.lang.String in front of generatePrefix method.

 Yours.

  Ibrahim DEMIR
 CyberSoft Yazilim Muh.
 http://www.ibrahimdemir.org





-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [WSDL2Java] How to use an XSD contained in a JAR

2008-11-18 Thread Amila Suriarachchi
On Tue, Nov 18, 2008 at 4:19 PM, stlecho [EMAIL PROTECTED] wrote:


 Hi,

 I would like to import an XSD that is contained in a JAR. Is this possible
 with WSDL2Java ?

 I think no. This depends on whether wsdl4j supports this feature or not.
Please have a look at :)

thanks,
Amila.



 Regards, Stefan Lecho.
 --
 View this message in context:
 http://www.nabble.com/-WSDL2Java--How-to-use-an-XSD-contained-in-a-JAR-tp20557265p20557265.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: WSDL2JAVA options

2008-11-18 Thread Manuel Darveau
Hi,

You could import the generated classes to eclipse and format the whole code
using the format tool.
This can remove unneeded package prefix and do various formatting based on
your preferences.

Manuel

On Tue, Nov 18, 2008 at 8:18 AM, ibrahim demir [EMAIL PROTECTED]wrote:

 Hi All;

 I'm creating my classes with axis2 wsdl2java tool. But teh resultant
 classes are hard to read. It adds the class package name before every
 element. Is there any option to stop them. Or do you have any way to get rid
 of them quickly.

 As an example:

 private static java.lang.String generatePrefix(java.lang.String
 namespace) {
if(namespace.equals(urn:cs.com.tr/banking)){
return ;
}
return
 org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
}


 I do not want to see java.lang.String in front of generatePrefix method.

 Yours.

 Ibrahim DEMIR
 CyberSoft Yazilim Muh.
 http://www.ibrahimdemir.org








Re: [WSDL2Java] How to use an XSD contained in a JAR

2008-11-18 Thread stlecho

The wsdl4j project does not have a mailing list :o(, so I would be pleased if
someone could clarify if wsdl4j supports this feature.

PS: Amila, could it be that your post has been modified: Please have a look
at ... ?

Amila Suriarachchi wrote:
 
 On Tue, Nov 18, 2008 at 4:19 PM, stlecho [EMAIL PROTECTED] wrote:
 

 Hi,

 I would like to import an XSD that is contained in a JAR. Is this
 possible
 with WSDL2Java ?
 
  I think no. This depends on whether wsdl4j supports this feature or not.
 Please have a look at :)
 
 thanks,
 Amila.
 


 Regards, Stefan Lecho.
 --
 View this message in context:
 http://www.nabble.com/-WSDL2Java--How-to-use-an-XSD-contained-in-a-JAR-tp20557265p20557265.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Amila Suriarachchi
 WSO2 Inc.
 blog: http://amilachinthaka.blogspot.com/
 
 

-- 
View this message in context: 
http://www.nabble.com/-WSDL2Java--How-to-use-an-XSD-contained-in-a-JAR-tp20557265p20568481.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: WSDL2Java generated a big stub file. How to generate multiple small ones?

2008-11-11 Thread Raghu Upadhyayula
Gus,

Use the -u option in WSDL2Java.

-u  Unpacks the databinding classes

Thanks
Raghu

-Original Message-
From: Gus [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 11, 2008 12:15 PM
To: axis-user@ws.apache.org
Subject: WSDL2Java generated a big stub file. How to generate multiple
small ones?


Hi everyone,

I am very new on Axis2 and WS. Hope someone can help me. I used a wsdl
file
to generate a client stub file (Eclipse IDE), but the stub file is very
big,
about 60,000 line. All sub-classes are static in the stub, e.g. request,
response, binding class:
public static class StudyInterval implements
org.apache.axis2.databinding.ADBBean.

Does anybody know how to generate each individual class, or it has to be
the
big stub? Thanks a lot in advance! Any helps are appreciatable?

Sheng
-- 
View this message in context:
http://www.nabble.com/WSDL2Java-generated-a-big-stub-file.-How-to-genera
te-multiple-small-ones--tp20445169p20445169.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: WSDL2Java generated a big stub file. How to generate multiple small ones?

2008-11-11 Thread Gus


Raghu Upadhyayula wrote:
 
 Gus,
 
   Use the -u option in WSDL2Java.
   
   -u  Unpacks the databinding classes
 
 Thanks
 Raghu
 
Thank you soo much, Raghu. I will try it now. I have been working on
this for several days, but couldn't figure it out. Today, I found the Axis
Forum, and got your help. That is great! Thank you! :)
-- 
View this message in context: 
http://www.nabble.com/WSDL2Java-generated-a-big-stub-file.-How-to-generate-multiple-small-ones--tp20445169p20446371.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL2Java behavior

2008-10-01 Thread Steve Cohen
Any luck in figuring out why this WSDL generates such gnarly code?  It 
is a real pain to work with all these nested objects that WSDL2Java 
created for me.  What should be simple setters and getters are a nightmare.



Steve Cohen wrote:

I'm not sure.  I now see that each xxx_type1 class uses the xxx_type0.

In any case, the WSDL in question is available here:

https://duoshare.com/dsWS/services/PostML/wsdl


Martin Gainty wrote:

Good Morning Mr Cohen

there appears to be a double definition for City and State entities
can you display the WSDL so we can reproduce here?

thanks
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and 
Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained 
within this transmission.



 Date: Tue, 30 Sep 2008 10:16:14 -0500
 From: [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Subject: WSDL2Java behavior

 running command line WSDL2Java, (axis2 1.4.1) with following options

 -o {root of my source tree} -t -d adb -u -ssi -wv 1.1 -or 
-Ejavaversion

 1.5 -uri {my wsdl}


 I find the following source code generation pattern:
 In reasonable packages under source, it generates data classes from 
the

 WSDL, say com.whatever.City1.java
 com.whatever.State1.java

 But it also generates (in the default package)
 City0.java
 State0.java

 What could be causing it to generate these extra classes in the 
default

 package and is there anything I can or should do about it.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Stay up to date on your PC, the Web, and your mobile phone with 
Windows Live. See Now 
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: wsdl2java and basic authentication

2008-10-01 Thread Jorge Medina
Report has been created:

 

https://issues.apache.org/jira/browse/AXIS2-4060

 

 



From: keith chapman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2008 9:25 PM
To: axis-user@ws.apache.org
Subject: Re: wsdl2java and basic authentication

 

Could you please file a JIRA please so that we will be able to fix this
for the next release.

Thanks,
Keith.

On Tue, Sep 30, 2008 at 8:51 PM, Jorge Medina [EMAIL PROTECTED]
wrote:

I got it. There is a bug in version 1.4

 

The same line works fine in version 1.3

 

 



From: Jorge Medina [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2008 11:15 AM


To: axis-user@ws.apache.org

Subject: RE: wsdl2java and basic authentication

 

No, I have the two computers in the same network, no firewall between
them. 

The error wouldn't be 401 if the issue was a firewall, right?

 

Nevertheless, I will repeat my test directly at the server.

 

 

-Jorge

 



From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2008 11:09 AM
To: Jorge Medina
Subject: RE: wsdl2java and basic authentication

 

appears you're behind a proxy server so 
you'll either need to specify WSDL2Java proxy settings e.g.
  --http-proxy-hostProxy host address if you are behind a
firewall
  --http-proxy-portProxy prot address if you are behind a
firewall

or d/l the wsdl to an accessible file or webserver and use that

Saludos Cordiales desde Mass
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 



Subject: wsdl2java and basic authentication
Date: Tue, 30 Sep 2008 10:57:40 -0400
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org

Hi, 

  I have a Tomcat server (6.0.16) using basic authentication through a
JDBC connection to a database.

  The server runs in port 8080.

 

   I am trying to run wsdl2java against this server, 

 

wsdl2java -uri
http://ssmith:[EMAIL PROTECTED]:8080/webservices/mywsdl.wsdl -s
http://ssmith:[EMAIL PROTECTED]:8080/webservices/mywsdl.wsdl-s
  -uw -u

 

but I get HTTP error 401:

 

Retrieving document at
'http://ssmith:[EMAIL PROTECTED]:8080/company

-webservices/mywsdl.wsdl'.

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException

: Error parsing WSDL

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

ionEngine.java:156)

at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

Caused by: javax.wsdl.WSDLException: WSDLException:
faultCode=OTHER_ERROR: Unabl

e to resolve imported document at
'http://ssmith:[EMAIL PROTECTED]:8

080/webservices/mywsdl.wsdl'.: java.io.IOException: Server retu

rned HTTP response code: 401 for URL:
http://ssmith:[EMAIL PROTECTED]

m:8080/webservices/mywsdl.wsdl

at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(

CodeGenerationEngine.java:288)

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

ionEngine.java:111)

... 2 more

Caused by: java.io.IOException: Server returned HTTP response code: 401
for URL:

 http://ssmith:[EMAIL PROTECTED]:8080/webservices/mailingCru

dWsdl.wsdl

at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon

nection.java:1241)

at java.net.URL.openStream(URL.java:1009)

at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown
Source)

 

... 6 more

 

 

The same URL works perfectly fine in a browser.

Is there any other way to specify the user and password required to get
the WSDL when running wsdl2java?

 

-Jorge

 

 

 



Want to do more with Windows Live? Learn 10 hidden secrets from Jamie.
Learn Now
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-c
ns%21550F681DAD532637%215295.entry?ocid=TXT_TAGLM_WL_domore_092008 




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org



Re: WSDL2Java behavior

2008-10-01 Thread don t

Hi, this seems to occur when the WSDL has XML schema restrictions and you
then run wsdl2java with the default ADB binding. It seems the type1 classes
are wrappers that enforce the XML schema restrictions in the setters. 

One way to work around this is create your own Java beans and use JiBX data
binding. However there is significant amount of work and learning when using
a different data binding.


Steve Cohen wrote:
 
 running command line WSDL2Java, (axis2 1.4.1) with following options
 
 -o {root of my source tree} -t -d adb -u -ssi -wv 1.1 -or -Ejavaversion 
 1.5 -uri {my wsdl}
 
 
 I find the following source code generation pattern:
 In reasonable packages under source, it generates data classes from the 
 WSDL, say   com.whatever.City1.java
 com.whatever.State1.java
 
 But it also generates (in the default package)
 City0.java
 State0.java
 
 What could be causing it to generate these extra classes in the default 
 package and is there anything I can or should do about it.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL2Java-behavior-tp19744185p19771435.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL2Java behavior

2008-10-01 Thread keith chapman
You might wanna use the -uw option (Unwrap) which generates better method
signatures for you.

Thanks,
Keith.

On Wed, Oct 1, 2008 at 9:59 PM, Steve Cohen [EMAIL PROTECTED] wrote:

 Any luck in figuring out why this WSDL generates such gnarly code?  It is a
 real pain to work with all these nested objects that WSDL2Java created for
 me.  What should be simple setters and getters are a nightmare.



 Steve Cohen wrote:

 I'm not sure.  I now see that each xxx_type1 class uses the xxx_type0.

 In any case, the WSDL in question is available here:

 https://duoshare.com/dsWS/services/PostML/wsdl


 Martin Gainty wrote:

 Good Morning Mr Cohen

 there appears to be a double definition for City and State entities
 can you display the WSDL so we can reproduce here?

 thanks
 Martin
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official
 business of Sender. This transmission is of a confidential nature and Sender
 does not endorse distribution to any party other than intended recipient.
 Sender does not necessarily endorse content contained within this
 transmission.


  Date: Tue, 30 Sep 2008 10:16:14 -0500
  From: [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Subject: WSDL2Java behavior
 
  running command line WSDL2Java, (axis2 1.4.1) with following options
 
  -o {root of my source tree} -t -d adb -u -ssi -wv 1.1 -or -Ejavaversion
  1.5 -uri {my wsdl}
 
 
  I find the following source code generation pattern:
  In reasonable packages under source, it generates data classes from the
  WSDL, say com.whatever.City1.java
  com.whatever.State1.java
 
  But it also generates (in the default package)
  City0.java
  State0.java
 
  What could be causing it to generate these extra classes in the default
  package and is there anything I can or should do about it.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 
 Stay up to date on your PC, the Web, and your mobile phone with Windows
 Live. See Now 
 http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


RE: wsdl2java and basic authentication

2008-09-30 Thread Jorge Medina
No, I have the two computers in the same network, no firewall between
them. 

The error wouldn't be 401 if the issue was a firewall, right?

 

Nevertheless, I will repeat my test directly at the server.

 

 

-Jorge

 



From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2008 11:09 AM
To: Jorge Medina
Subject: RE: wsdl2java and basic authentication

 

appears you're behind a proxy server so 
you'll either need to specify WSDL2Java proxy settings e.g.
  --http-proxy-hostProxy host address if you are behind a
firewall
  --http-proxy-portProxy prot address if you are behind a
firewall

or d/l the wsdl to an accessible file or webserver and use that

Saludos Cordiales desde Mass
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 





Subject: wsdl2java and basic authentication
Date: Tue, 30 Sep 2008 10:57:40 -0400
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org

Hi, 

  I have a Tomcat server (6.0.16) using basic authentication through a
JDBC connection to a database.

  The server runs in port 8080.

 

   I am trying to run wsdl2java against this server, 

 

wsdl2java -uri
http://ssmith:[EMAIL PROTECTED]:8080/webservices/mywsdl.wsdl -s
-uw -u

 

but I get HTTP error 401:

 

Retrieving document at
'http://ssmith:[EMAIL PROTECTED]:8080/company

-webservices/mywsdl.wsdl'.

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException

: Error parsing WSDL

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

ionEngine.java:156)

at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

Caused by: javax.wsdl.WSDLException: WSDLException:
faultCode=OTHER_ERROR: Unabl

e to resolve imported document at
'http://ssmith:[EMAIL PROTECTED]:8

080/webservices/mywsdl.wsdl'.: java.io.IOException: Server retu

rned HTTP response code: 401 for URL:
http://ssmith:[EMAIL PROTECTED]

m:8080/webservices/mywsdl.wsdl

at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(

CodeGenerationEngine.java:288)

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

ionEngine.java:111)

... 2 more

Caused by: java.io.IOException: Server returned HTTP response code: 401
for URL:

 http://ssmith:[EMAIL PROTECTED]:8080/webservices/mailingCru

dWsdl.wsdl

at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon

nection.java:1241)

at java.net.URL.openStream(URL.java:1009)

at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown
Source)

 

... 6 more

 

 

The same URL works perfectly fine in a browser.

Is there any other way to specify the user and password required to get
the WSDL when running wsdl2java?

 

-Jorge

 

 

 



Want to do more with Windows Live? Learn 10 hidden secrets from Jamie.
Learn Now
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-c
ns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008 



RE: wsdl2java and basic authentication

2008-09-30 Thread Jorge Medina
I got it. There is a bug in version 1.4

 

The same line works fine in version 1.3

 

 



From: Jorge Medina [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2008 11:15 AM
To: axis-user@ws.apache.org
Subject: RE: wsdl2java and basic authentication

 

No, I have the two computers in the same network, no firewall between
them. 

The error wouldn't be 401 if the issue was a firewall, right?

 

Nevertheless, I will repeat my test directly at the server.

 

 

-Jorge

 



From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2008 11:09 AM
To: Jorge Medina
Subject: RE: wsdl2java and basic authentication

 

appears you're behind a proxy server so 
you'll either need to specify WSDL2Java proxy settings e.g.
  --http-proxy-hostProxy host address if you are behind a
firewall
  --http-proxy-portProxy prot address if you are behind a
firewall

or d/l the wsdl to an accessible file or webserver and use that

Saludos Cordiales desde Mass
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 



Subject: wsdl2java and basic authentication
Date: Tue, 30 Sep 2008 10:57:40 -0400
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org

Hi, 

  I have a Tomcat server (6.0.16) using basic authentication through a
JDBC connection to a database.

  The server runs in port 8080.

 

   I am trying to run wsdl2java against this server, 

 

wsdl2java -uri
http://ssmith:[EMAIL PROTECTED]:8080/webservices/mywsdl.wsdl -s
-uw -u

 

but I get HTTP error 401:

 

Retrieving document at
'http://ssmith:[EMAIL PROTECTED]:8080/company

-webservices/mywsdl.wsdl'.

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException

: Error parsing WSDL

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

ionEngine.java:156)

at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

Caused by: javax.wsdl.WSDLException: WSDLException:
faultCode=OTHER_ERROR: Unabl

e to resolve imported document at
'http://ssmith:[EMAIL PROTECTED]:8

080/webservices/mywsdl.wsdl'.: java.io.IOException: Server retu

rned HTTP response code: 401 for URL:
http://ssmith:[EMAIL PROTECTED]

m:8080/webservices/mywsdl.wsdl

at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(

CodeGenerationEngine.java:288)

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

ionEngine.java:111)

... 2 more

Caused by: java.io.IOException: Server returned HTTP response code: 401
for URL:

 http://ssmith:[EMAIL PROTECTED]:8080/webservices/mailingCru

dWsdl.wsdl

at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon

nection.java:1241)

at java.net.URL.openStream(URL.java:1009)

at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown
Source)

 

... 6 more

 

 

The same URL works perfectly fine in a browser.

Is there any other way to specify the user and password required to get
the WSDL when running wsdl2java?

 

-Jorge

 

 

 



Want to do more with Windows Live? Learn 10 hidden secrets from Jamie.
Learn Now
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-c
ns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008 



RE: wsdl2java and basic authentication

2008-09-30 Thread Martin Gainty

it seems you have found a malicious bug..please let us know how to remove 

thanks
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


Subject: RE: wsdl2java and basic authentication
Date: Tue, 30 Sep 2008 11:21:31 -0400
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org



















I got it. There is a bug in version 1.4

 

The same line works fine in version 1.3

 

 









From: Jorge Medina
[mailto:[EMAIL PROTECTED] 

Sent: Tuesday, September 30, 2008 11:15
AM

To: axis-user@ws.apache.org

Subject: RE: wsdl2java and basic
authentication



 

No, I have the two computers in the same
network, no firewall between them. 

The error wouldn’t be 401 if the
issue was a firewall, right?

 

Nevertheless, I will repeat my test
directly at the server.

 

 

-Jorge

 









From: Martin Gainty
[mailto:[EMAIL PROTECTED] 

Sent: Tuesday, September 30, 2008
11:09 AM

To: Jorge Medina

Subject: RE: wsdl2java and basic
authentication



 

appears you're behind a proxy
server so 

you'll either need to specify WSDL2Java proxy settings e.g.

  --http-proxy-hostProxy host
address if you are behind a firewall

  --http-proxy-portProxy prot
address if you are behind a firewall



or d/l the wsdl to an accessible file or webserver and use that



Saludos Cordiales desde Mass

Martin 

__ 

Disclaimer and confidentiality note 

Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a confidential nature and Sender does not
endorse distribution to any party other than intended recipient. Sender does
not necessarily endorse content contained within this transmission. 







Subject: wsdl2java and basic
authentication

Date: Tue, 30 Sep 2008 10:57:40 -0400

From: [EMAIL PROTECTED]

To: axis-user@ws.apache.org



Hi, 

  I have a Tomcat server (6.0.16) using basic
authentication through a JDBC connection to a database.

  The server runs in port 8080.

 

   I am trying to run wsdl2java against this
server, 

 

   
wsdl2java –uri http://ssmith:[EMAIL PROTECTED]:8080/webservices/mywsdl.wsdl
-s -uw -u

 

but I get HTTP error 401:

 

Retrieving document at
'http://ssmith:[EMAIL PROTECTED]:8080/company

-webservices/mywsdl.wsdl'.

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException

: Error parsing WSDL

   
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

ionEngine.java:156)

   
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

   
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

Caused by: javax.wsdl.WSDLException:
WSDLException: faultCode=OTHER_ERROR: Unabl

e to resolve imported document at
'http://ssmith:[EMAIL PROTECTED]:8

080/webservices/mywsdl.wsdl'.:
java.io.IOException: Server retu

rned HTTP response code: 401 for
URL: http://ssmith:[EMAIL PROTECTED]

m:8080/webservices/mywsdl.wsdl

   
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

   
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

   
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(

CodeGenerationEngine.java:288)

   
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

ionEngine.java:111)

   
... 2 more

Caused by: java.io.IOException:
Server returned HTTP response code: 401 for URL:

 http://ssmith:[EMAIL PROTECTED]:8080/webservices/mailingCru

dWsdl.wsdl

   
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon

nection.java:1241)

   
at java.net.URL.openStream(URL.java:1009)

   
at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)

 

   
... 6 more

 

 

The same URL works perfectly fine in a browser.

Is there any other way to specify the user and password required
to get the WSDL when running wsdl2java?

 

-Jorge

 

 



 







Want to do more with Windows Live? Learn “10 hidden
secrets” from Jamie. Learn Now







_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

RE: wsdl2java and basic authentication

2008-09-30 Thread Jorge Medina
Actually, I only tested with version 1.4.1 and version 1.3

Version 1.3 works fine

 



From: Jorge Medina [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2008 11:22 AM
To: axis-user@ws.apache.org
Subject: RE: wsdl2java and basic authentication

 

I got it. There is a bug in version 1.4

 

The same line works fine in version 1.3

 

 



From: Jorge Medina [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2008 11:15 AM
To: axis-user@ws.apache.org
Subject: RE: wsdl2java and basic authentication

 

No, I have the two computers in the same network, no firewall between
them. 

The error wouldn't be 401 if the issue was a firewall, right?

 

Nevertheless, I will repeat my test directly at the server.

 

 

-Jorge

 



From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2008 11:09 AM
To: Jorge Medina
Subject: RE: wsdl2java and basic authentication

 

appears you're behind a proxy server so 
you'll either need to specify WSDL2Java proxy settings e.g.
  --http-proxy-hostProxy host address if you are behind a
firewall
  --http-proxy-portProxy prot address if you are behind a
firewall

or d/l the wsdl to an accessible file or webserver and use that

Saludos Cordiales desde Mass
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 



Subject: wsdl2java and basic authentication
Date: Tue, 30 Sep 2008 10:57:40 -0400
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org

Hi, 

  I have a Tomcat server (6.0.16) using basic authentication through a
JDBC connection to a database.

  The server runs in port 8080.

 

   I am trying to run wsdl2java against this server, 

 

wsdl2java -uri
http://ssmith:[EMAIL PROTECTED]:8080/webservices/mywsdl.wsdl -s
-uw -u

 

but I get HTTP error 401:

 

Retrieving document at
'http://ssmith:[EMAIL PROTECTED]:8080/company

-webservices/mywsdl.wsdl'.

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException

: Error parsing WSDL

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

ionEngine.java:156)

at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

Caused by: javax.wsdl.WSDLException: WSDLException:
faultCode=OTHER_ERROR: Unabl

e to resolve imported document at
'http://ssmith:[EMAIL PROTECTED]:8

080/webservices/mywsdl.wsdl'.: java.io.IOException: Server retu

rned HTTP response code: 401 for URL:
http://ssmith:[EMAIL PROTECTED]

m:8080/webservices/mywsdl.wsdl

at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(

CodeGenerationEngine.java:288)

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

ionEngine.java:111)

... 2 more

Caused by: java.io.IOException: Server returned HTTP response code: 401
for URL:

 http://ssmith:[EMAIL PROTECTED]:8080/webservices/mailingCru

dWsdl.wsdl

at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon

nection.java:1241)

at java.net.URL.openStream(URL.java:1009)

at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown
Source)

 

... 6 more

 

 

The same URL works perfectly fine in a browser.

Is there any other way to specify the user and password required to get
the WSDL when running wsdl2java?

 

-Jorge

 

 

 



Want to do more with Windows Live? Learn 10 hidden secrets from Jamie.
Learn Now
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-c
ns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008 



RE: WSDL2Java behavior

2008-09-30 Thread Martin Gainty

Good Morning Mr Cohen

there appears to be a double definition for City and State entities
can you display the WSDL so we can reproduce here?

thanks
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Tue, 30 Sep 2008 10:16:14 -0500
 From: [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Subject: WSDL2Java behavior
 
 running command line WSDL2Java, (axis2 1.4.1) with following options
 
 -o {root of my source tree} -t -d adb -u -ssi -wv 1.1 -or -Ejavaversion 
 1.5 -uri {my wsdl}
 
 
 I find the following source code generation pattern:
 In reasonable packages under source, it generates data classes from the 
 WSDL, say   com.whatever.City1.java
 com.whatever.State1.java
 
 But it also generates (in the default package)
 City0.java
 State0.java
 
 What could be causing it to generate these extra classes in the default 
 package and is there anything I can or should do about it.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

Re: WSDL2Java behavior

2008-09-30 Thread Steve Cohen

I'm not sure.  I now see that each xxx_type1 class uses the xxx_type0.

In any case, the WSDL in question is available here:

https://duoshare.com/dsWS/services/PostML/wsdl


Martin Gainty wrote:

Good Morning Mr Cohen

there appears to be a double definition for City and State entities
can you display the WSDL so we can reproduce here?

thanks
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and 
Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained 
within this transmission.



 Date: Tue, 30 Sep 2008 10:16:14 -0500
 From: [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Subject: WSDL2Java behavior

 running command line WSDL2Java, (axis2 1.4.1) with following options

 -o {root of my source tree} -t -d adb -u -ssi -wv 1.1 -or -Ejavaversion
 1.5 -uri {my wsdl}


 I find the following source code generation pattern:
 In reasonable packages under source, it generates data classes from the
 WSDL, say com.whatever.City1.java
 com.whatever.State1.java

 But it also generates (in the default package)
 City0.java
 State0.java

 What could be causing it to generate these extra classes in the default
 package and is there anything I can or should do about it.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Stay up to date on your PC, the Web, and your mobile phone with 
Windows Live. See Now 
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wsdl2java and basic authentication

2008-09-30 Thread keith chapman
Could you please file a JIRA please so that we will be able to fix this for
the next release.

Thanks,
Keith.

On Tue, Sep 30, 2008 at 8:51 PM, Jorge Medina [EMAIL PROTECTED] wrote:

  I got it. There is a bug in version 1.4



 The same line works fine in version 1.3




  --

 *From:* Jorge Medina [mailto:[EMAIL PROTECTED]
 *Sent:* Tuesday, September 30, 2008 11:15 AM
 *To:* axis-user@ws.apache.org
 *Subject:* RE: wsdl2java and basic authentication



 No, I have the two computers in the same network, no firewall between them.


 The error wouldn't be 401 if the issue was a firewall, right?



 Nevertheless, I will repeat my test directly at the server.





 -Jorge


  --

 *From:* Martin Gainty [mailto:[EMAIL PROTECTED]
 *Sent:* Tuesday, September 30, 2008 11:09 AM
 *To:* Jorge Medina
 *Subject:* RE: wsdl2java and basic authentication



 appears you're behind a proxy server so
 you'll either need to specify WSDL2Java proxy settings e.g.
   --http-proxy-hostProxy host address if you are behind a firewall
   --http-proxy-portProxy prot address if you are behind a firewall

 or d/l the wsdl to an accessible file or webserver and use that

 Saludos Cordiales desde Mass
 Martin
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official
 business of Sender. This transmission is of a confidential nature and Sender
 does not endorse distribution to any party other than intended recipient.
 Sender does not necessarily endorse content contained within this
 transmission.
  --

 Subject: wsdl2java and basic authentication
 Date: Tue, 30 Sep 2008 10:57:40 -0400
 From: [EMAIL PROTECTED]
 To: axis-user@ws.apache.org

 Hi,

   I have a Tomcat server (6.0.16) using basic authentication through a JDBC
 connection to a database.

   The server runs in port 8080.



I am trying to run wsdl2java against this server,



 wsdl2java –uri http://ssmith:[EMAIL 
 PROTECTED]:8080/webservices/mywsdl.wsdl
 -shttp://ssmith:[EMAIL PROTECTED]:8080/webservices/mywsdl.wsdl-s-uw -u



 but I get HTTP error 401:



 Retrieving document at '
 http://ssmith:[EMAIL PROTECTED]:8080/company

 -webservices/mywsdl.wsdl'.

 Exception in thread main
 org.apache.axis2.wsdl.codegen.CodeGenerationException

 : Error parsing WSDL

 at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

 ionEngine.java:156)

 at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

 at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

 Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR:
 Unabl

 e to resolve imported document at '
 http://ssmith:[EMAIL PROTECTED]:8

 080/webservices/mywsdl.wsdl'.: java.io.IOException: Server retu

 rned HTTP response code: 401 for URL:
 http://ssmith:[EMAIL PROTECTED]

 m:8080/webservices/mywsdl.wsdl

 at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

 at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)

 at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(

 CodeGenerationEngine.java:288)

 at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat

 ionEngine.java:111)

 ... 2 more

 Caused by: java.io.IOException: Server returned HTTP response code: 401 for
 URL:

  http://ssmith:[EMAIL PROTECTED]:8080/webservices/mailingCru

 dWsdl.wsdl

 at
 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon

 nection.java:1241)

 at java.net.URL.openStream(URL.java:1009)

 at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown
 Source)



 ... 6 more





 The same URL works perfectly fine in a browser.

 Is there any other way to specify the user and password required to get the
 WSDL when running wsdl2java?



 -Jorge






  --

 Want to do more with Windows Live? Learn 10 hidden secrets from Jamie. Learn
 Nowhttp://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns%21550F681DAD532637%215295.entry?ocid=TXT_TAGLM_WL_domore_092008




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


RE: wsdl2java and wsdl problem

2008-09-15 Thread Shehan Simen
Hi Anne,
What you said is true.
I believe that maxOccures=unbounded should be a syntax error for a choice.
Can anybody think a use of this in choice?

Regards,
Shehan

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2008 9:57 PM
To: axis-user@ws.apache.org
Subject: Re: wsdl2java and wsdl problem

The type declaration is valid.

s:choice indicates that the element may contain one of the elements
listed in the choice group. The minOccurs=0 attribute indicates that
the element is optional. It is not intended to be an array; therefore,
it would be inappropriate to say maxOccurs=unbounded.

Anne


On Fri, Sep 12, 2008 at 12:04 AM, Shehan Simen [EMAIL PROTECTED] wrote:
 Hi,

 I have  a question about wsdl. The wsdl2java fails in following case. But I
 feel the wsdl is wrong.

 I got the following element in a complex type.



 s:complexType name=ResponseBusinessEntity mixed=false

 s:complexContent mixed=false

 s:extension base=tns:ResponseBody

 s:sequence

 s:choice minOccurs=0 maxOccurs=unbounded

 s:element name=legalName
 type=tns:IndividualName minOccurs=0/

 s:element name=mainName
 type=tns:OrganisationName minOccurs=0/

 /s:choice

 /s:sequence

 /s:extension

 /s:complexContent

 /s:complexType



 I believe this is logically wrong or useless. The choice is multiple. What
 is the use of it?

 Does this means there can be 5 choices with 3 legalName and 2 mainName? Then
 what is use of choice? We can just use both of them without choice, but with
 minOccurs=0 maxOccurs=unbounded

  I believe it should be as follows.



 s:choice minOccurs=0 maxOccurs=1

 s:element name=legalName
 type=tns:IndividualName minOccurs=0 maxOccurs=unbounded/

 s:element name=mainName
 type=tns:OrganisationName minOccurs=0 maxOccurs=unbounded/

 /s:choice



 Anyway axis2 does not generate stub properly for the first case.

 What do you guys think?



 Please let me know if I am wrong.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wsdl2java and wsdl problem

2008-09-12 Thread Amila Suriarachchi
Could you please log a jira with the wsdl. Did you try with any other
databindings like xmlbeans or jaxbri?

thanks,
Amila.

On Fri, Sep 12, 2008 at 9:34 AM, Shehan Simen [EMAIL PROTECTED] wrote:

  Hi,

 I have  a question about wsdl. The wsdl2java fails in following case. But I
 feel the wsdl is wrong.

 I got the following element in a complex type.



 s:complexType name=ResponseBusinessEntity mixed=false

 s:complexContent mixed=false

 s:extension base=tns:ResponseBody

 s:sequence

 s:choice minOccurs=0 maxOccurs=unbounded

 s:element name=legalName type=
 tns:IndividualName minOccurs=0/

 s:element name=mainName type=
 tns:OrganisationName minOccurs=0/

 /s:choice

 /s:sequence

 /s:extension

 /s:complexContent

 /s:complexType



 I believe this is logically wrong or useless. The choice is multiple. What
 is the use of it?

 Does this means there can be 5 choices with 3 legalName and 2 mainName?
 Then what is use of choice? We can just use both of them without choice, but
 with minOccurs=0 maxOccurs=unbounded

  I believe it should be as follows.



 s:choice minOccurs=0 maxOccurs=1

 s:element name=legalName type=
 tns:IndividualName minOccurs=0 maxOccurs=unbounded/

 s:element name=mainName type=
 tns:OrganisationName minOccurs=0 maxOccurs=unbounded/

 /s:choice



 Anyway axis2 does not generate stub properly for the first case.

 What do you guys think?



 Please let me know if I am wrong.








-- 
Amila Suriarachchi,
WSO2 Inc.


Re: wsdl2java and wsdl problem

2008-09-12 Thread Anne Thomas Manes
The type declaration is valid.

s:choice indicates that the element may contain one of the elements
listed in the choice group. The minOccurs=0 attribute indicates that
the element is optional. It is not intended to be an array; therefore,
it would be inappropriate to say maxOccurs=unbounded.

Anne


On Fri, Sep 12, 2008 at 12:04 AM, Shehan Simen [EMAIL PROTECTED] wrote:
 Hi,

 I have  a question about wsdl. The wsdl2java fails in following case. But I
 feel the wsdl is wrong.

 I got the following element in a complex type.



 s:complexType name=ResponseBusinessEntity mixed=false

 s:complexContent mixed=false

 s:extension base=tns:ResponseBody

 s:sequence

 s:choice minOccurs=0 maxOccurs=unbounded

 s:element name=legalName
 type=tns:IndividualName minOccurs=0/

 s:element name=mainName
 type=tns:OrganisationName minOccurs=0/

 /s:choice

 /s:sequence

 /s:extension

 /s:complexContent

 /s:complexType



 I believe this is logically wrong or useless. The choice is multiple. What
 is the use of it?

 Does this means there can be 5 choices with 3 legalName and 2 mainName? Then
 what is use of choice? We can just use both of them without choice, but with
 minOccurs=0 maxOccurs=unbounded

  I believe it should be as follows.



 s:choice minOccurs=0 maxOccurs=1

 s:element name=legalName
 type=tns:IndividualName minOccurs=0 maxOccurs=unbounded/

 s:element name=mainName
 type=tns:OrganisationName minOccurs=0 maxOccurs=unbounded/

 /s:choice



 Anyway axis2 does not generate stub properly for the first case.

 What do you guys think?



 Please let me know if I am wrong.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wsdl2java ... _operationClient.execute

2008-09-08 Thread Aseem Sharma



Amila Suriarachchi wrote:
 
 On Tue, Aug 5, 2008 at 4:05 PM, axis-user [EMAIL PROTECTED] wrote:
 

 2)We are using this command to generate the client stubs
 WSDL2Java -uri DDP.wsdl  -d xmlbeans

 3)When calling stub's startxyz() method through our Client Program 
 for
 asynchronous calling of our web service, the request is not going to
 server
 side and it is not showing any client side exception.

 4)But when we change _operationClient.execute(true); line in startxyz()
 method of the client stub which was earlier
 _operationClient.execute(false);
 the request went to server side.
 Axis 1.4 version is used

 Not able to figure out where we went wrong?
 
 
 this is because your client dies before axis2 able to send the request.
 Try
 putting a Thread.sleep(2) after the .startxx method call.
 
 thanks,
 Amila.
 

 --
 View this message in context:
 http://www.nabble.com/wsdl2java-...-_operationClient.execute-tp18828514p18828514.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Amila Suriarachchi,
 WSO2 Inc.
 
 

---
I am also facing the same problem. Putting Thread.sleep(2) after the
.startxx method call works fine. But i have to send hundreds of records
asynchronysly. If I write Thread.sleep(2), It will take 20 seconds for
processing each request. I have to reduce this time as much as we can. Is
there any other way to overcome this problem? 


Thanks,
Aseem

-- 
View this message in context: 
http://www.nabble.com/wsdl2java-...-_operationClient.execute-tp18828514p19373003.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wsdl2java bug?

2008-09-06 Thread Jeff Greif
There is no element named boolean in the XML Schema namespace, only
a type named boolean.  You have to provide an element QName for the
message part in a doc/lit web service, so you must define an element
that is of type boolean if that's the type you want.  It must be in
some namespace you control.  There is no way to modify the XML Schema
namespace even if it were legal to do so, which it isn't.

Jeff

On Sat, Sep 6, 2008 at 8:20 AM, nivox [EMAIL PROTECTED] wrote:
 I'm trying to generate the Java code from a document-literal WSDL.
 Initailly I was able to write a fulli WS-I compiant WSDL and generate
 the code with wsdl2java without any problem.

 I then modified a portion of the wsdl from:

 wsdl:message name=editGeneralSubscriptionResponse
  wsdl:part name=return element=impl:BooleanResponse /
 /wsdl:message

 to:

 wsdl:message name=editGeneralSubscriptionResponse
  wsdl:part name=return element=xsd:boolean /
 /wsdl:message

 Now if I try to run wsdl2java it fail with an NullPointerException as
 you cas see here:
 
 [axis-wsdl2java] 6-set-2008 16.43.47 org.apache.axis.utils.JavaUtils
 isAttachmentSupported
 [axis-wsdl2java] AVVERTENZA: Unable to find required classes
 (javax.activation.DataHandler and javax.mail.internet.MimeMultipart).
 Attachment support is disabled.
 [axis-wsdl2java] WSDL2Java
 /home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SubscriptionService.wsdl
 [axis-wsdl2java] Parsing XML file:
 /home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SubscriptionService.wsdl
 [axis-wsdl2java] Retrieving document at 'SearchService.wsdl', relative
 to
 'file:/home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SubscriptionService.wsdl'.
 [axis-wsdl2java] Retrieving schema at 'SearchService.xsd', relative to
 'file:/home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SearchService.wsdl'.
 [axis-wsdl2java] Retrieving schema at 'SearchService.xsd', relative to
 'file:/home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SubscriptionService.wsdl'.
 [axis-wsdl2java] {http://www.w3.org/2001/XMLSchema}boolean already exists
 [axis-wsdl2java] {http://liquidpublication.it/SearchService}ID already
 exists
 [axis-wsdl2java] {http://liquidpublication.it/SearchService}DateRange
 already exists
 [axis-wsdl2java]
 {http://liquidpublication.it/SearchService}SearchCriteria already exists
 [axis-wsdl2java] Running Wsdl2javaAntTask with parameters:
 [axis-wsdl2java]verbose:true
 [axis-wsdl2java]debug:true
 [axis-wsdl2java]quiet:false
 [axis-wsdl2java]server-side:true
 [axis-wsdl2java]skeletonDeploy:true
 [axis-wsdl2java]helperGen:false
 [axis-wsdl2java]factory:null
 [axis-wsdl2java]nsIncludes:[]
 [axis-wsdl2java]nsExcludes:[]
 [axis-wsdl2java]factoryProps:[]
 [axis-wsdl2java]testCase:false
 [axis-wsdl2java]noImports:false
 [axis-wsdl2java]NStoPkg:{}
 [axis-wsdl2java]
 output:/home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/srcSkel
 [axis-wsdl2java]protocolHandlerPkgs:
 [axis-wsdl2java]deployScope:
 [axis-wsdl2java]
 URL:/home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SubscriptionService.wsdl
 [axis-wsdl2java]all:false
 [axis-wsdl2java]typeMappingVersion:1.2
 [axis-wsdl2java]timeout:45000
 [axis-wsdl2java]failOnNetworkErrors:false
 [axis-wsdl2java]printStackTraceOnFailure:true
 [axis-wsdl2java]namespaceMappingFile:null
 [axis-wsdl2java]username:null
 [axis-wsdl2java]:passwordnull
 [axis-wsdl2java]:noWrappedfalse
 [axis-wsdl2java]:allowInvalidURLfalse
 [axis-wsdl2java]:implementationClassNamenull
 [axis-wsdl2java]:classpathnull
 [axis-wsdl2java]http.proxyHost=null
 [axis-wsdl2java]http.proxyPort=null
 [axis-wsdl2java]http.proxyUser=null
 [axis-wsdl2java]http.proxyPassword=null
 [axis-wsdl2java]socks.proxyHost=null
 [axis-wsdl2java]socks.proxyPort=null
 [axis-wsdl2java] java.lang.NullPointerException
 [axis-wsdl2java]at
 org.apache.axis.wsdl.toJava.Utils.getParameterTypeName(Utils.java:994)
 [axis-wsdl2java]at
 org.apache.axis.wsdl.toJava.JavaGeneratorFactory.constructSignature(JavaGeneratorFactory.java:1455)
 [axis-wsdl2java]at
 org.apache.axis.wsdl.toJava.JavaGeneratorFactory.constructSignatures(JavaGeneratorFactory.java:1420)
 [axis-wsdl2java]at
 org.apache.axis.wsdl.toJava.JavaGeneratorFactory.generatorPass(JavaGeneratorFactory.java:213)
 [axis-wsdl2java]at
 org.apache.axis.wsdl.gen.Parser.generate(Parser.java:425)
 [axis-wsdl2java]at
 org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
 [axis-wsdl2java]at
 org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
 [axis-wsdl2java]at 

RE: wsdl2java bug?

2008-09-06 Thread Martin Gainty

Andrea

if you could display your full wsdl we could see what your xsd maps to..

Molte Grazie
Martin
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Sat, 6 Sep 2008 17:20:54 +0200
 From: [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Subject: wsdl2java bug?
 
 I'm trying to generate the Java code from a document-literal WSDL.
 Initailly I was able to write a fulli WS-I compiant WSDL and generate
 the code with wsdl2java without any problem.
 
 I then modified a portion of the wsdl from:
 
 wsdl:message name=editGeneralSubscriptionResponse
   wsdl:part name=return element=impl:BooleanResponse /
 /wsdl:message
 
 to:
 
 wsdl:message name=editGeneralSubscriptionResponse
   wsdl:part name=return element=xsd:boolean /
 /wsdl:message
 
 Now if I try to run wsdl2java it fail with an NullPointerException as
 you cas see here:
 
 [axis-wsdl2java] 6-set-2008 16.43.47 org.apache.axis.utils.JavaUtils
 isAttachmentSupported
 [axis-wsdl2java] AVVERTENZA: Unable to find required classes
 (javax.activation.DataHandler and javax.mail.internet.MimeMultipart).
 Attachment support is disabled.
 [axis-wsdl2java] WSDL2Java
 /home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SubscriptionService.wsdl
 [axis-wsdl2java] Parsing XML file:
 /home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SubscriptionService.wsdl
 [axis-wsdl2java] Retrieving document at 'SearchService.wsdl', relative
 to
 'file:/home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SubscriptionService.wsdl'.
 [axis-wsdl2java] Retrieving schema at 'SearchService.xsd', relative to
 'file:/home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SearchService.wsdl'.
 [axis-wsdl2java] Retrieving schema at 'SearchService.xsd', relative to
 'file:/home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SubscriptionService.wsdl'.
 [axis-wsdl2java] {http://www.w3.org/2001/XMLSchema}boolean already exists
 [axis-wsdl2java] {http://liquidpublication.it/SearchService}ID already
 exists
 [axis-wsdl2java] {http://liquidpublication.it/SearchService}DateRange
 already exists
 [axis-wsdl2java]
 {http://liquidpublication.it/SearchService}SearchCriteria already exists
 [axis-wsdl2java] Running Wsdl2javaAntTask with parameters:
 [axis-wsdl2java]  verbose:true
 [axis-wsdl2java]  debug:true
 [axis-wsdl2java]  quiet:false
 [axis-wsdl2java]  server-side:true
 [axis-wsdl2java]  skeletonDeploy:true
 [axis-wsdl2java]  helperGen:false
 [axis-wsdl2java]  factory:null
 [axis-wsdl2java]  nsIncludes:[]
 [axis-wsdl2java]  nsExcludes:[]
 [axis-wsdl2java]  factoryProps:[]
 [axis-wsdl2java]  testCase:false
 [axis-wsdl2java]  noImports:false
 [axis-wsdl2java]  NStoPkg:{}
 [axis-wsdl2java]
 output:/home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/srcSkel
 [axis-wsdl2java]  protocolHandlerPkgs:
 [axis-wsdl2java]  deployScope:
 [axis-wsdl2java]
 URL:/home/nivox/Dati/Programming/Workspace/LiquidPublicationNG/wsdl/SubscriptionService.wsdl
 [axis-wsdl2java]  all:false
 [axis-wsdl2java]  typeMappingVersion:1.2
 [axis-wsdl2java]  timeout:45000
 [axis-wsdl2java]  failOnNetworkErrors:false
 [axis-wsdl2java]  printStackTraceOnFailure:true
 [axis-wsdl2java]  namespaceMappingFile:null
 [axis-wsdl2java]  username:null
 [axis-wsdl2java]  :passwordnull
 [axis-wsdl2java]  :noWrappedfalse
 [axis-wsdl2java]  :allowInvalidURLfalse
 [axis-wsdl2java]  :implementationClassNamenull
 [axis-wsdl2java]  :classpathnull
 [axis-wsdl2java]  http.proxyHost=null
 [axis-wsdl2java]  http.proxyPort=null
 [axis-wsdl2java]  http.proxyUser=null
 [axis-wsdl2java]  http.proxyPassword=null
 [axis-wsdl2java]  socks.proxyHost=null
 [axis-wsdl2java]  socks.proxyPort=null
 [axis-wsdl2java] java.lang.NullPointerException
 [axis-wsdl2java]  at
 org.apache.axis.wsdl.toJava.Utils.getParameterTypeName(Utils.java:994)
 [axis-wsdl2java]  at
 org.apache.axis.wsdl.toJava.JavaGeneratorFactory.constructSignature(JavaGeneratorFactory.java:1455)
 [axis-wsdl2java]  at
 org.apache.axis.wsdl.toJava.JavaGeneratorFactory.constructSignatures(JavaGeneratorFactory.java:1420)
 [axis-wsdl2java]  at
 org.apache.axis.wsdl.toJava.JavaGeneratorFactory.generatorPass(JavaGeneratorFactory.java:213)
 [axis-wsdl2java]  at
 org.apache.axis.wsdl.gen.Parser.generate(Parser.java:425)
 [axis-wsdl2java]  at
 org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
 [axis-wsdl2java]  at
 

Re: wsdl2java - Use lists instead of arrays for unbounded types?

2008-09-05 Thread Nick Steel

With version 1.3 I'm pretty sure you can't but I dont know about the later
versions. I think you can do it with jibx2wsdl or whatever its called but
again I have not tried that myself yet.

bgz wrote:
 
 Is there a way for wsdl2java generated code to use Lists instead of Arrays
 for unbounded types?
 
-- 
View this message in context: 
http://www.nabble.com/wsdl2java---Use-lists-instead-of-arrays-for-unbounded-types--tp19332300p19334267.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wsdl2java ... _operationClient.execute

2008-08-09 Thread axis-user

Amila,
THANX A TON FOR PIN POINTING MY IGNORANCE/DUMPNESS


Amila Suriarachchi wrote:
 
 On Tue, Aug 5, 2008 at 4:05 PM, axis-user [EMAIL PROTECTED] wrote:
 

 2)We are using this command to generate the client stubs
 WSDL2Java -uri DDP.wsdl  -d xmlbeans

 3)When calling stub's startxyz() method through our Client Program 
 for
 asynchronous calling of our web service, the request is not going to
 server
 side and it is not showing any client side exception.

 4)But when we change _operationClient.execute(true); line in startxyz()
 method of the client stub which was earlier
 _operationClient.execute(false);
 the request went to server side.
 Axis 1.4 version is used

 Not able to figure out where we went wrong?
 
 
 this is because your client dies before axis2 able to send the request.
 Try
 putting a Thread.sleep(2) after the .startxx method call.
 
 thanks,
 Amila.
 

 --
 View this message in context:
 http://www.nabble.com/wsdl2java-...-_operationClient.execute-tp18828514p18828514.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Amila Suriarachchi,
 WSO2 Inc.
 
 

-- 
View this message in context: 
http://www.nabble.com/wsdl2java-...-_operationClient.execute-tp18828514p18903874.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wsdl2java ... _operationClient.execute

2008-08-06 Thread Amila Suriarachchi
On Tue, Aug 5, 2008 at 4:05 PM, axis-user [EMAIL PROTECTED] wrote:


 2)We are using this command to generate the client stubs
 WSDL2Java -uri DDP.wsdl  -d xmlbeans

 3)When calling stub's startxyz() method through our Client Program  for
 asynchronous calling of our web service, the request is not going to server
 side and it is not showing any client side exception.

 4)But when we change _operationClient.execute(true); line in startxyz()
 method of the client stub which was earlier
 _operationClient.execute(false);
 the request went to server side.
 Axis 1.4 version is used

 Not able to figure out where we went wrong?


this is because your client dies before axis2 able to send the request. Try
putting a Thread.sleep(2) after the .startxx method call.

thanks,
Amila.


 --
 View this message in context:
 http://www.nabble.com/wsdl2java-...-_operationClient.execute-tp18828514p18828514.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: wsdl2java not creating xmime:base64Binary type correctly?

2008-07-24 Thread Thilina Gunarathne
Hi,
Axis2 XMLBeans data binding no longer supports MTOM... Please refer to the
latest doc[1]..

Try code generating using ADB...

wsdl2java.bat -d adb -uri TestService.wsdl

thanks,
Thilina

[1] http://ws.apache.org/axis2/1_4/mtom-guide.html

On Thu, Jul 24, 2008 at 12:30 PM, acm [EMAIL PROTECTED] wrote:


 I've been following this guide for MTOM in Axis2
 (http://ws.apache.org/axis2/1_1/mtom-guide.html) and  have been unable to
 get wsdl2java to create the Base64Binary class like is done in the example.
 In the example, the Base64Binary class has the method getBase64Binary().
 Running wsdl2java I don't get that method.  I've tried this with Axis2 1.1,
 1.3, and 1.4.  I've attached a sample wsdl.  The wsdl can be converted to
 java using this command:

 wsdl2java.bat -d xmlbeans -uri TestService.wsdl
 (requires the attached xmlmime.xsd in the same directory)

 Any idea why src\org\w3\www\_2005\_05\xmlmime\Base64Binary.java doesn't
 have
 this method?

 Thanks,
 acm

 http://www.nabble.com/file/p18638961/TestService.wsdl TestService.wsdl
 http://www.nabble.com/file/p18638961/xmlmime.xsd xmlmime.xsd
 --
 View this message in context:
 http://www.nabble.com/wsdl2java-not-creating-xmime%3Abase64Binary-type-correctly--tp18638961p18638961.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Thilina Gunarathne - http://thilinag.blogspot.com


Re: WSDL2Java - Inheritance problem

2008-07-23 Thread Amila Suriarachchi
if you use Axis2 1.4 XMLBeans should also supports them.

thanks,
Amila.

On Wed, Jul 23, 2008 at 8:08 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:

 Ah, I'm using XMLBeans and not ADB, would that have anything to do
 with my problem?

 2008/7/22 Amila Suriarachchi [EMAIL PROTECTED]:
  I generated with the following options and have this test
 
  -uri Pillar.wsdl -ss -sd -g -uw
 
  private void testTestClass(){
  String xmlString =  xsd:get
  xmlns:xsd=\http://osr.nsw.gov.au/pillar/gen/xsd\http://osr.nsw.gov.au/pillar/gen/xsd%5C\n
 +
 xsd:id xsi:type=\xsd:idSetSess\\n +
  
  xmlns:xsi=\http://www.w3.org/2001/XMLSchema-instance\http://www.w3.org/2001/XMLSchema-instance%5C
 \n
  +
   xsd:idtypeSESSNUM/xsd:idtype\n +
   xsd:idvalue20004465/xsd:idvalue\n +
   xsd:seqNum141/xsd:seqNum\n +
 /xsd:id\n +
 xsd:id\n +
   xsd:idtypeINFNUM/xsd:idtype\n +
   xsd:idvalue7151999517/xsd:idvalue\n +
 /xsd:id\n +
   /xsd:get;
 
  try {
  XMLStreamReader xmlReader
  = StAXUtils.createXMLStreamReader(new
  ByteArrayInputStream(xmlString.getBytes()));
  Get result = Get.Factory.parse(xmlReader);
  IdSet[] ids = result.getId();
  for (int i = 0; i  ids.length; i++) {
  IdSet id = ids[i];
  if (id.getIdtype() == IdType.SESSNUM) {
  if (!(id instanceof IdSetSess)){
 
  }
 
  }
  }
 
  System.out.println(OK);
  } catch (XMLStreamException e) {
  e.printStackTrace();  //To change body of catch statement use
  File | Settings | File Templates.
  } catch (Exception e) {
  e.printStackTrace();  //To change body of catch statement use
  File | Settings | File Templates.
  }
 
  }
 
  and it worked fine.
 
  thanks,
  Amila.
 
  On Tue, Jul 22, 2008 at 5:38 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:
 
  Sure, it's attached.
 
  2008/7/21 Amila Suriarachchi [EMAIL PROTECTED]:
   Can you send your wsdl? I think you use only Axis2 at the server side.
  
   thanks,
   Amila.
  
   On Mon, Jul 21, 2008 at 10:06 AM, Matt Wlazlo [EMAIL PROTECTED]
 wrote:
  
   2008/7/21 Amila Suriarachchi [EMAIL PROTECTED]:
   
   
On Mon, Jul 21, 2008 at 8:26 AM, Matt Wlazlo [EMAIL PROTECTED]
wrote:
   
Hi,
   
I'm having trouble with passing inheritance types. I've followed
this
url:
   
   
   
 http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
as a guide to WSDL inheritance, and everything seems to be working
except that when it comes time to do a typecast, there doesn't
appear
to be any relationship of the objects...
   
I think it will be easier to explain the situation in code:
   
In my WSDL I have the following:
   
simpleType name=idType
   restriction base=xsd:string
   enumeration value=INFNUM /
   enumeration value=SESSNUM /
   enumeration value=CLIENTCD /
   /restriction
/simpleType
complexType name=idSet
   sequence
   element maxOccurs=1 minOccurs=1 name=idtype
type=xsd1:idType /
   element maxOccurs=1 minOccurs=1 name=idvalue
type=xsd:string /
   /sequence
/complexType
complexType name=idSetSess
   complexContent
   extension base=xsd1:idSet
   sequence
   element name=seqNum
type=xsd:string
/
   /sequence
   /extension
   /complexContent
/complexType
.
.
element name=get
   complexType
   sequence
   element minOccurs=1
 maxOccurs=unbounded
name=id
   nillable=true
type=xsd1:idSet
/
   /sequence
   /complexType
/element
   
   
Then in my server code (the error is here):
 public get(IdSet[] ids) {
   ...
   for(int i = 0; i  id.length; i++) {
  IdSet id = ids[i];
   if(id.getIdtype() == IdType.SESSNUM) {
  if(!(id instanceof IdSetSess))
   throw new Exception(IdSetSess not used when IdType
set
to
SESSNUM!); // XXX id should be an instance of IdSetSess
  .
  .
   }
   }
 }
   
On the wire, an example request is:
 soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Body
 xsd:get xmlns:xsd=http://osr.nsw.gov.au/pillar/gen/xsd;
   xsd:id xsi:type=xsd:idSetSess

Re: WSDL2Java - Inheritance problem

2008-07-22 Thread Amila Suriarachchi
I generated with the following options and have this test

-uri Pillar.wsdl -ss -sd -g -uw

private void testTestClass(){
String xmlString =  xsd:get xmlns:xsd=\
http://osr.nsw.gov.au/pillar/gen/xsd\;\n +
   xsd:id xsi:type=\xsd:idSetSess\\n +
xmlns:xsi=\http://www.w3.org/2001/XMLSchema-instance\;\n
+
 xsd:idtypeSESSNUM/xsd:idtype\n +
 xsd:idvalue20004465/xsd:idvalue\n +
 xsd:seqNum141/xsd:seqNum\n +
   /xsd:id\n +
   xsd:id\n +
 xsd:idtypeINFNUM/xsd:idtype\n +
 xsd:idvalue7151999517/xsd:idvalue\n +
   /xsd:id\n +
 /xsd:get;

try {
XMLStreamReader xmlReader
= StAXUtils.createXMLStreamReader(new
ByteArrayInputStream(xmlString.getBytes()));
Get result = Get.Factory.parse(xmlReader);
IdSet[] ids = result.getId();
for (int i = 0; i  ids.length; i++) {
IdSet id = ids[i];
if (id.getIdtype() == IdType.SESSNUM) {
if (!(id instanceof IdSetSess)){

}

}
}

System.out.println(OK);
} catch (XMLStreamException e) {
e.printStackTrace();  //To change body of catch statement use
File | Settings | File Templates.
} catch (Exception e) {
e.printStackTrace();  //To change body of catch statement use
File | Settings | File Templates.
}

}

and it worked fine.

thanks,
Amila.

On Tue, Jul 22, 2008 at 5:38 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:

 Sure, it's attached.

 2008/7/21 Amila Suriarachchi [EMAIL PROTECTED]:
  Can you send your wsdl? I think you use only Axis2 at the server side.
 
  thanks,
  Amila.
 
  On Mon, Jul 21, 2008 at 10:06 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:
 
  2008/7/21 Amila Suriarachchi [EMAIL PROTECTED]:
  
  
   On Mon, Jul 21, 2008 at 8:26 AM, Matt Wlazlo [EMAIL PROTECTED]
 wrote:
  
   Hi,
  
   I'm having trouble with passing inheritance types. I've followed this
   url:
  
  
 http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
   as a guide to WSDL inheritance, and everything seems to be working
   except that when it comes time to do a typecast, there doesn't appear
   to be any relationship of the objects...
  
   I think it will be easier to explain the situation in code:
  
   In my WSDL I have the following:
  
   simpleType name=idType
  restriction base=xsd:string
  enumeration value=INFNUM /
  enumeration value=SESSNUM /
  enumeration value=CLIENTCD /
  /restriction
   /simpleType
   complexType name=idSet
  sequence
  element maxOccurs=1 minOccurs=1 name=idtype
   type=xsd1:idType /
  element maxOccurs=1 minOccurs=1 name=idvalue
   type=xsd:string /
  /sequence
   /complexType
   complexType name=idSetSess
  complexContent
  extension base=xsd1:idSet
  sequence
  element name=seqNum
 type=xsd:string
   /
  /sequence
  /extension
  /complexContent
   /complexType
   .
   .
   element name=get
  complexType
  sequence
  element minOccurs=1 maxOccurs=unbounded
   name=id
  nillable=true
   type=xsd1:idSet
   /
  /sequence
  /complexType
   /element
  
  
   Then in my server code (the error is here):
public get(IdSet[] ids) {
  ...
  for(int i = 0; i  id.length; i++) {
 IdSet id = ids[i];
  if(id.getIdtype() == IdType.SESSNUM) {
 if(!(id instanceof IdSetSess))
  throw new Exception(IdSetSess not used when IdType
 set
   to
   SESSNUM!); // XXX id should be an instance of IdSetSess
 .
 .
  }
  }
}
  
   On the wire, an example request is:
soapenv:Envelope
   xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
xsd:get xmlns:xsd=http://osr.nsw.gov.au/pillar/gen/xsd;
  xsd:id xsi:type=xsd:idSetSess
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsd:idtypeSESSNUM/xsd:idtype
xsd:idvalue20004465/xsd:idvalue
xsd:seqNum141/xsd:seqNum
  /xsd:id
  xsd:id
xsd:idtypeINFNUM/xsd:idtype
xsd:idvalue7151999517/xsd:idvalue
  /xsd:id
/xsd:get
  /soapenv:Body
/soapenv:Envelope
  
  
  
   The request on the wire looks to be to be OK. The expression id
   instanceof IdSetSess is always false, whereas I would expect it to
 be
   true.
  
   Do I need to do something special to be able 

Re: WSDL2Java - Inheritance problem

2008-07-22 Thread Matt Wlazlo
Ah, I'm using XMLBeans and not ADB, would that have anything to do
with my problem?

2008/7/22 Amila Suriarachchi [EMAIL PROTECTED]:
 I generated with the following options and have this test

 -uri Pillar.wsdl -ss -sd -g -uw

 private void testTestClass(){
 String xmlString =  xsd:get
 xmlns:xsd=\http://osr.nsw.gov.au/pillar/gen/xsd\;\n +
xsd:id xsi:type=\xsd:idSetSess\\n +
 xmlns:xsi=\http://www.w3.org/2001/XMLSchema-instance\;\n
 +
  xsd:idtypeSESSNUM/xsd:idtype\n +
  xsd:idvalue20004465/xsd:idvalue\n +
  xsd:seqNum141/xsd:seqNum\n +
/xsd:id\n +
xsd:id\n +
  xsd:idtypeINFNUM/xsd:idtype\n +
  xsd:idvalue7151999517/xsd:idvalue\n +
/xsd:id\n +
  /xsd:get;

 try {
 XMLStreamReader xmlReader
 = StAXUtils.createXMLStreamReader(new
 ByteArrayInputStream(xmlString.getBytes()));
 Get result = Get.Factory.parse(xmlReader);
 IdSet[] ids = result.getId();
 for (int i = 0; i  ids.length; i++) {
 IdSet id = ids[i];
 if (id.getIdtype() == IdType.SESSNUM) {
 if (!(id instanceof IdSetSess)){

 }

 }
 }

 System.out.println(OK);
 } catch (XMLStreamException e) {
 e.printStackTrace();  //To change body of catch statement use
 File | Settings | File Templates.
 } catch (Exception e) {
 e.printStackTrace();  //To change body of catch statement use
 File | Settings | File Templates.
 }

 }

 and it worked fine.

 thanks,
 Amila.

 On Tue, Jul 22, 2008 at 5:38 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:

 Sure, it's attached.

 2008/7/21 Amila Suriarachchi [EMAIL PROTECTED]:
  Can you send your wsdl? I think you use only Axis2 at the server side.
 
  thanks,
  Amila.
 
  On Mon, Jul 21, 2008 at 10:06 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:
 
  2008/7/21 Amila Suriarachchi [EMAIL PROTECTED]:
  
  
   On Mon, Jul 21, 2008 at 8:26 AM, Matt Wlazlo [EMAIL PROTECTED]
   wrote:
  
   Hi,
  
   I'm having trouble with passing inheritance types. I've followed
   this
   url:
  
  
   http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
   as a guide to WSDL inheritance, and everything seems to be working
   except that when it comes time to do a typecast, there doesn't
   appear
   to be any relationship of the objects...
  
   I think it will be easier to explain the situation in code:
  
   In my WSDL I have the following:
  
   simpleType name=idType
  restriction base=xsd:string
  enumeration value=INFNUM /
  enumeration value=SESSNUM /
  enumeration value=CLIENTCD /
  /restriction
   /simpleType
   complexType name=idSet
  sequence
  element maxOccurs=1 minOccurs=1 name=idtype
   type=xsd1:idType /
  element maxOccurs=1 minOccurs=1 name=idvalue
   type=xsd:string /
  /sequence
   /complexType
   complexType name=idSetSess
  complexContent
  extension base=xsd1:idSet
  sequence
  element name=seqNum
   type=xsd:string
   /
  /sequence
  /extension
  /complexContent
   /complexType
   .
   .
   element name=get
  complexType
  sequence
  element minOccurs=1 maxOccurs=unbounded
   name=id
  nillable=true
   type=xsd1:idSet
   /
  /sequence
  /complexType
   /element
  
  
   Then in my server code (the error is here):
public get(IdSet[] ids) {
  ...
  for(int i = 0; i  id.length; i++) {
 IdSet id = ids[i];
  if(id.getIdtype() == IdType.SESSNUM) {
 if(!(id instanceof IdSetSess))
  throw new Exception(IdSetSess not used when IdType
   set
   to
   SESSNUM!); // XXX id should be an instance of IdSetSess
 .
 .
  }
  }
}
  
   On the wire, an example request is:
soapenv:Envelope
   xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
xsd:get xmlns:xsd=http://osr.nsw.gov.au/pillar/gen/xsd;
  xsd:id xsi:type=xsd:idSetSess
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsd:idtypeSESSNUM/xsd:idtype
xsd:idvalue20004465/xsd:idvalue
xsd:seqNum141/xsd:seqNum
  /xsd:id
  xsd:id
xsd:idtypeINFNUM/xsd:idtype
xsd:idvalue7151999517/xsd:idvalue
  /xsd:id
/xsd:get
  /soapenv:Body
/soapenv:Envelope
  
  
  
   The 

Re: WSDL2Java - Inheritance problem

2008-07-21 Thread Matt Wlazlo
Sure, it's attached.

2008/7/21 Amila Suriarachchi [EMAIL PROTECTED]:
 Can you send your wsdl? I think you use only Axis2 at the server side.

 thanks,
 Amila.

 On Mon, Jul 21, 2008 at 10:06 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:

 2008/7/21 Amila Suriarachchi [EMAIL PROTECTED]:
 
 
  On Mon, Jul 21, 2008 at 8:26 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm having trouble with passing inheritance types. I've followed this
  url:
 
  http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
  as a guide to WSDL inheritance, and everything seems to be working
  except that when it comes time to do a typecast, there doesn't appear
  to be any relationship of the objects...
 
  I think it will be easier to explain the situation in code:
 
  In my WSDL I have the following:
 
  simpleType name=idType
 restriction base=xsd:string
 enumeration value=INFNUM /
 enumeration value=SESSNUM /
 enumeration value=CLIENTCD /
 /restriction
  /simpleType
  complexType name=idSet
 sequence
 element maxOccurs=1 minOccurs=1 name=idtype
  type=xsd1:idType /
 element maxOccurs=1 minOccurs=1 name=idvalue
  type=xsd:string /
 /sequence
  /complexType
  complexType name=idSetSess
 complexContent
 extension base=xsd1:idSet
 sequence
 element name=seqNum type=xsd:string
  /
 /sequence
 /extension
 /complexContent
  /complexType
  .
  .
  element name=get
 complexType
 sequence
 element minOccurs=1 maxOccurs=unbounded
  name=id
 nillable=true
  type=xsd1:idSet
  /
 /sequence
 /complexType
  /element
 
 
  Then in my server code (the error is here):
   public get(IdSet[] ids) {
 ...
 for(int i = 0; i  id.length; i++) {
IdSet id = ids[i];
 if(id.getIdtype() == IdType.SESSNUM) {
if(!(id instanceof IdSetSess))
 throw new Exception(IdSetSess not used when IdType set
  to
  SESSNUM!); // XXX id should be an instance of IdSetSess
.
.
 }
 }
   }
 
  On the wire, an example request is:
   soapenv:Envelope
  xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 soapenv:Body
   xsd:get xmlns:xsd=http://osr.nsw.gov.au/pillar/gen/xsd;
 xsd:id xsi:type=xsd:idSetSess
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsd:idtypeSESSNUM/xsd:idtype
   xsd:idvalue20004465/xsd:idvalue
   xsd:seqNum141/xsd:seqNum
 /xsd:id
 xsd:id
   xsd:idtypeINFNUM/xsd:idtype
   xsd:idvalue7151999517/xsd:idvalue
 /xsd:id
   /xsd:get
 /soapenv:Body
   /soapenv:Envelope
 
 
 
  The request on the wire looks to be to be OK. The expression id
  instanceof IdSetSess is always false, whereas I would expect it to be
  true.
 
  Do I need to do something special to be able to cast an IdSet to an
  IdSetSess? Is this even possible?
 
 
  Cheers,
  Matt.
 
 
  --
  Reclaim your digital rights, eliminate DRM, learn more at
  http://www.defectivebydesign.org/what_is_drm
 
  -BEGIN GEEK CODE BLOCK-
  Version: 3.12
  GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
  O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
  G-- e++ h+ r+ y+
  --END GEEK CODE BLOCK--
 
 
  Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88
  C0
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  What is the Axis version you use? Axis1.x or Axis2.x

 Axis2 1.4

 Cheers,
 Matt.



 --
 Reclaim your digital rights, eliminate DRM, learn more at
 http://www.defectivebydesign.org/what_is_drm

 -BEGIN GEEK CODE BLOCK-
 Version: 3.12
 GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
 O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
 G-- e++ h+ r+ y+
 --END GEEK CODE BLOCK--


 Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Amila Suriarachchi,
 WSO2 Inc.



-- 
Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
G-- e++ h+ r+ y+
--END GEEK CODE BLOCK--


Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
?xml version=1.0 encoding=UTF-8?
definitions 

Re: wsdl2java plugin fixed or not?

2008-07-21 Thread Lahiru Sandakith
Hi Shehan,

Please send us the wsdl if possible, and the complete log message on ecipse
wrokspace/.metadata/.log file

We ll be able to help you more on this. I am using the plugin with ganymede
for some time now.

Thanks
Lahiru Sandakith.

On Tue, Jul 22, 2008 at 6:57 AM, Shehan Simen [EMAIL PROTECTED] wrote:

  Hi,

 This is a very annoying message that most people dealing with.

 When I am generating the java code from eclipse Ganymede (using jdk 1.5 and
 axis2 1.4), I am always getting this error.

 Seems wsdl2java plug-in is not working properly.



 Exception occurred during code generation for the WSDL  :
 org.apache.axis2.wsdl.codegen.CodeGenerationException:
 java.lang.RuntimeException: java.lang.reflect.InvocationTargetException



 How to fix this error? I downloaded the latest axis2 release. (Apache Axis2
 1.4 build  (26-04-2008))



 I don't know how to get the nightly builds from SVN.



 Please can anyone help us to proceed?



 Thx.








-- 
Thanks
Lahiru Sandakith Gallege

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC 1AB1 FE5E 7464 1F01 9A0F


Re: WSDL2Java - Inheritance problem

2008-07-20 Thread Amila Suriarachchi
On Mon, Jul 21, 2008 at 8:26 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:

 Hi,

 I'm having trouble with passing inheritance types. I've followed this
 url:
 http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
 as a guide to WSDL inheritance, and everything seems to be working
 except that when it comes time to do a typecast, there doesn't appear
 to be any relationship of the objects...

 I think it will be easier to explain the situation in code:

 In my WSDL I have the following:

 simpleType name=idType
restriction base=xsd:string
enumeration value=INFNUM /
enumeration value=SESSNUM /
enumeration value=CLIENTCD /
/restriction
 /simpleType
 complexType name=idSet
sequence
element maxOccurs=1 minOccurs=1 name=idtype
 type=xsd1:idType /
element maxOccurs=1 minOccurs=1 name=idvalue
 type=xsd:string /
/sequence
 /complexType
 complexType name=idSetSess
complexContent
extension base=xsd1:idSet
sequence
element name=seqNum type=xsd:string /
/sequence
/extension
/complexContent
 /complexType
 .
 .
 element name=get
complexType
sequence
element minOccurs=1 maxOccurs=unbounded
 name=id
nillable=true type=xsd1:idSet /
/sequence
/complexType
 /element


 Then in my server code (the error is here):
  public get(IdSet[] ids) {
...
for(int i = 0; i  id.length; i++) {
   IdSet id = ids[i];
if(id.getIdtype() == IdType.SESSNUM) {
   if(!(id instanceof IdSetSess))
throw new Exception(IdSetSess not used when IdType set to
 SESSNUM!); // XXX id should be an instance of IdSetSess
   .
   .
}
}
  }

 On the wire, an example request is:
  soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;
soapenv:Body
  xsd:get xmlns:xsd=http://osr.nsw.gov.au/pillar/gen/xsd;
xsd:id xsi:type=xsd:idSetSess
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsd:idtypeSESSNUM/xsd:idtype
  xsd:idvalue20004465/xsd:idvalue
  xsd:seqNum141/xsd:seqNum
/xsd:id
xsd:id
  xsd:idtypeINFNUM/xsd:idtype
  xsd:idvalue7151999517/xsd:idvalue
/xsd:id
  /xsd:get
/soapenv:Body
  /soapenv:Envelope



 The request on the wire looks to be to be OK. The expression id
 instanceof IdSetSess is always false, whereas I would expect it to be
 true.

 Do I need to do something special to be able to cast an IdSet to an
 IdSetSess? Is this even possible?


 Cheers,
 Matt.


 --
 Reclaim your digital rights, eliminate DRM, learn more at
 http://www.defectivebydesign.org/what_is_drm

 -BEGIN GEEK CODE BLOCK-
 Version: 3.12
 GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
 O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
 G-- e++ h+ r+ y+
 --END GEEK CODE BLOCK--


 Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 What is the Axis version you use? Axis1.x or Axis2.x

thanks,
Amila.

-- 
Amila Suriarachchi,
WSO2 Inc.


Re: WSDL2Java - Inheritance problem

2008-07-20 Thread Matt Wlazlo
2008/7/21 Amila Suriarachchi [EMAIL PROTECTED]:


 On Mon, Jul 21, 2008 at 8:26 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:

 Hi,

 I'm having trouble with passing inheritance types. I've followed this
 url:
 http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
 as a guide to WSDL inheritance, and everything seems to be working
 except that when it comes time to do a typecast, there doesn't appear
 to be any relationship of the objects...

 I think it will be easier to explain the situation in code:

 In my WSDL I have the following:

 simpleType name=idType
restriction base=xsd:string
enumeration value=INFNUM /
enumeration value=SESSNUM /
enumeration value=CLIENTCD /
/restriction
 /simpleType
 complexType name=idSet
sequence
element maxOccurs=1 minOccurs=1 name=idtype
 type=xsd1:idType /
element maxOccurs=1 minOccurs=1 name=idvalue
 type=xsd:string /
/sequence
 /complexType
 complexType name=idSetSess
complexContent
extension base=xsd1:idSet
sequence
element name=seqNum type=xsd:string /
/sequence
/extension
/complexContent
 /complexType
 .
 .
 element name=get
complexType
sequence
element minOccurs=1 maxOccurs=unbounded
 name=id
nillable=true type=xsd1:idSet
 /
/sequence
/complexType
 /element


 Then in my server code (the error is here):
  public get(IdSet[] ids) {
...
for(int i = 0; i  id.length; i++) {
   IdSet id = ids[i];
if(id.getIdtype() == IdType.SESSNUM) {
   if(!(id instanceof IdSetSess))
throw new Exception(IdSetSess not used when IdType set to
 SESSNUM!); // XXX id should be an instance of IdSetSess
   .
   .
}
}
  }

 On the wire, an example request is:
  soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
soapenv:Body
  xsd:get xmlns:xsd=http://osr.nsw.gov.au/pillar/gen/xsd;
xsd:id xsi:type=xsd:idSetSess
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsd:idtypeSESSNUM/xsd:idtype
  xsd:idvalue20004465/xsd:idvalue
  xsd:seqNum141/xsd:seqNum
/xsd:id
xsd:id
  xsd:idtypeINFNUM/xsd:idtype
  xsd:idvalue7151999517/xsd:idvalue
/xsd:id
  /xsd:get
/soapenv:Body
  /soapenv:Envelope



 The request on the wire looks to be to be OK. The expression id
 instanceof IdSetSess is always false, whereas I would expect it to be
 true.

 Do I need to do something special to be able to cast an IdSet to an
 IdSetSess? Is this even possible?


 Cheers,
 Matt.


 --
 Reclaim your digital rights, eliminate DRM, learn more at
 http://www.defectivebydesign.org/what_is_drm

 -BEGIN GEEK CODE BLOCK-
 Version: 3.12
 GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
 O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
 G-- e++ h+ r+ y+
 --END GEEK CODE BLOCK--


 Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 What is the Axis version you use? Axis1.x or Axis2.x

Axis2 1.4

Cheers,
Matt.



-- 
Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
G-- e++ h+ r+ y+
--END GEEK CODE BLOCK--


Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL2Java - Inheritance problem

2008-07-20 Thread Amila Suriarachchi
Can you send your wsdl? I think you use only Axis2 at the server side.

thanks,
Amila.

On Mon, Jul 21, 2008 at 10:06 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:

 2008/7/21 Amila Suriarachchi [EMAIL PROTECTED]:
 
 
  On Mon, Jul 21, 2008 at 8:26 AM, Matt Wlazlo [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm having trouble with passing inheritance types. I've followed this
  url:
 
 http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
  as a guide to WSDL inheritance, and everything seems to be working
  except that when it comes time to do a typecast, there doesn't appear
  to be any relationship of the objects...
 
  I think it will be easier to explain the situation in code:
 
  In my WSDL I have the following:
 
  simpleType name=idType
 restriction base=xsd:string
 enumeration value=INFNUM /
 enumeration value=SESSNUM /
 enumeration value=CLIENTCD /
 /restriction
  /simpleType
  complexType name=idSet
 sequence
 element maxOccurs=1 minOccurs=1 name=idtype
  type=xsd1:idType /
 element maxOccurs=1 minOccurs=1 name=idvalue
  type=xsd:string /
 /sequence
  /complexType
  complexType name=idSetSess
 complexContent
 extension base=xsd1:idSet
 sequence
 element name=seqNum type=xsd:string
 /
 /sequence
 /extension
 /complexContent
  /complexType
  .
  .
  element name=get
 complexType
 sequence
 element minOccurs=1 maxOccurs=unbounded
  name=id
 nillable=true type=xsd1:idSet
  /
 /sequence
 /complexType
  /element
 
 
  Then in my server code (the error is here):
   public get(IdSet[] ids) {
 ...
 for(int i = 0; i  id.length; i++) {
IdSet id = ids[i];
 if(id.getIdtype() == IdType.SESSNUM) {
if(!(id instanceof IdSetSess))
 throw new Exception(IdSetSess not used when IdType set
 to
  SESSNUM!); // XXX id should be an instance of IdSetSess
.
.
 }
 }
   }
 
  On the wire, an example request is:
   soapenv:Envelope
  xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 soapenv:Body
   xsd:get xmlns:xsd=http://osr.nsw.gov.au/pillar/gen/xsd;
 xsd:id xsi:type=xsd:idSetSess
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsd:idtypeSESSNUM/xsd:idtype
   xsd:idvalue20004465/xsd:idvalue
   xsd:seqNum141/xsd:seqNum
 /xsd:id
 xsd:id
   xsd:idtypeINFNUM/xsd:idtype
   xsd:idvalue7151999517/xsd:idvalue
 /xsd:id
   /xsd:get
 /soapenv:Body
   /soapenv:Envelope
 
 
 
  The request on the wire looks to be to be OK. The expression id
  instanceof IdSetSess is always false, whereas I would expect it to be
  true.
 
  Do I need to do something special to be able to cast an IdSet to an
  IdSetSess? Is this even possible?
 
 
  Cheers,
  Matt.
 
 
  --
  Reclaim your digital rights, eliminate DRM, learn more at
  http://www.defectivebydesign.org/what_is_drm
 
  -BEGIN GEEK CODE BLOCK-
  Version: 3.12
  GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
  O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
  G-- e++ h+ r+ y+
  --END GEEK CODE BLOCK--
 
 
  Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  What is the Axis version you use? Axis1.x or Axis2.x

 Axis2 1.4

 Cheers,
 Matt.



 --
 Reclaim your digital rights, eliminate DRM, learn more at
 http://www.defectivebydesign.org/what_is_drm

 -BEGIN GEEK CODE BLOCK-
 Version: 3.12
 GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
 O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
 G-- e++ h+ r+ y+
 --END GEEK CODE BLOCK--


 Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: wsdl2java on http and https

2008-06-20 Thread keith chapman
Is the domain is a trusted domain then you will have no issues. But if the
domain is not a trusted one you will have to import its cert ti your
keystore first. This blog entry by dims [1] Gives you the details.

On the security issue, does the WSDL have these details as policy?

Thanks,
Keith.

[1] http://wso2.org/blog/dims/1906

On Fri, Jun 20, 2008 at 11:41 AM, Rafaqat Ali [EMAIL PROTECTED] wrote:

 Hi,
 Is there any difference when I create stub using
 $AXIS2_HOME/bin/bin/wsdl2java.sh from
 http://localhost:8080/axis2/services/SomeService?wsdl
 and
 https://localhost:8443/axis2/services/SomeService?wsdl

 Do I have to generate it with some special flags if I am using security
 using rampart ?

 Thanks,
 --RAFI




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: wsdl2java on http and https

2008-06-20 Thread Rafaqat Ali
I created webservice and in service.xml I added information about rampart
module and also PWCHandler class.
Then I deployed service using options given in apache axis2 quick start
guide.
Should wsdl have this information ?

Thanks,
--RAFI

PWCBHandler

On Fri, Jun 20, 2008 at 12:18 PM, keith chapman [EMAIL PROTECTED]
wrote:

 Is the domain is a trusted domain then you will have no issues. But if the
 domain is not a trusted one you will have to import its cert ti your
 keystore first. This blog entry by dims [1] Gives you the details.

 On the security issue, does the WSDL have these details as policy?

 Thanks,
 Keith.

 [1] http://wso2.org/blog/dims/1906


 On Fri, Jun 20, 2008 at 11:41 AM, Rafaqat Ali [EMAIL PROTECTED] wrote:

 Hi,
 Is there any difference when I create stub using
 $AXIS2_HOME/bin/bin/wsdl2java.sh from
 http://localhost:8080/axis2/services/SomeService?wsdl
 and
 https://localhost:8443/axis2/services/SomeService?wsdl

 Do I have to generate it with some special flags if I am using security
 using rampart ?

 Thanks,
 --RAFI




 --
 Keith Chapman
 Senior Software Engineer
 WSO2 Inc.
 Oxygenating the Web Service Platform.
 http://wso2.org/

 blog: http://www.keith-chapman.org


Re: WSDL2Java for JMS Endpoint.

2008-06-16 Thread rkrish108

Hi Goutham, have you got any solution for this... I too facing the same
problem.
I think we can achieve this usng axis 2. but need to dig further more.

Gautham.Kasinath wrote:
 
 Hello all, 
 
 I have been looking around in the list for some hint to explain/resolve my 
 problem, in vain. So here I am posting my issue. 
 I have been using Axis 1.4 final, to WSDL2Java a SOAP based Web Service 
 that requires the JMS Transport. The Service itself runs within the TIBCO 
 EMS environment and the WSDL is generated by the TIBCO EMS engine. 
 Whilst WSDL2Java is successful in most part of the WSDL parsing, it fails 
 over with the following stack trace: 
 
 java.io.IOException: Emitter failure.  Cannot find endpoint address in 
 port Domain in service MatchContactServiceagentLocator
 at 
 org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
 at 
 org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
 at 
 org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
 at 
 org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
 at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
 at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
 at 
 org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
 at java.lang.Thread.run(Thread.java:570)
 
 
 I suspect this happens when parsing the following port bindings in the 
 WSDL:
 
 wsdl:service name=MatchContact.serviceagent
 wsdl:port name=Domain binding=tns:DomainBinding
 soap:address location=/
 jndi:context
 jndi:property name=java.naming.provider.url 
 type=java.lang.Stringtibjmsnaming://d2esbprm.dev.hbf.com.au:7222/jndi:property
 jndi:property name=java.naming.factory.initial 
 type=java.lang.Stringcom.tibco.tibjms.naming.TibjmsInitialContextFactory/jndi:property
 /jndi:context
  jms:connectionFactoryQueueConnectionFactory/jms:connectionFactory
 jms:targetAddress 
 destination=queuehbf.dev2.web.contact.match.src/jms:targetAddress
 /wsdl:port
 wsdl:port name=Web binding=tns:WebBinding
 soap:address 
 location=http://d2esbprm.dev.hbf.com.au:8991/Services/MatchContact/Web/
 /wsdl:port
 /wsdl:service
 
 However, could one of you explain what I could be missing that makes the 
 WSDL2Java fail over? Further, is there a way to WSDL2Java a Service WSDL 
 for JMS transport using JMS? 
 
 Please advise. 
 
 Thanks
 
 Cheers
 Gautham Kasinath
 
 Gautham KASINATH
 
 HBF/Ajilon 
 William Street
 Perth
 Phone: +61 8 9214 6754
 
 Go Red for Women and fight heart disease - the number one killer of 
 Australian women.
 Wear red on Friday 13 June and purchase fundraising merchandise from any 
 HBF Service Centre.
  ===
 HBF Health Funds Inc ARBN 126 884 786 incorporated in Western Australia
 is a Private Health Insurer under the Private Health Insurance Act 2007.
 The liability of its constitutional members is limited; HBF Insurance 
 Pty Ltd ABN 11 009 268 277; HBF Financial Services Pty Ltd 
 ABN 18 009 123 675. The information contained in this email and any 
 attachment is intended solely for the named recipients. It may contain 
 material or information that is confidential and/or legally privileged 
 material. It is also subject to copyright. If you are not the intended 
 recipient please advise us immediately by return email or contact a 
 Member Service Advisor on 133 423 and delete the email and any 
 attachments. Any use or disclosure of the contents of either is 
 unauthorised and may be unlawful. Any personal information in this email
 must be handled in accordance with the Privacy Act 1988 (Cth). The views
 expressed in this email are those of the author and do not represent 
 those of HBF unless clearly indicated.
 ===
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL2Java-for-JMS-Endpoint.-tp17747599p17862090.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: WSDL2JAVA created uncompilable Stub

2008-06-11 Thread Kraus, David
Yeah, something similar happened to me. The MTOMAwareXMLStreamWriter
parameter is replaced by XMLStreamWriter in the stub code, which causes
the compilation problems. 

I am not absolutely sure what is happening here. I tried enabling MTOM
in my services.xml file, and found that wsdl2java generated different
stubs, which did compile.

However, when I went back and removed the services.xml setting, stub
generation did not change, and I could still compile.

I began to think that maybe my environment had been mixed between two
different versions of Axis2 (I was upgrading from axis2 1.2 to 1.4). So,
make sure you have your environment variables set correctly, and then
your classpath is correct.

Dave

-Original Message-
From: Adam Muller [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2008 4:02 AM
To: axis-user@ws.apache.org
Subject: WSDL2JAVA created uncompilable Stub

Hi,

with Axis2 1.4 - when I regenerate Stub, it cannot be compiled.
I got errors like these all over it:

The type WhoIsWhoServiceStub.AddressType must implement the inherited
abstract method ADBBean.serialize(QName, OMFactory,
MTOMAwareXMLStreamWriter, boolean)

The type WhoIsWhoServiceStub.AsyncResponseType must implement the
inherited abstract method ADBBean.serialize(QName, OMFactory,
MTOMAwareXMLStreamWriter, boolean)

etc. (there are about 100 errors in the file).

What am I doing wrong? I just upgraded from axis2 1.3 - it worked there
perfectly.

Thanks for your reply!

  Best regards
  Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wsdl2java - java.lang.OutOfMemoryError: Java heap space

2008-06-05 Thread Jyotsna Varma
Hi,
nbsp;
I have copied the stubs created using wsdl2java into the local directory. But 
when I compile the application, it shows the error : 
java.lang.OutOfMemoryError: Java heap space.
Can you please tell me is this any work around for this without affecting other 
applications when we put this application on live environment ? Please help me. 
I still couldn't access the external application using this.
nbsp;
Thanks,

--- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote:

From: Paul Fremantle lt;[EMAIL PROTECTED]gt;
Subject: Re: wsdl
To: axis-user@ws.apache.org, [EMAIL PROTECTED]
Date: Wednesday, 4 June, 2008, 5:01 PM

Sorry, I was assuming you had Axis2 (the latest version).

I'm not up to speed on Axis1 so I can't help out with that. Basically
if you get Axis2-bin zipfile, unzip it, and it should become clear. If
you are calling a webservice from your webapp you just need to include
the axis2 libs in the webapp\lib directory.

Paul

On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma lt;[EMAIL PROTECTED]gt;
wrote:
gt;
gt; Thanks Paul for the quick reply.
gt;
gt; I have got axis-bin-1_4. In which directory I should run this ?  I have
done
gt; an advnced installation
gt;
http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp
gt;
gt;
gt;
gt; Thank you very much,
gt;
gt;
gt;
gt; --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote:
gt;
gt; From: Paul Fremantle lt;[EMAIL PROTECTED]gt;
gt; Subject: Re: wsdl
gt; To: axis-user@ws.apache.org, [EMAIL PROTECTED]
gt; Date: Wednesday, 4 June, 2008, 4:23 PM
gt;
gt; You need to run
gt;
gt; bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o
gt; directory\where\you\want\the\code\generated
gt;
gt; This will create a stub which is a class you can embed in your
gt; application. You simply need to create a new instance of this class
gt; and then call methods on it, those methods will call the remote
gt; service.
gt;
gt; Paul
gt;
gt; On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma
lt;[EMAIL PROTECTED]gt;
gt; wrote:
gt;gt; Hi,
gt;gt;
gt;gt;
gt;gt;
gt;gt; I am new to the web services and so as to axis. Please help me.
gt;gt;
gt;gt; I have to show something this week. I have been working to sort this
out
gt;gt; since last 4 days.
gt;gt;
gt;gt; I am sorry to say this.
gt;gt;
gt;gt;
gt;gt;
gt;gt; I have an existing web application. To use axis in existing
application,
gt;gt;
gt;gt; I have done :
gt;gt;
gt;gt; 1.copy all jars from axis.lib directory
gt;gt;
gt;gt; 2.copy axis's web.xml servlet params and mapping to to my web.xml
gt;gt;
gt;gt;
gt;gt;
gt;gt; I have got a wsdl url from an external application (to be integrated
with
gt; my
gt;gt; application)
gt;gt;
gt;gt; Now what should I do to use this wsdl to access the external
application ?
gt;gt;
gt;gt; Please kind enough to me.
gt;gt;
gt;gt;
gt;gt;
gt;gt; Many Thanks,
gt;gt;
gt;gt;
gt;gt;
gt;gt;
gt;gt;
gt;gt; 
gt;gt; Sent from Yahoo! Mail.
gt;gt; A Smarter Email.
gt;
gt;
gt;
gt; --
gt; Paul Fremantle
gt; Co-Founder and CTO, WSO2
gt; Apache Synapse PMC Chair
gt; OASIS WS-RX TC Co-chair
gt;
gt; blog: http://pzf.fremantle.org
gt; [EMAIL PROTECTED]
gt;
gt; Oxygenating the Web Service Platform, www.wso2.com
gt;
gt; -
gt; To unsubscribe, e-mail: [EMAIL PROTECTED]
gt; For additional commands, e-mail: [EMAIL PROTECTED]
gt;
gt; 
gt; Sent from Yahoo! Mail.
gt; A Smarter Email.



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  __
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

Re: wsdl2java - java.lang.OutOfMemoryError: Java heap space

2008-06-05 Thread Jyotsna Varma
I am using axis2 1.3 version with java-1.5 and tomcat-5.5.17
Please help me.

--- On Thu, 5/6/08, Jyotsna Varma lt;[EMAIL PROTECTED]gt; wrote:

From: Jyotsna Varma lt;[EMAIL PROTECTED]gt;
Subject: Re: wsdl2java - java.lang.OutOfMemoryError: Java heap space
To: axis-user@ws.apache.org
Date: Thursday, 5 June, 2008, 1:25 PM







Hi,
nbsp;
I have copied the stubs created using wsdl2java into the local directory. But 
when I compile the application, it shows the error : 
java.lang.OutOfMemoryError: Java heap space.
Can you please tell me is this any work around for this without affecting other 
applications when we put this application on live environment ? Please help me. 
I still couldn't access the external application using this.
nbsp;
Thanks,

--- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote:

From: Paul Fremantle lt;[EMAIL PROTECTED]gt;
Subject: Re: wsdl
To: axis-user@ws.apache.org, [EMAIL PROTECTED]
Date: Wednesday, 4 June, 2008, 5:01 PM

Sorry, I was assuming you had Axis2 (the latest version).

I'm not up to speed on Axis1 so I can't help out with that. Basically
if you get Axis2-bin zipfile, unzip it, and it should become clear. If
you are calling a webservice from your webapp you just need to include
the axis2 libs in the webapp\lib directory.

Paul

On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma lt;[EMAIL PROTECTED]gt;
wrote:
gt;
gt; Thanks Paul for the quick reply.
gt;
gt; I have got axis-bin-1_4. In which directory I should run this ?  I have
done
gt; an advnced installation
gt;
http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp
gt;
gt;
gt;
gt; Thank you very much,
gt;
gt;
gt;
gt; --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote:
gt;
gt; From: Paul Fremantle lt;[EMAIL PROTECTED]gt;
gt; Subject: Re: wsdl
gt; To: axis-user@ws.apache.org, [EMAIL PROTECTED]
gt; Date: Wednesday, 4 June, 2008, 4:23 PM
gt;
gt; You need to run
gt;
gt; bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o
gt; directory\where\you\want\the\code\generated
gt;
gt; This will create a stub which is a class you can embed in your
gt; application. You simply need to create a new instance of this class
gt; and then call methods on it, those methods will call the remote
gt; service.
gt;
gt; Paul
gt;
gt; On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma
lt;[EMAIL PROTECTED]gt;
gt; wrote:
gt;gt; Hi,
gt;gt;
gt;gt;
gt;gt;
gt;gt; I am new to the web services and so as to axis. Please help me.
gt;gt;
gt;gt; I have to show something this week. I have been working to sort this
out
gt;gt; since last 4 days.
gt;gt;
gt;gt; I am sorry to say this.
gt;gt;
gt;gt;
gt;gt;
gt;gt; I have an existing web application. To use axis in existing
application,
gt;gt;
gt;gt; I have done :
gt;gt;
gt;gt; 1.copy all jars from axis.lib directory
gt;gt;
gt;gt; 2.copy axis's web.xml servlet params and mapping to to my web.xml
gt;gt;
gt;gt;
gt;gt;
gt;gt; I have got a wsdl url from an external application (to be integrated
with
gt; my
gt;gt; application)
gt;gt;
gt;gt; Now what should I do to use this wsdl to access the external
application ?
gt;gt;
gt;gt; Please kind enough to me.
gt;gt;
gt;gt;
gt;gt;
gt;gt; Many Thanks,
gt;gt;
gt;gt;
gt;gt;
gt;gt;
gt;gt;
gt;gt; 
gt;gt; Sent from Yahoo! Mail.
gt;gt; A Smarter Email.
gt;
gt;
gt;
gt; --
gt; Paul Fremantle
gt; Co-Founder and CTO, WSO2
gt; Apache Synapse PMC Chair
gt; OASIS WS-RX TC Co-chair
gt;
gt; blog: http://pzf.fremantle.org
gt; [EMAIL PROTECTED]
gt;
gt; Oxygenating the Web Service Platform, www.wso2.com
gt;
gt; -
gt; To unsubscribe, e-mail: [EMAIL PROTECTED]
gt; For additional commands, e-mail: [EMAIL PROTECTED]
gt;
gt; 
gt; Sent from Yahoo! Mail.
gt; A Smarter Email.



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Sent from Yahoo! Mail. 
A Smarter Email.


  __
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

RE: wsdl2java - java.lang.OutOfMemoryError: Java heap space

2008-06-05 Thread Sanjay Vivek
You could try cranking up the JVM heap size. For example, set initial
heap size to 128M and max heap size to 256M as shown below:
 
java -Xms128m -Xms256m
 
Regards
Sanjay




From: Jyotsna Varma [mailto:[EMAIL PROTECTED] 
Sent: 05 June 2008 08:55
To: axis-user@ws.apache.org
Subject: Re: wsdl2java - java.lang.OutOfMemoryError: Java heap
space


Hi,

 

I have copied the stubs created using wsdl2java into the local
directory. But when I compile the application, it shows the error :
java.lang.OutOfMemoryError: Java heap space.

Can you please tell me is this any work around for this without
affecting other applications when we put this application on live
environment ? Please help me. I still couldn't access the external
application using this.

 

Thanks,

--- On Wed, 4/6/08, Paul Fremantle [EMAIL PROTECTED] wrote:


From: Paul Fremantle [EMAIL PROTECTED]
Subject: Re: wsdl
To: axis-user@ws.apache.org, [EMAIL PROTECTED]
Date: Wednesday, 4 June, 2008, 5:01 PM


Sorry, I was assuming you had Axis2 (the latest version).

I'm not up to speed on Axis1 so I can't help out with that.
Basically
if you get Axis2-bin zipfile, unzip it, and it should become
clear. If
you are calling a webservice from your webapp you just need to
include
the axis2 libs in the webapp\lib directory.

Paul

On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma
[EMAIL PROTECTED]
wrote:

 Thanks Paul for the quick reply.

 I have got axis-bin-1_4. In which directory I should run this
?  I have
done
 an advnced installation


http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAx
isToYourOwnWebapp



 Thank you very much,



 --- On Wed, 4/6/08, Paul Fremantle [EMAIL PROTECTED] wrote:

 From: Paul Fremantle [EMAIL PROTECTED]
 Subject: Re: wsdl
 To: axis-user@ws.apache.org, [EMAIL PROTECTED]
 Date: Wednesday, 4 June, 2008, 4:23 PM

 You need to run

 bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o
 directory\where\you\want\the\code\generated

 This will create a stub which is a class you can embed in
your
 application. You simply need to create a new instance of this
class
 and then call methods on it, those methods will call the
remote
 service.

 Paul

 On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma
[EMAIL PROTECTED]
 wrote:
 Hi,



 I am new to the web services and so as to axis. Please help
me.

 I have to show something this week. I have been working to
sort this
out
 since last 4 days.

 I am sorry to say this.



 I have an existing web application. To use axis in existing
application,

 I have done :

 1.copy all jars from axis.lib directory

 2.copy axis's web.xml servlet params and mapping to to my
web.xml



 I have got a wsdl url from an external application (to be
integrated
with
 my
 application)

 Now what should I do to use this wsdl to access the external
application ?

 Please kind enough to me.



 Many Thanks,





 
 Sent from Yahoo! Mail.
 A Smarter Email.



 --
 Paul Fremantle
 Co-Founder and CTO, WSO2
 Apache Synapse PMC Chair
 OASIS WS-RX TC Co-chair

 blog: http://pzf.fremantle.org
 [EMAIL PROTECTED]

 Oxygenating the Web Service Platform, www.wso2.com


-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 Sent from Yahoo! Mail.
 A Smarter Email.



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Sent from Yahoo

RE: wsdl2java - java.lang.OutOfMemoryError: Java heap space

2008-06-05 Thread Jyotsna Varma
Thanks Sanjay for the reply. I hope this won't affect any other application 
running ...

--- On Thu, 5/6/08, Sanjay Vivek lt;[EMAIL PROTECTED]gt; wrote:

From: Sanjay Vivek lt;[EMAIL PROTECTED]gt;
Subject: RE: wsdl2java - java.lang.OutOfMemoryError: Java heap space
To: axis-user@ws.apache.org, [EMAIL PROTECTED]
Date: Thursday, 5 June, 2008, 2:00 PM



You could try cranking up the JVM heap size. For example, set initial heap size 
to 128M and max heap size to 256M as shown below:
nbsp;
java -Xms128m -Xms256m
nbsp;
Regards
Sanjay




From: Jyotsna Varma [mailto:[EMAIL PROTECTED] 
Sent: 05 June 2008 08:55
To: axis-user@ws.apache.org
Subject: Re: wsdl2java - java.lang.OutOfMemoryError: Java heap space







Hi,
nbsp;
I have copied the stubs created using wsdl2java into the local directory. But 
when I compile the application, it shows the error : 
java.lang.OutOfMemoryError: Java heap space.
Can you please tell me is this any work around for this without affecting other 
applications when we put this application on live environment ? Please help me. 
I still couldn't access the external application using this.
nbsp;
Thanks,

--- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote:

From: Paul Fremantle lt;[EMAIL PROTECTED]gt;
Subject: Re: wsdl
To: axis-user@ws.apache.org, [EMAIL PROTECTED]
Date: Wednesday, 4 June, 2008, 5:01 PM

Sorry, I was assuming you had Axis2 (the latest version).

I'm not up to speed on Axis1 so I can't help out with that. Basically
if you get Axis2-bin zipfile, unzip it, and it should become clear. If
you are calling a webservice from your webapp you just need to include
the axis2 libs in the webapp\lib directory.

Paul

On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma lt;[EMAIL PROTECTED]gt;
wrote:
gt;
gt; Thanks Paul for the quick reply.
gt;
gt; I have got axis-bin-1_4. In which directory I should run this ?  I have
done
gt; an advnced installation
gt;
http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp
gt;
gt;
gt;
gt; Thank you very much,
gt;
gt;
gt;
gt; --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote:
gt;
gt; From: Paul Fremantle lt;[EMAIL PROTECTED]gt;
gt; Subject: Re: wsdl
gt; To: axis-user@ws.apache.org, [EMAIL PROTECTED]
gt; Date: Wednesday, 4 June, 2008, 4:23 PM
gt;
gt; You need to run
gt;
gt; bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o
gt; directory\where\you\want\the\code\generated
gt;
gt; This will create a stub which is a class you can embed in your
gt; application. You simply need to create a new instance of this class
gt; and then call methods on it, those methods will call the remote
gt; service.
gt;
gt; Paul
gt;
gt; On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma
lt;[EMAIL PROTECTED]gt;
gt; wrote:
gt;gt; Hi,
gt;gt;
gt;gt;
gt;gt;
gt;gt; I am new to the web services and so as to axis. Please help me.
gt;gt;
gt;gt; I have to show something this week. I have been working to sort this
out
gt;gt; since last 4 days.
gt;gt;
gt;gt; I am sorry to say this.
gt;gt;
gt;gt;
gt;gt;
gt;gt; I have an existing web application. To use axis in existing
application,
gt;gt;
gt;gt; I have done :
gt;gt;
gt;gt; 1.copy all jars from axis.lib directory
gt;gt;
gt;gt; 2.copy axis's web.xml servlet params and mapping to to my web.xml
gt;gt;
gt;gt;
gt;gt;
gt;gt; I have got a wsdl url from an external application (to be integrated
with
gt; my
gt;gt; application)
gt;gt;
gt;gt; Now what should I do to use this wsdl to access the external
application ?
gt;gt;
gt;gt; Please kind enough to me.
gt;gt;
gt;gt;
gt;gt;
gt;gt; Many Thanks,
gt;gt;
gt;gt;
gt;gt;
gt;gt;
gt;gt;
gt;gt; 
gt;gt; Sent from Yahoo! Mail.
gt;gt; A Smarter Email.
gt;
gt;
gt;
gt; --
gt; Paul Fremantle
gt; Co-Founder and CTO, WSO2
gt; Apache Synapse PMC Chair
gt; OASIS WS-RX TC Co-chair
gt;
gt; blog: http://pzf.fremantle.org
gt; [EMAIL PROTECTED]
gt;
gt; Oxygenating the Web Service Platform, www.wso2.com
gt;
gt; -
gt; To unsubscribe, e-mail: [EMAIL PROTECTED]
gt; For additional commands, e-mail: [EMAIL PROTECTED]
gt;
gt; 
gt; Sent from Yahoo! Mail.
gt; A Smarter Email.



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Sent from Yahoo! Mail. 
A Smarter Email.


  __
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

RE: wsdl2java - java.lang.OutOfMemoryError: Java heap space

2008-06-05 Thread Jyotsna Varma
I am getting the java.lang.OutOfMemoryError error when I compile the web 
application using ant . Why is it ? 


--- On Thu, 5/6/08, Sanjay Vivek lt;[EMAIL PROTECTED]gt; wrote:

From: Sanjay Vivek lt;[EMAIL PROTECTED]gt;
Subject: RE: wsdl2java - java.lang.OutOfMemoryError: Java heap space
To: [EMAIL PROTECTED]
Date: Thursday, 5 June, 2008, 2:27 PM



You can set the heap size for a specific program in the following manner:
nbsp;
java -Xms128m -Xms256m MyClassName
nbsp;
Cheers
Sanjay
nbsp;
nbsp;




From: Jyotsna Varma [mailto:[EMAIL PROTECTED] 
Sent: 05 June 2008 09:37
To: Sanjay Vivek; axis-user@ws.apache.org
Subject: RE: wsdl2java - java.lang.OutOfMemoryError: Java heap space






Thanks Sanjay for the reply. I hope this won't affect any other application 
running ...

--- On Thu, 5/6/08, Sanjay Vivek lt;[EMAIL PROTECTED]gt; wrote:

From: Sanjay Vivek lt;[EMAIL PROTECTED]gt;
Subject: RE: wsdl2java - java.lang.OutOfMemoryError: Java heap space
To: axis-user@ws.apache.org, [EMAIL PROTECTED]
Date: Thursday, 5 June, 2008, 2:00 PM



You could try cranking up the JVM heap size. For example, set initial heap size 
to 128M and max heap size to 256M as shown below:
nbsp;
java -Xms128m -Xms256m
nbsp;
Regards
Sanjay




From: Jyotsna Varma [mailto:[EMAIL PROTECTED] 
Sent: 05 June 2008 08:55
To: axis-user@ws.apache.org
Subject: Re: wsdl2java - java.lang.OutOfMemoryError: Java heap space







Hi,
nbsp;
I have copied the stubs created using wsdl2java into the local directory. But 
when I compile the application, it shows the error : 
java.lang.OutOfMemoryError: Java heap space.
Can you please tell me is this any work around for this without affecting other 
applications when we put this application on live environment ? Please help me. 
I still couldn't access the external application using this.
nbsp;
Thanks,

--- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote:

From: Paul Fremantle lt;[EMAIL PROTECTED]gt;
Subject: Re: wsdl
To: axis-user@ws.apache.org, [EMAIL PROTECTED]
Date: Wednesday, 4 June, 2008, 5:01 PM

Sorry, I was assuming you had Axis2 (the latest version).

I'm not up to speed on Axis1 so I can't help out with that. Basically
if you get Axis2-bin zipfile, unzip it, and it should become clear. If
you are calling a webservice from your webapp you just need to include
the axis2 libs in the webapp\lib directory.

Paul

On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma lt;[EMAIL PROTECTED]gt;
wrote:
gt;
gt; Thanks Paul for the quick reply.
gt;
gt; I have got axis-bin-1_4. In which directory I should run this ?  I have
done
gt; an advnced installation
gt;
http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp
gt;
gt;
gt;
gt; Thank you very much,
gt;
gt;
gt;
gt; --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote:
gt;
gt; From: Paul Fremantle lt;[EMAIL PROTECTED]gt;
gt; Subject: Re: wsdl
gt; To: axis-user@ws.apache.org, [EMAIL PROTECTED]
gt; Date: Wednesday, 4 June, 2008, 4:23 PM
gt;
gt; You need to run
gt;
gt; bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o
gt; directory\where\you\want\the\code\generated
gt;
gt; This will create a stub which is a class you can embed in your
gt; application. You simply need to create a new instance of this class
gt; and then call methods on it, those methods will call the remote
gt; service.
gt;
gt; Paul
gt;
gt; On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma
lt;[EMAIL PROTECTED]gt;
gt; wrote:
gt;gt; Hi,
gt;gt;
gt;gt;
gt;gt;
gt;gt; I am new to the web services and so as to axis. Please help me.
gt;gt;
gt;gt; I have to show something this week. I have been working to sort this
out
gt;gt; since last 4 days.
gt;gt;
gt;gt; I am sorry to say this.
gt;gt;
gt;gt;
gt;gt;
gt;gt; I have an existing web application. To use axis in existing
application,
gt;gt;
gt;gt; I have done :
gt;gt;
gt;gt; 1.copy all jars from axis.lib directory
gt;gt;
gt;gt; 2.copy axis's web.xml servlet params and mapping to to my web.xml
gt;gt;
gt;gt;
gt;gt;
gt;gt; I have got a wsdl url from an external application (to be integrated
with
gt; my
gt;gt; application)
gt;gt;
gt;gt; Now what should I do to use this wsdl to access the external
application ?
gt;gt;
gt;gt; Please kind enough to me.
gt;gt;
gt;gt;
gt;gt;
gt;gt; Many Thanks,
gt;gt;
gt;gt;
gt;gt;
gt;gt;
gt;gt;
gt;gt; 
gt;gt; Sent from Yahoo! Mail.
gt;gt; A Smarter Email.
gt;
gt;
gt;
gt; --
gt; Paul Fremantle
gt; Co-Founder and CTO, WSO2
gt; Apache Synapse PMC Chair
gt; OASIS WS-RX TC Co-chair
gt;
gt; blog: http://pzf.fremantle.org
gt; [EMAIL PROTECTED]
gt;
gt; Oxygenating the Web Service Platform, www.wso2.com
gt;
gt; -
gt; To unsubscribe, e-mail: [EMAIL PROTECTED]
gt; For additional commands, e-mail: [EMAIL PROTECTED]
gt;
gt; 
gt; Sent from Yahoo! Mail.
gt; A Smarter Email.



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co

Re: WSDL2Java

2008-05-19 Thread Thilina Gunarathne
May be your wsdl file is malformed. Please validate your wsdl using a
tool like eclipse wsdl validator. If possible post your wsdl file...

thanks,
Thilina

On Mon, May 19, 2008 at 1:32 PM, skpathi [EMAIL PROTECTED] wrote:

 hi
 i am getting following exception while to generate a stub using WSDL2Java

 org.apache.axis2.wsdl.codegen.CodeGenerationException:
 java.lang.RuntimeException: Element QName is null for WebServiceException!



 Any help is very much appreciated.

 Thanks  Regards
 skpathi

 the command is

 java -cp
 C:\ccss\WA_PA_ST3\ProvOne\ProvOneComp\WAMMIS\JavaSource\LIB\axis-lib.jar
 org.apache.axis2.wsdl.WSDL2Java -d xmlbeans -o C:\TTMP\WS_CLIENTS\PA_SXC -p
 com.ecams.priorauth.handler.stub -uri
 C:\TTMP\WS_CLIENTS\PA_SXC\PARequestCreate.wsdl



 here is the stack trace


 C:\TTMP\WS_CLIENTS\PA_SXCjava -cp
 C:\ccss\WA_PA_ST3\ProvOne\ProvOneComp\WAMMIS\JavaSource\LIB\axis-lib.jar
 org.apache.axis2.wsdl.WSDL2Java -d xmlbeans -p
 com.ecams.priorauth.handler.stub -uri PARequestCreate.wsdl
 Retrieving document at 'exception.wsdl', relative to
 'file:/C:/TTMP/WS_CLIENTS/PA_SXC/'.
 Retrieving schema at 'user_common.xsd', relative to
 'file:/C:/TTMP/WS_CLIENTS/PA_SXC/'.
 Retrieving schema at 'sxc_common.xsd', relative to
 'file:/C:/TTMP/WS_CLIENTS/PA_SXC/'.
 May 19, 2008 2:30:23 PM
 org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver
 resolveEntity   INFO:
 Resolving schema with publicId [http://common.webservice.sxc.com] and
 systemId [sxc_common.xsd]
 May 19, 2008 2:30:23 PM
 org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver
 resolveEntity   INFO:
 Resolving schema with publicId [http://common.user.webservice.sxc.com] and
 systemId [user_common.xsd]
 Exception in thread main
 org.apache.axis2.wsdl.codegen.CodeGenerationException:
 org.apache.axis2.wsdl.codegen.CodeGenerationException:
 java.lang.RuntimeException: Element QName is null for WebServiceException!
 at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
 at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
 at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
 Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
 java.lang.RuntimeException: Element QName is null for WebServiceException!
 at
 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:295)
 at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213)
 ... 2 more
 Caused by: java.lang.RuntimeException: Element QName is null for
 WebServiceException!
 at
 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:1864)
 at
 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:1795)
 at
 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:1546)
 at
 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1463)
 at
 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:688)
 at
 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:663)
 at
 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:270)
 ... 3 more
 C:\TTMP\WS_CLIENTS\PA_SXC

 --
 View this message in context: 
 http://www.nabble.com/WSDL2Java-tp17325168p17325168.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Thilina Gunarathne - http://thilinag.blogspot.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL2Java on WSRP WSDL fails

2008-05-16 Thread Alexey Zavizionov
Hi Nicolas,

Will search eXo wsrp project, this service is based on Axis1 1.4
Look for sources how to generate WSDL2Java.

HTH,
Alexey

On Tue, Oct 16, 2007 at 1:34 PM, Nicolas Vahlas [EMAIL PROTECTED] wrote:

 Axis:  Axis-1_3 or Axis-1_4
 Java:  JDK 1.6 or JDK 1.4
 Ant:   Apache Ant 1.6.5

 When running the WSDL2Java ant task on the WSDL of the WSRP (Web
 Services for Remote Protlets) retrieved from OASIS along with all the
 files imported by this WSDL file, I get the following error:

 [axis-wsdl2java] java.lang.ClassCastException: java.util.ArrayList
 [axis-wsdl2java] at
 org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:724)
 [axis-wsdl2java] at
 org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
 [axis-wsdl2java] at
 org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
 [axis-wsdl2java] at
 org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
 [axis-wsdl2java] at
 org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
 [axis-wsdl2java] at java.lang.Thread.run(Thread.java:595)

 My build.xml file contains the following call to the WSDL2Java ant task:

 target name=WSDL2JAVA
  axis-wsdl2java output=${local.src.dir}
verbose=true
url=${wsdl.url}
debug=true
wrapArrays=true
  /axis-wsdl2java
 /target

 I have searched around the Internet and the mailing lists in order to
 find out what may be wrong with no success. Can anyone help me on that ?

 Thanks,
 Nicolas

 --
 VAHLAS Nicolas
 Technical Architect

 Quality  Reliability
 Address: Konitsis 11B,
 151 25 Marousi
 Tel.:(+ 30) 210 80 29 409 (270)
 Mobile:  (+ 30) 694 58 76 506
 Mail:[EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL2Java Exception

2008-05-09 Thread Amila Suriarachchi
://bank.ws.uniserv;
 attributeFormDefault=qualified elementFormDefault=qualified
 targetNamespace=http://bank.ws.uniserv;
 - xs:complexType name=Exception
 - xs:sequence
  xs:element minOccurs=0 name=Exception nillable=true
 type=xs:anyType /
  /xs:sequence
  /xs:complexType
 - xs:element name=RemoteException
 - xs:complexType
 - xs:sequence
  xs:element minOccurs=0 name=RemoteException nillable=true
 type=ns2:RemoteException /
  /xs:sequence
  /xs:complexType
  /xs:element
 - xs:element name=checkAccount
 - xs:complexType
 - xs:sequence
  xs:element minOccurs=0 name=param0 nillable=true
 type=ns1:Authentication /
  xs:element minOccurs=0 name=param1 nillable=true
 type=ns0:Parameter /
  xs:element minOccurs=0 name=param2 nillable=true
 type=ns0:Bank /
  /xs:sequence
  /xs:complexType
  /xs:element
 - xs:element name=checkAccountResponse
 - xs:complexType
 - xs:sequence
  xs:element maxOccurs=unbounded minOccurs=0 nillable=true
 type=ns0:BankResult /
  /xs:sequence
  /xs:complexType
  /xs:element
  /xs:schema
  /wsdl:types
 - wsdl:message name=checkAccountRequest
  wsdl:part name=parameters element=ns4:checkAccount /
  /wsdl:message
 - wsdl:message name=checkAccountResponse
  wsdl:part name=parameters element=ns4:checkAccountResponse /
  /wsdl:message
 - wsdl:message name=RemoteException
  wsdl:part name=parameters element=ns4:RemoteException /
  /wsdl:message
 - wsdl:portType name=BankValidatorPortType
 - wsdl:operation name=checkAccount
  wsdl:input message=ns4:checkAccountRequest
 wsaw:Action=urn:checkAccount /
  wsdl:output message=ns4:checkAccountResponse
 wsaw:Action=urn:checkAccountResponse /
  wsdl:fault message=ns4:RemoteException name=RemoteException
 wsaw:Action=urn:checkAccountRemoteException /
  /wsdl:operation
  /wsdl:portType
 - wsdl:binding name=BankValidatorSOAP11Binding
 type=ns4:BankValidatorPortType
  soap:binding transport=http://schemas.xmlsoap.org/soap/http;
 style=document /
 - wsdl:operation name=checkAccount
  soap:operation soapAction=urn:checkAccount style=document /
 - wsdl:input
  soap:body use=literal /
  /wsdl:input
 - wsdl:output
  soap:body use=literal /
  /wsdl:output
 - wsdl:fault name=RemoteException
  soap:fault use=literal name=RemoteException /
  /wsdl:fault
  /wsdl:operation
  /wsdl:binding
 - wsdl:binding name=BankValidatorSOAP12Binding
 type=ns4:BankValidatorPortType
  soap12:binding transport=http://schemas.xmlsoap.org/soap/http;
 style=document /
 - wsdl:operation name=checkAccount
  soap12:operation soapAction=urn:checkAccount style=document /
 - wsdl:input
  soap12:body use=literal /
  /wsdl:input
 - wsdl:output
  soap12:body use=literal /
  /wsdl:output
 - wsdl:fault name=RemoteException
  soap12:fault use=literal name=RemoteException /
  /wsdl:fault
  /wsdl:operation
  /wsdl:binding
 - wsdl:binding name=BankValidatorHttpBinding
 type=ns4:BankValidatorPortType
  http:binding verb=POST /
 - wsdl:operation name=checkAccount
  http:operation location=BankValidator/checkAccount /
 - wsdl:input
  mime:content type=text/xml part=checkAccount /
  /wsdl:input
 - wsdl:output
  mime:content type=text/xml part=checkAccount /
  /wsdl:output
  /wsdl:operation
  /wsdl:binding
 - wsdl:service name=BankValidator
 - wsdl:port name=BankValidatorSOAP11port_http
 binding=ns4:BankValidatorSOAP11Binding
  soap:address location=http://linux/axis2/services/BankValidator; /
  /wsdl:port
 - wsdl:port name=BankValidatorSOAP12port_http
 binding=ns4:BankValidatorSOAP12Binding
  soap12:address location=http://linux/axis2/services/BankValidator;
 /
  /wsdl:port
 - wsdl:port name=BankValidatorHttpport
 binding=ns4:BankValidatorHttpBinding
  http:address location=http://linux/axis2/services/BankValidator; /
  /wsdl:port
  /wsdl:service
  /wsdl:definitions


 Thanks,
 Fadila


 -Original Message-
 From: keith chapman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 07, 2008 5:32 PM
 To: axis-user@ws.apache.org
 Subject: Re: WSDL2Java Exception

 Hi Fadila,

 Would it be possible for you to post your WSDL and schema here please.
 That'll make it easy for us to help you out.  And which axis version is
 your server using?

 Thanks,
 Keith.


 On Wed, May 7, 2008 at 5:02 PM, [EMAIL PROTECTED] wrote:



Hi,

I'm using axis2 1.3. I've deployed a new webservice and I can
 see it in
the list of deployed services.
I would like to generate the client stub using the wsdl created
 by axis.

But whenn I call WSDL2Java the following exception is thrown:

 [java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException:
 java.lang.reflect.InvocationTargetException
[java] at

 org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
[java] at
 org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
...
 [java] Caused by:
 org.apache.axis2.schema.SchemaCompilationException:
Missing name attribute! Please check your schema!
[java

RE: WSDL2Java Exception

2008-05-08 Thread fadila.mumbasic
 minOccurs=0 name=param1 nillable=true
type=ns0:Parameter / 
  xs:element minOccurs=0 name=param2 nillable=true
type=ns0:Bank / 
  /xs:sequence
  /xs:complexType
  /xs:element
- xs:element name=checkAccountResponse
- xs:complexType
- xs:sequence
  xs:element maxOccurs=unbounded minOccurs=0 nillable=true
type=ns0:BankResult / 
  /xs:sequence
  /xs:complexType
  /xs:element
  /xs:schema
  /wsdl:types
- wsdl:message name=checkAccountRequest
  wsdl:part name=parameters element=ns4:checkAccount / 
  /wsdl:message
- wsdl:message name=checkAccountResponse
  wsdl:part name=parameters element=ns4:checkAccountResponse / 
  /wsdl:message
- wsdl:message name=RemoteException
  wsdl:part name=parameters element=ns4:RemoteException / 
  /wsdl:message
- wsdl:portType name=BankValidatorPortType
- wsdl:operation name=checkAccount
  wsdl:input message=ns4:checkAccountRequest
wsaw:Action=urn:checkAccount / 
  wsdl:output message=ns4:checkAccountResponse
wsaw:Action=urn:checkAccountResponse / 
  wsdl:fault message=ns4:RemoteException name=RemoteException
wsaw:Action=urn:checkAccountRemoteException / 
  /wsdl:operation
  /wsdl:portType
- wsdl:binding name=BankValidatorSOAP11Binding
type=ns4:BankValidatorPortType
  soap:binding transport=http://schemas.xmlsoap.org/soap/http;
style=document / 
- wsdl:operation name=checkAccount
  soap:operation soapAction=urn:checkAccount style=document / 
- wsdl:input
  soap:body use=literal / 
  /wsdl:input
- wsdl:output
  soap:body use=literal / 
  /wsdl:output
- wsdl:fault name=RemoteException
  soap:fault use=literal name=RemoteException / 
  /wsdl:fault
  /wsdl:operation
  /wsdl:binding
- wsdl:binding name=BankValidatorSOAP12Binding
type=ns4:BankValidatorPortType
  soap12:binding transport=http://schemas.xmlsoap.org/soap/http;
style=document / 
- wsdl:operation name=checkAccount
  soap12:operation soapAction=urn:checkAccount style=document / 
- wsdl:input
  soap12:body use=literal / 
  /wsdl:input
- wsdl:output
  soap12:body use=literal / 
  /wsdl:output
- wsdl:fault name=RemoteException
  soap12:fault use=literal name=RemoteException / 
  /wsdl:fault
  /wsdl:operation
  /wsdl:binding
- wsdl:binding name=BankValidatorHttpBinding
type=ns4:BankValidatorPortType
  http:binding verb=POST / 
- wsdl:operation name=checkAccount
  http:operation location=BankValidator/checkAccount / 
- wsdl:input
  mime:content type=text/xml part=checkAccount / 
  /wsdl:input
- wsdl:output
  mime:content type=text/xml part=checkAccount / 
  /wsdl:output
  /wsdl:operation
  /wsdl:binding
- wsdl:service name=BankValidator
- wsdl:port name=BankValidatorSOAP11port_http
binding=ns4:BankValidatorSOAP11Binding
  soap:address location=http://linux/axis2/services/BankValidator; / 
  /wsdl:port
- wsdl:port name=BankValidatorSOAP12port_http
binding=ns4:BankValidatorSOAP12Binding
  soap12:address location=http://linux/axis2/services/BankValidator;
/ 
  /wsdl:port
- wsdl:port name=BankValidatorHttpport
binding=ns4:BankValidatorHttpBinding
  http:address location=http://linux/axis2/services/BankValidator; / 
  /wsdl:port
  /wsdl:service
  /wsdl:definitions 


Thanks,
Fadila

 
-Original Message-
From: keith chapman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 07, 2008 5:32 PM
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java Exception

Hi Fadila,

Would it be possible for you to post your WSDL and schema here please.
That'll make it easy for us to help you out.  And which axis version is
your server using?

Thanks,
Keith.


On Wed, May 7, 2008 at 5:02 PM, [EMAIL PROTECTED] wrote:



Hi,

I'm using axis2 1.3. I've deployed a new webservice and I can
see it in
the list of deployed services.
I would like to generate the client stub using the wsdl created
by axis.

But whenn I call WSDL2Java the following exception is thrown:

 [java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
[java] at

org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
[java] at
org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
...
 [java] Caused by:
org.apache.axis2.schema.SchemaCompilationException:
Missing name attribute! Please check your schema!
[java] at

org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:2089)
[java] at

org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.ja
va:1788)
[java] at

org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler
.java:977)
[java] at

org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
(SchemaCompiler.java:886)
[java] at

org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java
:867)

I'm a bit confused because

Re: WSDL2Java in Axis1.4 code generation errors.

2008-05-08 Thread Aravind . Yarram
Hi, i am also facing the same kind of issuesi havent got any help so 
far!

Regards, 
Aravind R Yarram



[EMAIL PROTECTED] 
05/08/2008 05:09 AM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
WSDL2Java in Axis1.4 code generation errors.







Hello all, 

In the past with axis upto 1.2, I have used the bundled wsdl2java tool 
with a lot of confidence. 
Recently however, I have discovered some code generation errors when using 
the tool. 
For instance, a Class X was generated such that: 
public class ListOfIDXRefDataTypeIdXRefAppInstanceAppID  implements 
java.io.Serializable, org.apache.axis.encoding.SimpleType. 

This class had the following constructor, generated: 
public 
ListOfIDXRefDataTypeIdXRefAppInstanceAppID(org.apache.axis.types.Token 
_value) { 
super(_value); 
} 

As you can see from the Class declaration, it does not extend any other 
class (other than java.lang.Object by default). Hence compilation of this 
class fails because Object(value) is not present and super(value) is 
illegal. 

Has anyone else come across similar or same errors? Is there a resolution 
for these errors, other than modifying the classes oneself. 

Please advise. 

Thanks 

Cheers 
Gautham Kasinath 

Gautham KASINATH

HBF/Ajilon 
William Street
Perth
Phone: +61 8 9214 6754


===
HBF Health Funds Inc ARBN 126 884 786 incorporated in Western Australia
is a Private Health Insurer under the Private Health Insurance Act 2007.
The liability of its constitutional members is limited; HBF Insurance 
Pty Ltd ABN 11 009 268 277; HBF Financial Services Pty Ltd 
ABN 18 009 123 675. The information contained in this email and any 
attachment is intended solely for the named recipients. It may contain 
material or information that is confidential and/or legally privileged 
material. It is also subject to copyright. If you are not the intended 
recipient please advise us immediately by return email or contact a 
Member Service Advisor on 133 423 and delete the email and any 
attachments. Any use or disclosure of the contents of either is 
unauthorised and may be unlawful. Any personal information in this email
must be handled in accordance with the Privacy Act 1988 (Cth). The views
expressed in this email are those of the author and do not represent 
those of HBF unless clearly indicated.
===


This message contains information from Equifax Inc. which may be confidential 
and privileged.  If you are not an intended recipient, please refrain from any 
disclosure, copying, distribution or use of this information and note that such 
actions are prohibited.  If you have received this transmission in error, 
please notify by e-mail [EMAIL PROTECTED]
--

RE: WSDL2Java in Axis1.4 code generation errors.

2008-05-08 Thread Aravind . Yarram
Ok, this for Axis 1.4 version though

Regards, 
Aravind R Yarram
email: [EMAIL PROTECTED] 



Krystian Szczesny [EMAIL PROTECTED] 
05/08/2008 10:02 AM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
RE: WSDL2Java in Axis1.4 code generation errors.






Hi guys,
 
Actually I think it’s less Axis2 issue and more XmlSchema ws commons 
project issue.
I have created a bug report in jira: 
https://issues.apache.org/jira/browse/WSCOMMONS-342
I suggest you start debugging and see where it takes you.
 
Best regards,
Krystian
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 08 May 2008 14:38
To: axis-user@ws.apache.org
Cc: axis-user@ws.apache.org
Subject: Re: WSDL2Java in Axis1.4 code generation errors.
 

Hi, i am also facing the same kind of issuesi havent got any help so 
far!

Regards, 
Aravind R Yarram


[EMAIL PROTECTED]
05/08/2008 05:09 AM


Please respond to
axis-user@ws.apache.org



To
axis-user@ws.apache.org
cc

Subject
WSDL2Java in Axis1.4 code generation errors.
 









Hello all, 

In the past with axis upto 1.2, I have used the bundled wsdl2java tool 
with a lot of confidence. 
Recently however, I have discovered some code generation errors when using 
the tool. 
For instance, a Class X was generated such that: 
public class ListOfIDXRefDataTypeIdXRefAppInstanceAppID  implements 
java.io.Serializable, org.apache.axis.encoding.SimpleType.

This class had the following constructor, generated: 
public 
ListOfIDXRefDataTypeIdXRefAppInstanceAppID(org.apache.axis.types.Token 
_value) { 
   super(_value); 
   } 

As you can see from the Class declaration, it does not extend any other 
class (other than java.lang.Object by default). Hence compilation of this 
class fails because Object(value) is not present and super(value) is 
illegal. 

Has anyone else come across similar or same errors? Is there a resolution 
for these errors, other than modifying the classes oneself. 

Please advise. 

Thanks 

Cheers 
Gautham Kasinath 

Gautham KASINATH

HBF/Ajilon 
William Street
Perth
Phone: +61 8 9214 6754


===
HBF Health Funds Inc ARBN 126 884 786 incorporated in Western Australia
is a Private Health Insurer under the Private Health Insurance Act 2007.
The liability of its constitutional members is limited; HBF Insurance 
Pty Ltd ABN 11 009 268 277; HBF Financial Services Pty Ltd 
ABN 18 009 123 675. The information contained in this email and any 
attachment is intended solely for the named recipients. It may contain 
material or information that is confidential and/or legally privileged 
material. It is also subject to copyright. If you are not the intended 
recipient please advise us immediately by return email or contact a 
Member Service Advisor on 133 423 and delete the email and any 
attachments. Any use or disclosure of the contents of either is 
unauthorised and may be unlawful. Any personal information in this email
must be handled in accordance with the Privacy Act 1988 (Cth). The views
expressed in this email are those of the author and do not represent 
those of HBF unless clearly indicated.
===


This message contains information from Equifax Inc. which may be 
confidential and privileged. If you are not an intended recipient, please 
refrain from any disclosure, copying, distribution or use of this 
information and note that such actions are prohibited. If you have 
received this transmission in error, please notify by e-mail 
[EMAIL PROTECTED]
--
This e-mail and any attachments are confidential and may also be legally 
privileged and/or copyright material of Intec Telecom Systems PLC (or its 
affiliated companies). If you are not an intended or authorised recipient 
of this e-mail or have received it in error, please delete it immediately 
and notify the sender by e-mail. In such a case, reading, reproducing, 
printing or further dissemination of this e-mail or its contents is 
strictly 
prohibited and may be unlawful. 
Intec Telecom Systems PLC does not represent or warrant that an attachment 

hereto is free from computer viruses or other defects. The opinions 
expressed in this e-mail and any attachments may be those of the author 
and 
are not necessarily those of Intec Telecom Systems PLC.

This message contains information from Equifax Inc. which may be confidential 
and privileged.  If you are not an intended recipient, please refrain from any 
disclosure, copying, distribution or use of this information and note that such 
actions are prohibited.  If you have received this transmission in error, 
please notify by e-mail [EMAIL PROTECTED]
--


RE: WSDL2Java in Axis1.4 code generation errors.

2008-05-08 Thread Krystian Szczesny
XmlSchema libraries have changed in 1.4 release to a snapshot version.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 08 May 2008 15:08
To: axis-user@ws.apache.org
Cc: axis-user@ws.apache.org
Subject: RE: WSDL2Java in Axis1.4 code generation errors.

 


Ok, this for Axis 1.4 version though

Regards, 
Aravind R Yarram
email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



Krystian Szczesny [EMAIL PROTECTED] 

05/08/2008 10:02 AM

Please respond to
axis-user@ws.apache.org

To

axis-user@ws.apache.org

cc


Subject

RE: WSDL2Java in Axis1.4 code generation errors.

 






Hi guys,
 
Actually I think it’s less Axis2 issue and more XmlSchema ws commons project 
issue.
I have created a bug report in jira: 
https://issues.apache.org/jira/browse/WSCOMMONS-342 
https://issues.apache.org/jira/browse/WSCOMMONS-342 
I suggest you start debugging and see where it takes you.
 
Best regards,
Krystian
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 08 May 2008 14:38
To: axis-user@ws.apache.org
Cc: axis-user@ws.apache.org
Subject: Re: WSDL2Java in Axis1.4 code generation errors.
 

Hi, i am also facing the same kind of issuesi havent got any help so far!

Regards, 
Aravind R Yarram

[EMAIL PROTECTED]

05/08/2008 05:09 AM

 

Please respond to
axis-user@ws.apache.org

 

To

axis-user@ws.apache.org

cc


Subject

WSDL2Java in Axis1.4 code generation errors.


 

 








Hello all, 

In the past with axis upto 1.2, I have used the bundled wsdl2java tool with a 
lot of confidence. 
Recently however, I have discovered some code generation errors when using the 
tool. 
For instance, a Class X was generated such that: 
public class ListOfIDXRefDataTypeIdXRefAppInstanceAppID  implements 
java.io.Serializable, org.apache.axis.encoding.SimpleType.

This class had the following constructor, generated: 
public ListOfIDXRefDataTypeIdXRefAppInstanceAppID(org.apache.axis.types.Token 
_value) { 
  super(_value);
  } 

As you can see from the Class declaration, it does not extend any other class 
(other than java.lang.Object by default). Hence compilation of this class fails 
because Object(value) is not present and super(value) is illegal. 

Has anyone else come across similar or same errors? Is there a resolution for 
these errors, other than modifying the classes oneself. 

Please advise. 

Thanks 

Cheers 
Gautham Kasinath 

Gautham KASINATH

HBF/Ajilon 
William Street
Perth
Phone: +61 8 9214 6754


===
HBF Health Funds Inc ARBN 126 884 786 incorporated in Western Australia
is a Private Health Insurer under the Private Health Insurance Act 2007.
The liability of its constitutional members is limited; HBF Insurance 
Pty Ltd ABN 11 009 268 277; HBF Financial Services Pty Ltd 
ABN 18 009 123 675. The information contained in this email and any 
attachment is intended solely for the named recipients. It may contain 
material or information that is confidential and/or legally privileged 
material. It is also subject to copyright. If you are not the intended 
recipient please advise us immediately by return email or contact a 
Member Service Advisor on 133 423 and delete the email and any 
attachments. Any use or disclosure of the contents of either is 
unauthorised and may be unlawful. Any personal information in this email
must be handled in accordance with the Privacy Act 1988 (Cth). The views
expressed in this email are those of the author and do not represent 
those of HBF unless clearly indicated.
===




This message contains information from Equifax Inc. which may be confidential 
and privileged. If you are not an intended recipient, please refrain from any 
disclosure, copying, distribution or use of this information and note that such 
actions are prohibited. If you have received this transmission in error, please 
notify by e-mail [EMAIL PROTECTED]
--

This e-mail and any attachments are confidential and may also be legally 
privileged and/or copyright material of Intec Telecom Systems PLC (or its 
affiliated companies). If you are not an intended or authorised recipient 
of this e-mail or have received it in error, please delete it immediately 
and notify the sender by e-mail. In such a case, reading, reproducing, 
printing or further dissemination of this e-mail or its contents is strictly 
prohibited and may be unlawful. 
Intec Telecom Systems PLC does not represent or warrant that an attachment 
hereto is free from computer viruses or other defects. The opinions 
expressed in this e-mail and any attachments may be those of the author and 
are not necessarily those of Intec Telecom Systems PLC.

This message contains information from Equifax Inc. which may be confidential 
and privileged. If you are not an intended recipient, please refrain from any 
disclosure, copying, distribution or use of this information

RE: WSDL2Java in Axis1.4 code generation errors.

2008-05-08 Thread Krystian Szczesny
Hi guys,

 

Actually I think it's less Axis2 issue and more XmlSchema ws commons
project issue.

I have created a bug report in jira:
https://issues.apache.org/jira/browse/WSCOMMONS-342

I suggest you start debugging and see where it takes you.

 

Best regards,

Krystian

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 08 May 2008 14:38
To: axis-user@ws.apache.org
Cc: axis-user@ws.apache.org
Subject: Re: WSDL2Java in Axis1.4 code generation errors.

 


Hi, i am also facing the same kind of issuesi havent got any help so
far!

Regards, 
Aravind R Yarram



[EMAIL PROTECTED]

05/08/2008 05:09 AM

Please respond to
axis-user@ws.apache.org

To

axis-user@ws.apache.org

cc


Subject

WSDL2Java in Axis1.4 code generation errors.

 







Hello all, 

In the past with axis upto 1.2, I have used the bundled wsdl2java tool
with a lot of confidence. 
Recently however, I have discovered some code generation errors when
using the tool. 
For instance, a Class X was generated such that: 
public class ListOfIDXRefDataTypeIdXRefAppInstanceAppID  implements
java.io.Serializable, org.apache.axis.encoding.SimpleType.

This class had the following constructor, generated: 
public
ListOfIDXRefDataTypeIdXRefAppInstanceAppID(org.apache.axis.types.Token
_value) { 
   super(_value); 
   } 

As you can see from the Class declaration, it does not extend any other
class (other than java.lang.Object by default). Hence compilation of
this class fails because Object(value) is not present and super(value)
is illegal. 

Has anyone else come across similar or same errors? Is there a
resolution for these errors, other than modifying the classes oneself. 

Please advise. 

Thanks 

Cheers 
Gautham Kasinath 

Gautham KASINATH

HBF/Ajilon 
William Street
Perth
Phone: +61 8 9214 6754


===
HBF Health Funds Inc ARBN 126 884 786 incorporated in Western Australia
is a Private Health Insurer under the Private Health Insurance Act 2007.
The liability of its constitutional members is limited; HBF Insurance 
Pty Ltd ABN 11 009 268 277; HBF Financial Services Pty Ltd 
ABN 18 009 123 675. The information contained in this email and any 
attachment is intended solely for the named recipients. It may contain 
material or information that is confidential and/or legally privileged 
material. It is also subject to copyright. If you are not the intended 
recipient please advise us immediately by return email or contact a 
Member Service Advisor on 133 423 and delete the email and any 
attachments. Any use or disclosure of the contents of either is 
unauthorised and may be unlawful. Any personal information in this email
must be handled in accordance with the Privacy Act 1988 (Cth). The views
expressed in this email are those of the author and do not represent 
those of HBF unless clearly indicated.
===



This message contains information from Equifax Inc. which may be
confidential and privileged. If you are not an intended recipient,
please refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited. If you have
received this transmission in error, please notify by e-mail
[EMAIL PROTECTED]
--
This e-mail and any attachments are confidential and may also be legally 
privileged and/or copyright material of Intec Telecom Systems PLC (or its 
affiliated companies).  If you are not an intended or authorised recipient 
of this e-mail or have received it in error, please delete it immediately 
and notify the sender by e-mail. In such a case, reading, reproducing, 
printing or further dissemination of this e-mail or its contents is strictly 
prohibited and may be unlawful. 
Intec Telecom Systems PLC does not represent or warrant that an attachment 
hereto is free from computer viruses or other defects. The opinions 
expressed in this e-mail and any attachments may be those of the author and 
are not necessarily those of Intec Telecom Systems PLC.


Re: wsdl2java

2008-05-01 Thread Anne Thomas Manes
xs:complexType name=Course
xs:sequence
 xs:element minOccurs=0 name=courseCode nillable=true
type=xs:string/
 xs:element minOccurs=0 name=schedules
nillable=true type=ns0:ScheduleArray/
/xs:sequence
/xs:complexType

xs:complexType name=ScheduleArray
xs:sequence
 xs:element minOccurs=0 maxOccurs=unbounded name=schedule
nillable=true type=ns0:Schedule/
/xs:sequence
/xs:complexType


On Thu, May 1, 2008 at 6:21 PM, A Sunley [EMAIL PROTECTED] wrote:

  Greetings,

  We are attempting to generate some skeleton code from a wsdl using
  wsdl2java. Our schema contains some custom objects which have nested arrays.

  For instance we have a course object which has an array of schedules, and we
  want the course object in the SOAP message to be structured in the following
  way:

  Course
  courseCode /
  schedules
   schedule /
   schedule /
  /schedules
  /Course

  We've specified the course object in the wsdl in the following way:

  xs:complexType name=Course
  xs:sequence
   xs:element minOccurs=0 name=courseCode nillable=true
  type=xs:string/
   xs:element maxOccurs=unbounded minOccurs=0 name=schedules
  nillable=true type=ns0:Schedule/
  /xs:sequence
  /xs:complexType


  The problem is, the resulting soap structured like this:

  Course
  courseCode /
  schedules /
  schedules /
  /Course

  Rather then the schedule objects being nested in a schedules tag, they are
  listed one after another in schedules/ tags.

  I gather I could create a 'wrapper' element for the array, but in the
  generated code this  will also create a wrapper object for the array.
  Ideally we want the generated code to look like the following:

  Course
  {
  String courseCode;
  Schedule[] schedules;

  .
  }

  How might I format the wsdl to achieve this?

  Thanks,
  Alan.
  --
  View this message in context: 
 http://www.nabble.com/wsdl2java-tp16995096p16995096.html
  Sent from the Axis - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wsdl2java problems with any wsdl file

2008-04-02 Thread Dennis Sacks
I don't know why, but after a reboot, this problem seems to have gone away,
so it must have been environment.

On Tue, Apr 1, 2008 at 10:30 PM, Amila Suriarachchi 
[EMAIL PROTECTED] wrote:

 Can you send the wsdl file, arguments you use and the whole stack trace?

 thanks,
 Amila.


 On Wed, Apr 2, 2008 at 12:35 AM, Dennis Sacks [EMAIL PROTECTED]
 wrote:

  Okay, I'm thinking environment, java version or something else on my
  machine, because I've tried other wsdl files including
  Axis2SAmpleDocLit.wsdl from the axis2-1.3 samples and I still get the same
  error from wsdl2java:
 
 
  Exception in thread main
  org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
  at
  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:153)
  at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
  at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
  Caused by: java.lang.StringIndexOutOfBoundsException: String index out
  of range: -1
  at java.lang.String.substring(String.java:1768)
  at
  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getBaseURI(CodeGenerationEngine.java:341)
  at
  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:286)
  at
  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:105)
  ... 2 more
 
  Surely someone has encountered this before? I've tried using both jdk
  1.6 and 1.5, with the same results.
 
  Dennis
 



 --
 Amila Suriarachchi,
 WSO2 Inc.


Re: wsdl2java problems with any wsdl file

2008-04-01 Thread Amila Suriarachchi
Can you send the wsdl file, arguments you use and the whole stack trace?

thanks,
Amila.

On Wed, Apr 2, 2008 at 12:35 AM, Dennis Sacks [EMAIL PROTECTED]
wrote:

 Okay, I'm thinking environment, java version or something else on my
 machine, because I've tried other wsdl files including
 Axis2SAmpleDocLit.wsdl from the axis2-1.3 samples and I still get the same
 error from wsdl2java:


 Exception in thread main
 org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
 at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:153)
 at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
 at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
 Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
 range: -1
 at java.lang.String.substring(String.java:1768)
 at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getBaseURI(CodeGenerationEngine.java:341)
 at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:286)
 at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:105)
 ... 2 more

 Surely someone has encountered this before? I've tried using both jdk 1.6
 and 1.5, with the same results.

 Dennis




-- 
Amila Suriarachchi,
WSO2 Inc.


RE: wsdl2java

2008-03-15 Thread Seetha Rama Krishna
Hi,
  Thanks for your reply.
  //, if you switch away from Axis to some other JAX RPC implementation of Web 
Services
   Can you please tell me  what are other JAX RPC implementations
   
  Regards,
  ram

Chandolu, Yuva [EMAIL PROTECTED] wrote:
v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  
w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}
st1\:*{behavior:url(#default#ieooui) }Using Service and Call 
you are making your code portable between any JAX RPC based implementation of 
Web Services. That means, if you switch away from Axis to some other JAX RPC 
implementation of Web Services, your client code works (should work) without 
any code changes.
   
  Using Stubs your client code is tied to Axis implementation (JAX RPC, of 
course) because you are using Axis generated stubs classes.
   
  Thanks
  Yuva
   
   
   
  
-
  
  From: Seetha Rama Krishna [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 14, 2008 4:48 AM
To: axis-user@ws.apache.org
Subject: Fwd: wsdl2java

   
  
Hi,
 can any one tell me  the difference for the below mail

Seetha Rama Krishna [EMAIL PROTECTED] wrote:
  Date: Thu, 13 Mar 2008 19:03:46 + (GMT)
From: Seetha Rama Krishna [EMAIL PROTECTED]
Subject: wsdl2java
To: axis-user@ws.apache.org
Hi,

 What is the difference b/w client program that is generated by using 
wsdl2java(i.e. generating stubs for WSDL) and writting the client program using 
axis API like service.call etc..Will there any performance difference b/w 
them?? If so how can we decide, which one to adapt??

 

 

Thanks,

ram


-
  
  Why delete messages? Unlimited storage is just a click away.
  


Thanks  Regards,
Krishna



-
  
  Get the freedom to save as many mails as you wish. Click here to know how.



   
-
 Get the freedom to save as many mails as you wish. Click here to know how.

Re: wsdl2java

2008-03-14 Thread Anne Thomas Manes
The WSDL2Java generated stub uses the Axis API, so the two methods
result in the same performance. The advantage of using the generated
stub is that you write less code, and it automatically sets the
correct settings for the call based on the info in the WSDL.

Anne

On Thu, Mar 13, 2008 at 3:03 PM, Seetha Rama Krishna
[EMAIL PROTECTED] wrote:
 Hi,
  What is the difference b/w client program that is generated by using
 wsdl2java(i.e. generating stubs for WSDL) and writting the client program
 using axis API like service.call etc..Will there any performance
 difference b/w them?? If so how can we decide, which one to adapt??


 Thanks,
 ram

  
  Why delete messages? Unlimited storage is just a click away.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: wsdl2java

2008-03-14 Thread Chandolu, Yuva
Using Service and Call you are making your code portable between any JAX
RPC based implementation of Web Services. That means, if you switch away
from Axis to some other JAX RPC implementation of Web Services, your
client code works (should work) without any code changes.

 

Using Stubs your client code is tied to Axis implementation (JAX RPC, of
course) because you are using Axis generated stubs classes.

 

Thanks

Yuva

 

 

 



From: Seetha Rama Krishna [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 14, 2008 4:48 AM
To: axis-user@ws.apache.org
Subject: Fwd: wsdl2java

 


Hi,
 can any one tell me  the difference for the below mail

Seetha Rama Krishna [EMAIL PROTECTED] wrote:

Date: Thu, 13 Mar 2008 19:03:46 + (GMT)
From: Seetha Rama Krishna [EMAIL PROTECTED]
Subject: wsdl2java
To: axis-user@ws.apache.org

Hi,

 What is the difference b/w client program that is generated by
using wsdl2java(i.e. generating stubs for WSDL) and writting the client
program using axis API like service.call etc..Will there any
performance difference b/w them?? If so how can we decide, which one to
adapt??

 

 

Thanks,

ram



Why delete messages? Unlimited storage is just a click away.
http://in.rd.yahoo.com/tagline_mail_1/*http:/help.yahoo.com/l/in/yahoo/
mail/yahoomail/tools/tools-08.html/ 





Thanks  Regards,
Krishna

  



Get the freedom to save as many mails as you wish. Click here to know
how.
http://in.rd.yahoo.com/tagline_mail_5/*http:/help.yahoo.com/l/in/yahoo/
mail/yahoomail/tools/tools-08.html/ 



Re: WSDL2Java Integer.MIN_VALUE for optional xsd:int

2008-03-09 Thread Amila Suriarachchi
On Thu, Mar 6, 2008 at 11:18 PM, ahong [EMAIL PROTECTED] wrote:


 I'm migrating from Axis2 1.1 to 1.3 and notice that WSDL2Java, with adb,
 will
 set an optional xsd:int element value to Integer.MIN_VALUE if it's absent.
 This is a change from the previous in 1.1, which is uninitialized and
 defined by the language (in this case the uninitialized int has value 0).
 Can someone please explain the rationale for this change, since it breaks
 my
 code which assumes a 0 for default.


This is the reason for this.

if your element is optional then their is a possibility to receive a Xml
null value to your element
i.e xsi:nil=true
So if we use 0 for received null values then you don't know that whether you
received a null or a 0.

So when receiving a null it sets to Integer.MIN_VALUE then you know you have
received an XML null value.

Here in xml even it is possible to receive null values for primitive types.

But if you use jdk 1.5 better to use the Wrapped type elements as Mauro has
said.

thanks,
Amila.



 I can change the WSDL to have a default value for optional element, but
 it's
 still a bug that default value setting in the WSDL has no effect at
 runtime,
 e.g.,
  xsd:element name=skipInterval type=xsd:intminOccurs=0
 default=10 /
 does not initialize localSkipInterval to 10 as expected.

 %%
 --
 View this message in context:
 http://www.nabble.com/WSDL2Java-Integer.MIN_VALUE-for-optional-xsd%3Aint-tp15879664p15879664.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Amila Suriarachchi,
WSO2 Inc.


  1   2   3   4   5   6   7   >