users@jax-rpc.java.net

Re: Return an array of objects

From: trebor iksrazal <iksrazal_at_yahoo.com>
Date: Thu, 8 Sep 2005 06:05:50 -0700 (PDT)

I'm afraid I can't help with literal. My style is:

<soap:binding
transport="http://schemas.xmlsoap.org/soap/http"
style="rpc"/>

I'm still a bit dated and haven't got around to
literal yet.

You could try posting your <message> and <operation>
tags - it maybe just a typo.

Lastly, you may try wsdl2java from apache - its more
strict and has caught errors in my wsdl that wscompile
did not.

iksrazal

--- Mariano Garcia <mgarcia_at_entel.es> wrote:

> Well,
>
> Some problems were founded and solved, but I have
> some problems yet :S.
> I think the problem is the generation of the wrapper
> classes from my
> messages.
>
> I'm using a rpc/literal model, so each message part
> should be mapped to
> a Java type, but it is not. These are the classes I
> get when I use
> wscompile:
>
> * SCIBWebServiceService (service)
> * SCIBWebService (service interface)
> * SCIBWebService_Impl (service interface impl)
> * SCIBWebService_getAlarms_ResponseStruct (wrapper
> class generated for
> getAlarms response)
> * SCIBWebService_getAlarms_RequestStruct (wrapper
> class generated for
> getAlarms request)
>
> The problem is the interface generated returns a
> SOAPElement object, and
> it should return a
> SCIBWebService_getAlarms_ResponseStruct class. Do
> you
> know why?
>
> I have read this in an ibm article:
>
> "In the case of literal mapping, each message part
> is mapped to a Java
> type, [...]. If no such mapping exists, the message
> part is represented
> using a javax.xml.soap.SOAPElement Java class. An
> example for this
> mapping is a complex type containing attributes.
> Since no standard
> mapping is defined for attributes, this complex type
> is represented as a
> SOAPElement."
>
> But all the complext types are mapped. Am I
> forgetting something?
>
> My types:
>
> <complexType name="ArrayOfAlarm">
> <complexContent>
> <restriction base="soap-enc:Array">
> <attribute ref="soap-enc:arrayType"
> wsdl:arrayType="impl:Alarm[]"/>
> </restriction>
> </complexContent>
> </complexType>
>
> <complexType name="Alarm">
> <sequence>
> <element name="id" type="xsd:int"/>
> <element name="str" type="xsd:string"/>
> </sequence>
> </complexType>
>
> <complexType name="getAlarmsResponse">
> <complexContent>
> <sequence>
> <element name="alarmList"
> type="impl:ArrayOfAlarm"/>
> </sequence>
> </complexContent>
> </complexType>
>
>
>
> Mariano García González :: Analista Programador
> -----------------------------------------------
>
> Entel IT Consulting, SA
> Tlf. 91 567 07 36
> Mobile. 619 08 70 90
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail:
> users-help_at_jax-rpc.dev.java.net
>
>


"None are more hopelessly enslaved than those who falsely believe they are free. -- Goethe"


        
                
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/