Re: wsdl2java does not generate class-files for complexTypes

2005-11-21 Thread Christian Schmitz
Anne, thank you for this information. I read a lot about message styles 
and the reasons which one to use. But I didn't have any information 
about the support of other SOAP stacks yet.


Anne Thomas Manes schrieb:

Christian, I recommend that you switch to doc/literal rather than 
rpc/literal. Doc/literal certainly supports multiple methods. Then use 
the noWrapped option. Either that, or define an extra layer of 
wrapping for your response element, e.g.,:



  

  
 
   
 
   
 
   
 
   


...

In general, it's a bad idea to use rpc/literal because a lot of SOAP 
stacks don't support that option (e.g., .NET, SAP, BEA,...).


Anne

On 11/21/05, *Christian Schmitz* 
<[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


Hi Mark,

i generate the sources using the ant-tasks and I set the parameter
"noWrapped=true" when I read about your problem. No result.
I am using rpc/literal because my Service has more than one method. Is
it possible that the message style causes the problem?

Regards,
Christian

Griffin, Mark schrieb:

>Christian,
>Don't know if this will work for you, but I had a similar
problem. Using
>the -W option which turned off wrapped support worked for me. I
was able
>to then generate the classes.  Not completely sure why other than
>something to do with the way axis is interpreting the wsdl.  I
thought
>my wsdl was docliteral wrapped but apparently axis thought otherwise.
>At any rate it worked after the -W option.
>
>markg
>
>-Original Message-
>From: Christian Schmitz [mailto:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>]
>Sent: Monday, November 21, 2005 4:13 AM
    >To: axis-user@ws.apache.org <mailto:axis-user@ws.apache.org>
>Subject: wsdl2java does not generate class-files for complexTypes
>
>
>My WSDL defines the following complexTypes in the types-defintion:
>
>  
>
>  maxOccurs="unbounded" type="transporttypes:ResultLine"/>
>
>  
>  
>
>  maxOccurs="unbounded" type="xsd:decimal" />
>
>  
>
>The complexType SearchResult should be returned by my service
method.
>
>  
>
>  
>...
>transport="http://schemas.xmlsoap.org/soap/http"/
<http://schemas.xmlsoap.org/soap/http%22/>>
>
>  
>
>  
>  
>
>  
>
>
>wsdl2java does not generate the classes SearchResults an
ResultLine. I
>expect that the tool should generate them. Instead of the
expected, it
>generates a 2-dimensional Array as return type of my service method.
>
>public java.math.BigDecimal[][] search(...) throws
>java.rmi.RemoteException;
>
>Is this the correct? Is it possible to configure wsdl2java to
generate
>the classes?
>
>regars,
>Christian
>
>
>





--


Besuchen Sie unsere kostenlose Veranstaltung
"Effizientes Prozess- und IT-Management -
Die Verbindung von ARIS mit IT-Infrastrukturen"
am 24.11.2005 in Köln. Anmeldungen unter
http://www.opitz-consulting.de

OPITZ CONSULTING Gummersbach GmbH
Christian Schmitz -  Dipl.-Wirtschaftsinformatiker (FH)
Kirchstr. 6 - D-51647 Gummersbach
Telefon (Fax): +49 2261 6001-0 (-1139) - Mobil: +49 170 5545138
http://www.opitz-consulting.de





Re: wsdl2java does not generate class-files for complexTypes

2005-11-21 Thread Anne Thomas Manes
Christian, I recommend that you switch to doc/literal rather than
rpc/literal. Doc/literal certainly supports multiple methods. Then use
the noWrapped option. Either that, or define an extra layer of wrapping
for your response element, e.g.,:


  
    
  
 
           
      
   
maxOccurs="unbounded" type="transporttypes:ResultLine"/>
    
 
   
     



    ...

In general, it's a bad idea to use rpc/literal because a lot of SOAP
stacks don't support that option (e.g., .NET, SAP, BEA,...).

AnneOn 11/21/05, Christian Schmitz <[EMAIL PROTECTED]> wrote:
Hi Mark,i generate the sources using the ant-tasks and I set the parameter"noWrapped=true" when I read about your problem. No result.
I am using rpc/literal because my Service has more than one method. Isit possible that the message style causes the problem?Regards,ChristianGriffin, Mark schrieb:>Christian,>Don't know if this will work for you, but I had a similar problem. Using
>the -W option which turned off wrapped support worked for me. I was able>to then generate the classes.  Not completely sure why other than>something to do with the way axis is interpreting the wsdl.  I thought
>my wsdl was docliteral wrapped but apparently axis thought otherwise.>At any rate it worked after the -W option.>>markg>>-Original Message->From: Christian Schmitz [mailto:
[EMAIL PROTECTED]]>Sent: Monday, November 21, 2005 4:13 AM>To: axis-user@ws.apache.org
>Subject: wsdl2java does not generate class-files for complexTypes>>>My WSDL defines the following complexTypes in the types-defintion:>>  
>>  >maxOccurs="unbounded" type="transporttypes:ResultLine"/>
>>  >  >>  >maxOccurs="unbounded" type="xsd:decimal" />>>  >>The complexType SearchResult should be returned by my service method.
>>  >>  >...>>transport="http://schemas.xmlsoap.org/soap/http"/>>>  
>>  >  >>  >
>>wsdl2java does not generate the classes SearchResults an ResultLine. I>expect that the tool should generate them. Instead of the expected, it>generates a 2-dimensional Array as return type of my service method.
>>public java.math.BigDecimal[][] search(...) throws>java.rmi.RemoteException;>>Is this the correct? Is it possible to configure wsdl2java to generate>the classes?>>regars,
>Christian>>>


Re: wsdl2java does not generate class-files for complexTypes

2005-11-21 Thread Dies Koper

Hi Christian,

try the --wrapArrays (-w) option. It works for both doc/literal and 
rpc/literal bindings. Setting it causes Axis to generate wrapper classes 
for arrays, as required by the JAX-RPC1.1 spec.


Regards,
Dies


Christian Schmitz wrote:

Hi Mark,

i generate the sources using the ant-tasks and I set the parameter 
"noWrapped=true" when I read about your problem. No result.
I am using rpc/literal because my Service has more than one method. Is 
it possible that the message style causes the problem?


Regards,
Christian

Griffin, Mark schrieb:


Christian,
Don't know if this will work for you, but I had a similar problem. Using
the -W option which turned off wrapped support worked for me. I was able
to then generate the classes.  Not completely sure why other than
something to do with the way axis is interpreting the wsdl.  I thought
my wsdl was docliteral wrapped but apparently axis thought otherwise.
At any rate it worked after the -W option.

markg

-Original Message-
From: Christian Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 21, 2005 4:13 AM

To: axis-user@ws.apache.org
Subject: wsdl2java does not generate class-files for complexTypes


My WSDL defines the following complexTypes in the types-defintion:

 
   
 maxOccurs="unbounded" type="transporttypes:ResultLine"/>
   name="ResultLine">

   
 maxOccurs="unbounded" type="xsd:decimal" />

The complexType SearchResult should be returned by my service method.


 
   
 
...
   transport="http://schemas.xmlsoap.org/soap/http"/>

   
 
   
 
 
   
 
   

wsdl2java does not generate the classes SearchResults an ResultLine. I 
expect that the tool should generate them. Instead of the expected, it 
generates a 2-dimensional Array as return type of my service method.


public java.math.BigDecimal[][] search(...) throws
java.rmi.RemoteException;

Is this the correct? Is it possible to configure wsdl2java to generate 
the classes?


regars,
Christian

 








Re: wsdl2java does not generate class-files for complexTypes

2005-11-21 Thread Christian Schmitz

Hi Mark,

i generate the sources using the ant-tasks and I set the parameter 
"noWrapped=true" when I read about your problem. No result.
I am using rpc/literal because my Service has more than one method. Is 
it possible that the message style causes the problem?


Regards,
Christian

Griffin, Mark schrieb:


Christian,
Don't know if this will work for you, but I had a similar problem. Using
the -W option which turned off wrapped support worked for me. I was able
to then generate the classes.  Not completely sure why other than
something to do with the way axis is interpreting the wsdl.  I thought
my wsdl was docliteral wrapped but apparently axis thought otherwise.
At any rate it worked after the -W option.

markg

-Original Message-
From: Christian Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 21, 2005 4:13 AM

To: axis-user@ws.apache.org
Subject: wsdl2java does not generate class-files for complexTypes


My WSDL defines the following complexTypes in the types-defintion:

 
   
 maxOccurs="unbounded" type="transporttypes:ResultLine"/>

  
 

   
 maxOccurs="unbounded" type="xsd:decimal" />

 


The complexType SearchResult should be returned by my service method.

 
   
 
...
   transport="http://schemas.xmlsoap.org/soap/http"/>

   
 
   
 
 
   
 
   

wsdl2java does not generate the classes SearchResults an ResultLine. I 
expect that the tool should generate them. Instead of the expected, it 
generates a 2-dimensional Array as return type of my service method.


public java.math.BigDecimal[][] search(...) throws
java.rmi.RemoteException;

Is this the correct? Is it possible to configure wsdl2java to generate 
the classes?


regars,
Christian

 





RE: wsdl2java does not generate class-files for complexTypes

2005-11-21 Thread Griffin, Mark
Christian,
Don't know if this will work for you, but I had a similar problem. Using
the -W option which turned off wrapped support worked for me. I was able
to then generate the classes.  Not completely sure why other than
something to do with the way axis is interpreting the wsdl.  I thought
my wsdl was docliteral wrapped but apparently axis thought otherwise.
At any rate it worked after the -W option.

markg

-Original Message-
From: Christian Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 21, 2005 4:13 AM
To: axis-user@ws.apache.org
Subject: wsdl2java does not generate class-files for complexTypes


My WSDL defines the following complexTypes in the types-defintion:

  

  
 
   
  

  
 
  

The complexType SearchResult should be returned by my service method.

  

  
...
http://schemas.xmlsoap.org/soap/http"/>

  

  
  

  


wsdl2java does not generate the classes SearchResults an ResultLine. I 
expect that the tool should generate them. Instead of the expected, it 
generates a 2-dimensional Array as return type of my service method.

public java.math.BigDecimal[][] search(...) throws
java.rmi.RemoteException;

Is this the correct? Is it possible to configure wsdl2java to generate 
the classes?

regars,
Christian



wsdl2java does not generate class-files for complexTypes

2005-11-21 Thread Christian Schmitz

My WSDL defines the following complexTypes in the types-defintion:

 
   
 maxOccurs="unbounded" type="transporttypes:ResultLine"/>

  
 

   
 maxOccurs="unbounded" type="xsd:decimal" />

 


The complexType SearchResult should be returned by my service method.

 
   
 
...
   transport="http://schemas.xmlsoap.org/soap/http"/>

   
 
   
 
 
   
 
   

wsdl2java does not generate the classes SearchResults an ResultLine. I 
expect that the tool should generate them. Instead of the expected, it 
generates a 2-dimensional Array as return type of my service method.


public java.math.BigDecimal[][] search(...) throws java.rmi.RemoteException;

Is this the correct? Is it possible to configure wsdl2java to generate 
the classes?


regars,
Christian