On 100805 13:16 , Alexander Blotny wrote:
> Hi,
>
> I am exporting a Java interface as Web Service using the binding.ws tag.
> In the interface a method has a List as input parameter. This parameter is
> declared in the automatically generated wsdl as anyType:
>
> <xs:element name=" getSMSReminderForNextCalendarTelcoEventEntry">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="arg0" nillable="true" type="xs:string"/>
> <xs:element minOccurs="0" name="arg1" nillable="true" type="xs:anyType"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
> The problem is now that I cannot invoke this service with a list.
> Using SOAP UI I can run this method in this way:
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:mas="http://mashup.service.see.xposer.ngni.fokus.fhg.de/">
> <soapenv:Header/>
> <soapenv:Body>
> <mas:getSMSReminderForNextCalendarTelcoEventEntry>
> <arg0>test</arg0>
> <arg1>Test</arg1>
> </mas:getSMSReminderForNextCalendarTelcoEventEntry>
> </soapenv:Body>
> </soapenv:Envelope>
>
> Now the list gets ³Test² as first entry but there is no way to set a second
> entry.
> Is there a possibility to deliver a list in that request?
>
> The interface of the service:
>
> @Remotable public interface MashupService { SMSBean
> getSMSReminderForNextCalendarTelcoEventEntry(String user, List<String>
> emails);
>
> }
>
> greetings,
> Alex
>
Hi!
Are you able to exchange the List<String> to an array of String-s (that
is String[] )?
I am not familiar with Axis, but I recall that using Java collection
types does not work well in connection to web services in Metro, for
instance.
Best wishes!
Ivan