Skip to Content
author's profile photo
Former Member

URGENT: Problem returning Comlex Types from Web Services

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Nov 21, 2003 at 04:47 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Nov 21, 2003 at 05:59 PM

    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

    Add comment
    10|10000 characters needed characters exceeded