cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT: Problem returning Comlex Types from Web Services

Former Member
0 Kudos

Hi,

     I have a web service generated out of an Ejb using the WebService wizard in the Netweaver Developer Studio. This WebService returns a complex type: ABC which is well defined as a seriazable class in the EJB Project itself.

   Now this complex type ABC consists of the following

    1. String str

    2. int x

    3. DEF def (note that DEF is again a complex type and is Serializable)

    4. XYZ[] xyzlist (nore that XYZ is again a complex type and is Serializable)

   After the Web Service is published using a Successful Deployment of the ear file

   we try to test it using the web based test interface

     http://localhost:50000/ABCService/Config

     We then give in the input parameters to the Web Service for the SOAP Request.

     When we get the SOAP Response, we do see the str and x i.e. 1 and 2 above.

     But the complex types DEF and XYZ[] are not even mentioned and looks like the webservice completely ignores them.

   pls advise if anyone has faced this problem. This is a very basic issue and would hinder a lot of Web Services development.

.V

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Jake,

I already answered this one in the Web Dynpro forum.

Our Web Services infrastructure does support complex datatypes, however in the Sneak Preview Edition you use it may be a bug that prevents you from using this feature. There may be however other reasons as well, I gave you some hints in the Web Dynpro forum.

Cheers

Ivo

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

cool, I didn't know we already can do this....

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

it doesn't only look like this, this is the case: webservices do not support complex types.

They can't, because the purpose of a web service is to connect different systems which may not be written in Java and therefore cannot support java types.

The number of supported types definitely will grow as the standard evolves, but for the moment you have to live with basic types and String Arrays.

Regards,

Benny