Re: Axis2 WSDL2Java error during service skeliton/stub generation

2007-11-29 Thread Amila Suriarachchi
On Nov 27, 2007 6:57 PM, Mauro Molinari [EMAIL PROTECTED] wrote:

 Amila Suriarachchi ha scritto:
  First of all now I have fixed the unwrapping problem and you should be
  able to generate the code correctly with a nighly build.

 Hi Amila,
 unfortunately I'm still experiencing problems: this seems not to be
 fixed...

 When you have empty return types, Axis2 doesn't unwrap the output to
 void, even if I specify -uw. Unwrapping of input parameters, instead,
 seems to work fine.


yes this is a known issue. I'll try it.



 I'm attaching a WSDL that shows the problem. There are two methods:
 - aMethod defines a response of an anonymous empty type; Axis2 generates
 a method that returns AMethodResponse, instead of void
 - bMethod defines a response of type EmptyType: Axis2 generates a method
 that returns EmptyType, instead of void

 I tried also with the latest nightly build...

 I also found out that this can actually be a problem, because in order
 to get parameters unwrapped by .NET correctly, it is mandatory to
 specify both request and response messages with a part with name
 parameters. The part may refer to empty types, in order to be
 unwrapped to void by .NET. If you remove the part from the request or
 response message (so that Axis2 correctly generates void), .NET still
 generates void, but does not unwrap the output or input parameters
 respectively.

 For instance, suppose you have:

 wsdl:message name=logoutRequest
   part name=parameters element=txsns:logout /
 /wsdl:message
 wsdl:message name=logoutResponse /

 in .NET this is translated to:
 public void logout(logout logout1) (where type logout is a bean)

 If Axis2 could unwrap empty types correctly, it would not be a problem
 to define something like:

 wsdl:message name=logoutRequest
   part name=parameters element=txsns:logout /
 /wsdl:message
 wsdl:message name=logoutResponse
   part name=parameters element=txsns:logoutResponse /
 /wsdl:message

 with schema:

 xsd:element name=logout
   xsd:complexType
 sequence
   element name=ticket type=xsd:string /
 /sequence
   /xsd:complexType
 /xsd:element
 xsd:element name=logoutResponse
   xsd:complexType/
 /xsd:element

 in order to get:

 public void logout(string ticket) = .NET
 and
 public void logout(String ticket) = Java with Axis2

 Thanks in advance!

 --
 Mauro Molinari
 Software Developer
 [EMAIL PROTECTED]

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




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Axis2 WSDL2Java error during service skeliton/stub generation

2007-11-27 Thread Mauro Molinari

Amila Suriarachchi ha scritto:

First of all now I have fixed the unwrapping problem and you should be
able to generate the code correctly with a nighly build.


Hi Amila,
unfortunately I'm still experiencing problems: this seems not to be fixed...

When you have empty return types, Axis2 doesn't unwrap the output to 
void, even if I specify -uw. Unwrapping of input parameters, instead, 
seems to work fine.


I'm attaching a WSDL that shows the problem. There are two methods:
- aMethod defines a response of an anonymous empty type; Axis2 generates 
a method that returns AMethodResponse, instead of void
- bMethod defines a response of type EmptyType: Axis2 generates a method 
that returns EmptyType, instead of void


I tried also with the latest nightly build...

I also found out that this can actually be a problem, because in order 
to get parameters unwrapped by .NET correctly, it is mandatory to 
specify both request and response messages with a part with name 
parameters. The part may refer to empty types, in order to be 
unwrapped to void by .NET. If you remove the part from the request or 
response message (so that Axis2 correctly generates void), .NET still 
generates void, but does not unwrap the output or input parameters 
respectively.


For instance, suppose you have:

wsdl:message name=logoutRequest
  part name=parameters element=txsns:logout /
/wsdl:message
wsdl:message name=logoutResponse /

in .NET this is translated to:
public void logout(logout logout1) (where type logout is a bean)

If Axis2 could unwrap empty types correctly, it would not be a problem 
to define something like:


wsdl:message name=logoutRequest
  part name=parameters element=txsns:logout /
/wsdl:message
wsdl:message name=logoutResponse
  part name=parameters element=txsns:logoutResponse /
/wsdl:message

with schema:

xsd:element name=logout
  xsd:complexType
sequence
  element name=ticket type=xsd:string /
/sequence
  /xsd:complexType
/xsd:element
xsd:element name=logoutResponse
  xsd:complexType/
/xsd:element

in order to get:

public void logout(string ticket) = .NET
and
public void logout(String ticket) = Java with Axis2

Thanks in advance!

--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]
?xml version=1.0 encoding=UTF-8 standalone=no?
wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns:tns=http://mauro/Prova;
  xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema; name=ProvaService
  targetNamespace=http://mauro/Prova;
  xmlns:txsns=http://mauro/Prova/type;
  wsdl:types
xsd:schema targetNamespace=http://mauro/Prova/type;
  xmlns:txsns=http://mauro/Prova/type;
  xsd:element name=aMethod
xsd:complexType
  xsd:sequence
xsd:element name=a type=xsd:string /
  /xsd:sequence
/xsd:complexType
  /xsd:element

  xsd:element name=aMethodResponse
xsd:complexType /
  /xsd:element

  xsd:complexType name=EmptyType /

  xsd:element name=bMethod
xsd:complexType
  xsd:sequence
xsd:element name=a type=xsd:string /
  /xsd:sequence
/xsd:complexType
  /xsd:element

  xsd:element name=bMethodResponse type=txsns:EmptyType /
/xsd:schema
  /wsdl:types

  wsdl:message name=aMethodRequest
wsdl:part element=txsns:aMethod name=parameters /
  /wsdl:message
  wsdl:message name=aMethodResponse
wsdl:part element=txsns:aMethodResponse name=parameters /
  /wsdl:message
  wsdl:message name=bMethodRequest
wsdl:part name=parameters element=txsns:bMethod/wsdl:part
  /wsdl:message
  wsdl:message name=bMethodResponse
wsdl:part name=parameters element=txsns:bMethodResponse/wsdl:part
  /wsdl:message
  wsdl:portType name=ProvaService
wsdl:operation name=aMethod
  wsdl:input message=tns:aMethodRequest /
  wsdl:output message=tns:aMethodResponse /
/wsdl:operation
wsdl:operation name=bMethod
  wsdl:input message=tns:bMethodRequest/wsdl:input
  wsdl:output message=tns:bMethodResponse/wsdl:output
/wsdl:operation
  /wsdl:portType
  wsdl:binding name=ProvaServiceSOAP type=tns:ProvaService

soap:binding style=document
  transport=http://schemas.xmlsoap.org/soap/http; /
wsdl:operation name=aMethod

  soap:operation soapAction=http://mauro/Prova/aMethod; /
  wsdl:input
soap:body use=literal /
  /wsdl:input
  wsdl:output
soap:body use=literal /
  /wsdl:output
/wsdl:operation

wsdl:operation name=bMethod
  soap:operation soapAction=http://mauro/Prova/bMethod; /

  wsdl:input
soap:body use=literal /
  /wsdl:input
  wsdl:output

soap:body use=literal /
  /wsdl:output
/wsdl:operation
  /wsdl:binding

  wsdl:service name=ProvaService
wsdl:port binding=tns:ProvaServiceSOAP name=ProvaServiceSOAP
  soap:address location=http://www.example.org/; /
/wsdl:port
  /wsdl:service
/wsdl:definitions


Re: Axis2 WSDL2Java error during service skeliton/stub generation

2007-11-12 Thread Mauro Molinari

Amila Suriarachchi ha scritto:
Axis2 unwrapping does not support empty response unwrapping.  if you 
want it to appear void you can remove the whole part  element from the 
message element


i.e
message name=somting
   part name='test' element=test /  -- remove this.
message

Amila.


Hi Amila!
And what about the case where I have a method with no parameters?
If I specify an empty complex type as its message input part (as I think 
I should, when writing WSDL for document/literal wrapped style), 
WSDL2Java generates a method with an only parameter of the wrapping 
type, instead of a method without parameters (I'm using the -uw parameter).

It isn't so elegant...

Please also note that the tip you suggest for avoiding the wrapper as 
the return type, only works if you want to define a real in-only 
operation/method: but if you have something like:


public void someMethod(...) throws Exception

this method cannot be mapped to an in-only operation even if it returns 
void, because of the exception clause, so removing the definition of the 
output message does not really solve the issue...


Is there any good reason for which Axis2 unwrapping feature does not 
actually unwrap empty types message parts?


Thank you in advance.
Cheers.

--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]
___
CARDINIS Solutions SpA
Your Governance Solutions
via San Crispino, 46I-35129 Padova - Italy
tel.(+39) 049.7803370/8072095
fax (+39) 049.7800824
www.cardinis.com

---
Questo messaggio è strettamente riservato ai destinatari specificati.
Se è ricevuto per errore si prega di avvisare il mittente e di cancellarlo
dal proprio sistema.
-
This message is specifically addressed to the recipient(s).
Should you receive it by mistake, please notify the sender and delete it
from your system.

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



Re: Axis2 WSDL2Java error during service skeliton/stub generation

2007-11-05 Thread Amila Suriarachchi
On 11/1/07, Kiran Sriram [EMAIL PROTECTED] wrote:

 Hi Anne,

 If I define void types as complex types then it is generating server
 skeleton/client stubs properly with out any errors.
 but then if you see the method signatures of the methods with void return
 types there is an object by name Set_PortalVariableResponse as return type
 instead of void. That object is not having any properties inside though.
 This is happening even though i use -uw (for unwrapping) as an option for
 Axis2 WSDL2Java tool.


Axis2 unwrapping does not support empty response unwrapping.  if you want it
to appear void you can remove the whole part  element from the message
element

i.e
message name=somting
   part name='test' element=test /  -- remove this.
message

Amila.

Thanks,
 Kiran
 --

  Date: Wed, 31 Oct 2007 21:29:04 -0400
  From: [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Subject: Re: Axis2 WSDL2Java error during service skeliton/stub
 generation
 
  You should define a void like this:
 
  xsd:element name=set_PortalVariableResponse
  xsd:complexType/
  /xsd:element
 
  If you don't define the type, then the element can contain anything.
  This definition specifies that the element contains nothing.
 
  Anne
 
  On 10/31/07, Kiran Sriram [EMAIL PROTECTED] wrote:
  
   Hi Anne,
  
   this basically for void return type of a method. .Net is not having
 any
   problem with that.
  
   but Axis2 WSDL2Java is not generating client or server side code.
  
   Kiran
   
  
Date: Tue, 30 Oct 2007 08:28:03 -0400
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Subject: Re: FW: Axis2 WSDL2Java error during service skeliton/stub
   generation
  
   
What I meant to say is:
   
You have an _element_ defined in the schema:
   
xsd:element name=set_PortalVariableResponse/
   
As the message says, it has no type defined. You need to specify its
schema type.
   
Anne
   
On 10/29/07, Anne Thomas Manes [EMAIL PROTECTED] wrote:
 You have a type defined in the schema:

 xsd:element name=set_PortalVariableResponse/

 As the message says, it has no type defined. You need to specify
 its
 schema type.

 Anne

 On 10/26/07, Kiran Kumar Sriram [EMAIL PROTECTED] wrote:
 
 
  Here is the WSDL file attached with this mail.
 
 
 
  
  From: [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Subject: Axis2 WSDL2Java error during service skeliton/stub
 generation
  Date: Fri, 26 Oct 2007 10:34:30 -0400
 
 
  Hello All
 
  I am getting this error when i try to generate Service Skeleton
 code
   from a
  WSDL file. This is a new service and we are trying to go in WSDL
 first
  approach. We need wsdl to be in Document/literal Wrapped style
 in
   order to
  be interoperable with .Net framework. .Net generated client
 stubs with
   out
  any problem but Axis2 WSDL2Java is giving this exception during
   service
  skeleton and client generation times. This is pretty simple WSDL
 file
   with
  just two methods in it. We are trying to generate skeleton and
 clients
   in
  UNWrapped mode.
 
  C:\Code\Axis14ClientTest\Axis14ClientTest1java.exe
  -Djava.ext.dirs=C:\Softwares
  \axis2-1.3-bin\axis2-1.3\lib; org.apache.axis2.wsdl.WSDL2Java -s
 -ss
   -uw -sd
  -d
  adb -uri PCMConnection.wsdl
  log4j:WARN No appenders could be found for logger
  (org.apache.axis2.description.
  WSDL11ToAllAxisServicesBuilder).
  log4j:WARN Please initialize the log4j system properly.
  Exception in thread main
  org.apache.axis2.wsdl.codegen.CodeGenerationException
  :
   org.apache.axis2.wsdl.codegen.CodeGenerationException:
  Can not determine the s
  chema type for the set_PortalVariableResponse
  at
 
   org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
  ationEngine.java:265)
  at
 
   org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
  at
 
   org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
  Caused by:
 
   org.apache.axis2.wsdl.codegen.CodeGenerationException: Can
  not determ
  ine the schema type for the set_PortalVariableResponse
  at
 
   org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk
 
 
  I have attached WSDL file with this mail. Just to let you know
 .Net is
   fine
  with this WSDL but not Axis2 WSDL2Java tool.
 
  Any help is greatly appreciated.
 
  Thank you,
 
  Kiran
 
 
  
  Peek-a-boo FREE Tricks  Treats for You! Get 'em!
  
  Climb to the top of the charts! Play Star Shuffle: the word
 scramble
  challenge with star power. Play Now

Re: Axis2 WSDL2Java error during service skeliton/stub generation

2007-11-02 Thread Anne Thomas Manes
If you are using wrapped style (which is what happens when you
specify -uw), then your  output message must return an empty wrapper
element (e.g., Set_PortalVariableResponse). This is how it is
supposed to work.

Anne

On 11/1/07, Kiran Sriram [EMAIL PROTECTED] wrote:

 Hi Anne,

  If I define void types as complex types then it is generating server
 skeleton/client stubs properly with out any errors.
  but then if you see the method signatures of the methods with void return
 types there is an object by name Set_PortalVariableResponse as return type
 instead of void. That object is not having any properties inside though.
 This is happening even though i use -uw (for unwrapping) as an option for
 Axis2 WSDL2Java tool.

  Thanks,
  Kiran
  

   Date: Wed, 31 Oct 2007 21:29:04 -0400
  From: [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Subject: Re: Axis2 WSDL2Java error during service skeliton/stub generation

 
  You should define a void like this:
 
  xsd:element name=set_PortalVariableResponse
  xsd:complexType/
  /xsd:element
 
  If you don't define the type, then the element can contain anything.
  This definition specifies that the element contains nothing.
 
  Anne
 
  On 10/31/07, Kiran Sriram [EMAIL PROTECTED] wrote:
  
   Hi Anne,
  
   this basically for void return type of a method. .Net is not having any
   problem with that.
  
   but Axis2 WSDL2Java is not generating client or server side code.
  
   Kiran
   
  
Date: Tue, 30 Oct 2007 08:28:03 -0400
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Subject: Re: FW: Axis2 WSDL2Java error during service skeliton/stub
   generation
  
   
What I meant to say is:
   
You have an _element_ defined in the schema:
   
xsd:element name=set_PortalVariableResponse/
   
As the message says, it has no type defined. You need to specify its
schema type.
   
Anne
   
On 10/29/07, Anne Thomas Manes [EMAIL PROTECTED] wrote:
 You have a type defined in the schema:

 xsd:element name=set_PortalVariableResponse/

 As the message says, it has no type defined. You need to specify its
 schema type.

 Anne

 On 10/26/07, Kiran Kumar Sriram [EMAIL PROTECTED] wrote:
 
 
  Here is the WSDL file attached with this mail.
 
 
 
  
  From: [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Subject: Axis2 WSDL2Java error during service skeliton/stub
 generation
  Date: Fri, 26 Oct 2007 10:34:30 -0400
 
 
  Hello All
 
  I am getting this error when i try to generate Service Skeleton
 code
   from a
  WSDL file. This is a new service and we are trying to go in WSDL
 first
  approach. We need wsdl to be in Document/literal Wrapped style in
   order to
  be interoperable with .Net framework. .Net generated client stubs
 with
   out
  any problem but Axis2 WSDL2Java is giving this exception during
   service
  skeleton and client generation times. This is pretty simple WSDL
 file
   with
  just two methods in it. We are trying to generate skeleton and
 clients
   in
  UNWrapped mode.
 
 
 C:\Code\Axis14ClientTest\Axis14ClientTest1java.exe
  -Djava.ext.dirs=C:\Softwares
  \axis2-1.3-bin\axis2-1.3\lib; org.apache.axis2.wsdl.WSDL2Java -s
 -ss
   -uw -sd
  -d
  adb -uri PCMConnection.wsdl
  log4j:WARN No appenders could be found for logger
  (org.apache.axis2.description.
  WSDL11ToAllAxisServicesBuilder).
  log4j:WARN Please initialize the log4j system properly.
  Exception in thread main
 
 org.apache.axis2.wsdl.codegen.CodeGenerationException
  :
   org.apache.axis2.wsdl.codegen.CodeGenerationException:
  Can not determine the s
  chema type for the set_PortalVariableResponse
  at
 
  
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
  ationEngine.java:265)
  at
 
   org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
  at
 
   org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
  Caused by:
 
   org.apache.axis2.wsdl.codegen.CodeGenerationException:
 Can
  not determ
  ine the schema type for the set_PortalVariableResponse
  at
 
  
 org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk
 
 
  I have attached WSDL file with this mail. Just to let you know
 .Net is
   fine
  with this WSDL but not Axis2 WSDL2Java tool.
 
  Any help is greatly appreciated.
 
  Thank you,
 
  Kiran
 
 
  
  Peek-a-boo FREE Tricks  Treats for You! Get 'em!
  
  Climb to the top of the charts! Play Star Shuffle: the word
 scramble
  challenge with star power. Play Now

RE: Axis2 WSDL2Java error during service skeliton/stub generation

2007-11-01 Thread Kiran Sriram
Hi Anne,
 
If I define void types as complex types then it is generating server 
skeleton/client stubs properly with out any errors.
but then if you see the method signatures of the methods with void return types 
there is an object by name Set_PortalVariableResponse as return type instead 
of void. That object is not having any properties inside though. This is 
happening even though i use -uw (for unwrapping) as an option for Axis2 
WSDL2Java tool.
 
Thanks,
Kiran


 Date: Wed, 31 Oct 2007 21:29:04 -0400 From: [EMAIL PROTECTED] To: 
 axis-user@ws.apache.org Subject: Re: Axis2 WSDL2Java error during service 
 skeliton/stub generation  You should define a void like this:  
 xsd:element name=set_PortalVariableResponse xsd:complexType/ 
 /xsd:element  If you don't define the type, then the element can contain 
 anything. This definition specifies that the element contains nothing.  
 Anne  On 10/31/07, Kiran Sriram [EMAIL PROTECTED] wrote:   Hi Anne, 
   this basically for void return type of a method. .Net is not having any 
  problem with that.   but Axis2 WSDL2Java is not generating client or 
 server side code.   Kiran  
 Date: Tue, 30 Oct 2007 08:28:03 -0400   From: [EMAIL PROTECTED]   To: 
 axis-user@ws.apache.org   Subject: Re: FW: Axis2 WSDL2Java error during 
 service skeliton/stub  generation  What I meant to say is:  
You have an _element_ defined in the schema: xsd:element 
 name=set_PortalVariableResponse/ As the message says, it has no 
 type defined. You need to specify its   schema type. Anne   
   On 10/29/07, Anne Thomas Manes [EMAIL PROTECTED] wrote:You have 
 a type defined in the schema:   xsd:element 
 name=set_PortalVariableResponse/   As the message says, it has 
 no type defined. You need to specify itsschema type.   
 Anne   On 10/26/07, Kiran Kumar Sriram [EMAIL PROTECTED] 
 wrote: Here is the WSDL file attached with this 
 mail.   
From: [EMAIL PROTECTED] To: axis-user@ws.apache.org 
 Subject: Axis2 WSDL2Java error during service skeliton/stub generation
  Date: Fri, 26 Oct 2007 10:34:30 -0400 Hello All 
 I am getting this error when i try to generate Service 
 Skeleton code  from a WSDL file. This is a new service and we are 
 trying to go in WSDL first approach. We need wsdl to be in 
 Document/literal Wrapped style in  order to be interoperable with 
 .Net framework. .Net generated client stubs with  out any problem 
 but Axis2 WSDL2Java is giving this exception during  service 
 skeleton and client generation times. This is pretty simple WSDL file  
 with just two methods in it. We are trying to generate skeleton and 
 clients  in UNWrapped mode. 
 C:\Code\Axis14ClientTest\Axis14ClientTest1java.exe 
 -Djava.ext.dirs=C:\Softwares \axis2-1.3-bin\axis2-1.3\lib; 
 org.apache.axis2.wsdl.WSDL2Java -s -ss  -uw -sd -d adb 
 -uri PCMConnection.wsdl log4j:WARN No appenders could be found for 
 logger (org.apache.axis2.description. 
 WSDL11ToAllAxisServicesBuilder). log4j:WARN Please initialize the 
 log4j system properly. Exception in thread main 
 org.apache.axis2.wsdl.codegen.CodeGenerationException :  
 org.apache.axis2.wsdl.codegen.CodeGenerationException: Can not 
 determine the s chema type for the set_PortalVariableResponse
  at  
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
  ationEngine.java:265) at  
 org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at 
  org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused 
 by:  org.apache.axis2.wsdl.codegen.CodeGenerationException: Can  
not determ ine the schema type for the 
 set_PortalVariableResponse at  
 org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk
  I have attached WSDL file with this mail. Just to let you 
 know .Net is  fine with this WSDL but not Axis2 WSDL2Java tool.  
Any help is greatly appreciated. Thank you, 
 Kiran 
  Peek-a-boo FREE Tricks  Treats for 
 You! Get 'em!  Climb to the 
 top of the charts! Play Star Shuffle: the word scramble challenge 
 with star power. Play Now!  
 -
  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]    
 Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
  today

RE: Axis2 WSDL2Java error during service skeliton/stub generation

2007-10-31 Thread Kiran Sriram
Hi Anne,
 
this basically for void return type of a method. .Net is not having any problem 
with that.
 
but Axis2 WSDL2Java is not generating client or server side code.
 
Kiran


 Date: Tue, 30 Oct 2007 08:28:03 -0400 From: [EMAIL PROTECTED] To: 
 axis-user@ws.apache.org Subject: Re: FW: Axis2 WSDL2Java error during 
 service skeliton/stub generation  What I meant to say is:  You have an 
 _element_ defined in the schema:  xsd:element 
 name=set_PortalVariableResponse/  As the message says, it has no type 
 defined. You need to specify its schema type.  Anne  On 10/29/07, Anne 
 Thomas Manes [EMAIL PROTECTED] wrote:  You have a type defined in the 
 schema:   xsd:element name=set_PortalVariableResponse/   As the 
 message says, it has no type defined. You need to specify its  schema 
 type.   Anne   On 10/26/07, Kiran Kumar Sriram [EMAIL PROTECTED] 
 wrote:   Here is the WSDL file attached with this mail.
     From: [EMAIL PROTECTED]  
  To: axis-user@ws.apache.org   Subject: Axis2 WSDL2Java error during 
 service skeliton/stub generation   Date: Fri, 26 Oct 2007 10:34:30 -0400 
   Hello All I am getting this error when i try to 
 generate Service Skeleton code from a   WSDL file. This is a new service 
 and we are trying to go in WSDL first   approach. We need wsdl to be in 
 Document/literal Wrapped style in order to   be interoperable with .Net 
 framework. .Net generated client stubs with out   any problem but Axis2 
 WSDL2Java is giving this exception during service   skeleton and client 
 generation times. This is pretty simple WSDL file with   just two methods 
 in it. We are trying to generate skeleton and clients in   UNWrapped 
 mode. C:\Code\Axis14ClientTest\Axis14ClientTest1java.exe   
 -Djava.ext.dirs=C:\Softwares   \axis2-1.3-bin\axis2-1.3\lib; 
 org.apache.axis2.wsdl.WSDL2Java -s -ss -uw -sd   -d   adb -uri 
 PCMConnection.wsdl   log4j:WARN No appenders could be found for logger  
  (org.apache.axis2.description.   WSDL11ToAllAxisServicesBuilder).   
 log4j:WARN Please initialize the log4j system properly.   Exception in 
 thread main   org.apache.axis2.wsdl.codegen.CodeGenerationException   
 : org.apache.axis2.wsdl.codegen.CodeGenerationException:   Can not 
 determine the s   chema type for the set_PortalVariableResponse   at  
  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener   
 ationEngine.java:265)   at   
 org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)   at   
 org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)   Caused by:   
 org.apache.axis2.wsdl.codegen.CodeGenerationException: Can   not determ  
  ine the schema type for the set_PortalVariableResponse   at   
 org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk
I have attached WSDL file with this mail. Just to let you know .Net is 
 fine   with this WSDL but not Axis2 WSDL2Java tool. Any help is 
 greatly appreciated. Thank you, Kiran   
    Peek-a-boo FREE Tricks  Treats for 
 You! Get 'em!      Climb to the top of 
 the charts! Play Star Shuffle: the word scramble   challenge with star 
 power. Play Now!   
 -   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] 
_
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline

Re: Axis2 WSDL2Java error during service skeliton/stub generation

2007-10-31 Thread Anne Thomas Manes
You should define a void like this:

xsd:element name=set_PortalVariableResponse
  xsd:complexType/
/xsd:element

If you don't define the type, then the element can contain anything.
This definition specifies that the element contains nothing.

Anne

On 10/31/07, Kiran Sriram [EMAIL PROTECTED] wrote:

 Hi Anne,

  this basically for void return type of a method. .Net is not having any
 problem with that.

  but Axis2 WSDL2Java is not generating client or server side code.

  Kiran
  

   Date: Tue, 30 Oct 2007 08:28:03 -0400
  From: [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Subject: Re: FW: Axis2 WSDL2Java error during service skeliton/stub
 generation

 
  What I meant to say is:
 
  You have an _element_ defined in the schema:
 
  xsd:element name=set_PortalVariableResponse/
 
  As the message says, it has no type defined. You need to specify its
  schema type.
 
  Anne
 
  On 10/29/07, Anne Thomas Manes [EMAIL PROTECTED] wrote:
   You have a type defined in the schema:
  
   xsd:element name=set_PortalVariableResponse/
  
   As the message says, it has no type defined. You need to specify its
   schema type.
  
   Anne
  
   On 10/26/07, Kiran Kumar Sriram [EMAIL PROTECTED] wrote:
   
   
Here is the WSDL file attached with this mail.
   
   
   

From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Subject: Axis2 WSDL2Java error during service skeliton/stub generation
Date: Fri, 26 Oct 2007 10:34:30 -0400
   
   
Hello All
   
I am getting this error when i try to generate Service Skeleton code
 from a
WSDL file. This is a new service and we are trying to go in WSDL first
approach. We need wsdl to be in Document/literal Wrapped style in
 order to
be interoperable with .Net framework. .Net generated client stubs with
 out
any problem but Axis2 WSDL2Java is giving this exception during
 service
skeleton and client generation times. This is pretty simple WSDL file
 with
just two methods in it. We are trying to generate skeleton and clients
 in
UNWrapped mode.
   
C:\Code\Axis14ClientTest\Axis14ClientTest1java.exe
-Djava.ext.dirs=C:\Softwares
\axis2-1.3-bin\axis2-1.3\lib; org.apache.axis2.wsdl.WSDL2Java -s -ss
 -uw -sd
-d
adb -uri PCMConnection.wsdl
log4j:WARN No appenders could be found for logger
(org.apache.axis2.description.
WSDL11ToAllAxisServicesBuilder).
log4j:WARN Please initialize the log4j system properly.
Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException
:
 org.apache.axis2.wsdl.codegen.CodeGenerationException:
Can not determine the s
chema type for the set_PortalVariableResponse
at
   
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:265)
at
   
 org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at
   
 org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by:
   
 org.apache.axis2.wsdl.codegen.CodeGenerationException: Can
not determ
ine the schema type for the set_PortalVariableResponse
at
   
 org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk
   
   
I have attached WSDL file with this mail. Just to let you know .Net is
 fine
with this WSDL but not Axis2 WSDL2Java tool.
   
Any help is greatly appreciated.
   
Thank you,
   
Kiran
   
   

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts! Play Star Shuffle: the word scramble
challenge with star power. Play Now!
   
 -
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]
 


 
 Help yourself to FREE treats served up daily at the Messenger Café. Stop by
 today!

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



Re: FW: Axis2 WSDL2Java error during service skeliton/stub generation

2007-10-30 Thread Anne Thomas Manes
What I meant to say is:

You have an _element_ defined in the schema:

   xsd:element name=set_PortalVariableResponse/

As the message says, it has no type defined. You need to specify its
schema type.

Anne

On 10/29/07, Anne Thomas Manes [EMAIL PROTECTED] wrote:
 You have a type defined in the schema:

 xsd:element name=set_PortalVariableResponse/

 As the message says, it has no type defined. You need to specify its
 schema type.

 Anne

 On 10/26/07, Kiran Kumar Sriram [EMAIL PROTECTED] wrote:
 
 
  Here is the WSDL file attached with this mail.
 
 
 
   
   From: [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Subject: Axis2 WSDL2Java error during service skeliton/stub generation
  Date: Fri, 26 Oct 2007 10:34:30 -0400
 
 
   Hello All
 
  I am getting this error when i try to generate Service Skeleton code from a
  WSDL file. This is a new service and we are trying to go in WSDL first
  approach. We need wsdl to be in Document/literal Wrapped style in order to
  be interoperable with .Net framework. .Net generated client stubs with out
  any problem but Axis2 WSDL2Java is giving this exception during service
  skeleton and client generation times. This is pretty simple WSDL file with
  just two methods in it. We are trying to generate skeleton and clients in
  UNWrapped mode.
 
  C:\Code\Axis14ClientTest\Axis14ClientTest1java.exe
  -Djava.ext.dirs=C:\Softwares
  \axis2-1.3-bin\axis2-1.3\lib; org.apache.axis2.wsdl.WSDL2Java -s -ss -uw -sd
  -d
  adb -uri PCMConnection.wsdl
  log4j:WARN No appenders could be found for logger
  (org.apache.axis2.description.
  WSDL11ToAllAxisServicesBuilder).
  log4j:WARN Please initialize the log4j system properly.
  Exception in thread main
  org.apache.axis2.wsdl.codegen.CodeGenerationException
  : org.apache.axis2.wsdl.codegen.CodeGenerationException:
  Can not determine the s
  chema type for the set_PortalVariableResponse
  at
  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
  ationEngine.java:265)
  at
  org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
  at
  org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
  Caused by:
  org.apache.axis2.wsdl.codegen.CodeGenerationException: Can
  not determ
  ine the schema type for the set_PortalVariableResponse
  at
  org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk
 
 
  I have attached WSDL file with this mail. Just to let you know .Net is fine
  with this WSDL but not Axis2 WSDL2Java tool.
 
  Any help is greatly appreciated.
 
  Thank you,
 
  Kiran
 
 
   
   Peek-a-boo FREE Tricks  Treats for You! Get 'em!
  
  Climb to the top of the charts!  Play Star Shuffle:  the word scramble
  challenge with star power. Play Now!
  -
  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: FW: Axis2 WSDL2Java error during service skeliton/stub generation

2007-10-29 Thread Anne Thomas Manes
You have a type defined in the schema:

xsd:element name=set_PortalVariableResponse/

As the message says, it has no type defined. You need to specify its
schema type.

Anne

On 10/26/07, Kiran Kumar Sriram [EMAIL PROTECTED] wrote:


 Here is the WSDL file attached with this mail.



  
  From: [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Subject: Axis2 WSDL2Java error during service skeliton/stub generation
 Date: Fri, 26 Oct 2007 10:34:30 -0400


  Hello All

 I am getting this error when i try to generate Service Skeleton code from a
 WSDL file. This is a new service and we are trying to go in WSDL first
 approach. We need wsdl to be in Document/literal Wrapped style in order to
 be interoperable with .Net framework. .Net generated client stubs with out
 any problem but Axis2 WSDL2Java is giving this exception during service
 skeleton and client generation times. This is pretty simple WSDL file with
 just two methods in it. We are trying to generate skeleton and clients in
 UNWrapped mode.

 C:\Code\Axis14ClientTest\Axis14ClientTest1java.exe
 -Djava.ext.dirs=C:\Softwares
 \axis2-1.3-bin\axis2-1.3\lib; org.apache.axis2.wsdl.WSDL2Java -s -ss -uw -sd
 -d
 adb -uri PCMConnection.wsdl
 log4j:WARN No appenders could be found for logger
 (org.apache.axis2.description.
 WSDL11ToAllAxisServicesBuilder).
 log4j:WARN Please initialize the log4j system properly.
 Exception in thread main
 org.apache.axis2.wsdl.codegen.CodeGenerationException
 : org.apache.axis2.wsdl.codegen.CodeGenerationException:
 Can not determine the s
 chema type for the set_PortalVariableResponse
 at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
 ationEngine.java:265)
 at
 org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
 at
 org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
 Caused by:
 org.apache.axis2.wsdl.codegen.CodeGenerationException: Can
 not determ
 ine the schema type for the set_PortalVariableResponse
 at
 org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk


 I have attached WSDL file with this mail. Just to let you know .Net is fine
 with this WSDL but not Axis2 WSDL2Java tool.

 Any help is greatly appreciated.

 Thank you,

 Kiran


  
  Peek-a-boo FREE Tricks  Treats for You! Get 'em!
 
 Climb to the top of the charts!  Play Star Shuffle:  the word scramble
 challenge with star power. Play Now!
 -
 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]



Axis2 WSDL2Java error during service skeliton/stub generation

2007-10-26 Thread Kiran Kumar Sriram
Hello All  I am getting this error when i try to generate Service Skeleton code 
from a WSDL file. This is a new service and we are trying to go in WSDL first 
approach. We need wsdl to be in Document/literal Wrapped style in order to be 
interoperable with .Net framework. .Net generated client stubs with out any 
problem but Axis2 WSDL2Java is giving this exception during service skeleton 
and client generation times. This is pretty simple WSDL file with just two 
methods in it. We are trying to generate skeleton and clients in UNWrapped 
mode. C:\Code\Axis14ClientTest\Axis14ClientTest1java.exe 
-Djava.ext.dirs=C:\Softwares\axis2-1.3-bin\axis2-1.3\lib; 
org.apache.axis2.wsdl.WSDL2Java -s -ss -uw -sd -dadb -uri 
PCMConnection.wsdllog4j:WARN No appenders could be found for logger 
(org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).log4j:WARN Please 
initialize the log4j system properly.Exception in thread main 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Can not determine the 
schema type for the set_PortalVariableResponseat 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)at 
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)Caused by: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Can not determine the 
schema type for the set_PortalVariableResponseat 
org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk  I have 
attached WSDL file with this mail. Just to let you know .Net is fine with this 
WSDL but not Axis2 WSDL2Java tool. Any help is greatly appreciated. Thank you, 
Kiran 
_
Peek-a-boo FREE Tricks  Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us

FW: Axis2 WSDL2Java error during service skeliton/stub generation

2007-10-26 Thread Kiran Kumar Sriram
Here is the WSDL file attached with this mail.


From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Axis2 WSDL2Java error during 
service skeliton/stub generationDate: Fri, 26 Oct 2007 10:34:30 -0400


Hello All  I am getting this error when i try to generate Service Skeleton code 
from a WSDL file. This is a new service and we are trying to go in WSDL first 
approach. We need wsdl to be in Document/literal Wrapped style in order to be 
interoperable with .Net framework. .Net generated client stubs with out any 
problem but Axis2 WSDL2Java is giving this exception during service skeleton 
and client generation times. This is pretty simple WSDL file with just two 
methods in it. We are trying to generate skeleton and clients in UNWrapped 
mode. C:\Code\Axis14ClientTest\Axis14ClientTest1java.exe 
-Djava.ext.dirs=C:\Softwares\axis2-1.3-bin\axis2-1.3\lib; 
org.apache.axis2.wsdl.WSDL2Java -s -ss -uw -sd -dadb -uri 
PCMConnection.wsdllog4j:WARN No appenders could be found for logger 
(org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).log4j:WARN Please 
initialize the log4j system properly.Exception in thread main 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Can not determine the 
schema type for the set_PortalVariableResponseat 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)at 
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)Caused by: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Can not determine the 
schema type for the set_PortalVariableResponseat 
org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk  I have 
attached WSDL file with this mail. Just to let you know .Net is fine with this 
WSDL but not Axis2 WSDL2Java tool. Any help is greatly appreciated. Thank you, 
Kiran 

Peek-a-boo FREE Tricks  Treats for You! Get 'em! 
_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

PCMConnection.wsdl
Description: application/xml
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]