Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Collection Classes, WSAD, and WebServices

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Trying to create some webservice interfaces for methods that take maps as parameters. I think I have the wsdl correct and am guessing that the wizards just dont support collectin types correctly. I get the message

iwab0237w the sample jsp client does not support arrays:item correctly.


If anybody can point me to some examples/tutorials on the web that deal specifically with handling HashMaps or Collections in general in wsdl and JAX RPC particulary in working with them on WSAD and websphere I'd appreciate it. I've found lots of links for complex types and beans but few collection examples beyond arrays. And not a lot on handling untyped (any) objects in the collection.


for referencer here is the wsdl I was using to test a bean that echos back the contents of a map. I couldnt get anythign to work without specifically typing the keys and values as strings, but figured better to start simpled.
<?xml version="1.0" encoding="UTF-8"? >

<wsdl efinitions targetNamespace="http://sample" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://sample" xmlns:intf="http://sample" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<wsdl:types >
<schema elementFormDefault="qualified" targetNamespace="http://sample" xmlns="http://www.w3.org/2001/XMLSchema" >
<element name="sendMap" >
<complexType >
<sequence >
<element name="item" minOccurs="0" maxOccurs="unbounded" >
<complexType >
<sequence >
<element name="key" type="xsd:string"/ >
<element name="value" type="xsd:string"/ >
</sequence >
</complexType >
</element >
</sequence >
</complexType >
</element >
<element name="sendMapResponse" >
<complexType >
<sequence >
<element name="sendMapReturn" type="xsd:string"/ >
</sequence >
</complexType >
</element >
</schema >
</wsdl:types >
<wsdl:message name="sendMapRequest" >
<wsdl art element="intf:sendMap" name="parameters"/ >
</wsdl:message >
<wsdl:message name="sendMapResponse" >
<wsdl art element="intf:sendMapResponse" name="parameters"/ >
</wsdl:message >
<wsdl ortType name="mapPort" >
<wsdl peration name="sendMap" >
<wsdl:input message="intf:sendMapRequest" name="sendMapRequest"/ >
<wsdl utput message="intf:sendMapResponse" name="sendMapResponse"/ >
</wsdl peration >
</wsdl ortType >
<wsdl:binding name="sendMapSoapBinding" type="intf:mapPort" >
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/ >
<wsdl peration name="sendMap" >
<wsdlsoap peration soapAction=""/ >
<wsdl:input name="sendMapRequest" >
<wsdlsoap:body use="literal"/ >
</wsdl:input >
<wsdl utput name="sendMapResponse" >
<wsdlsoap:body use="literal"/ >
</wsdl utput >
</wsdl peration >
</wsdl:binding >
<wsdl:service name="sendMapService" >
<wsdl ort binding="intf:sendMapSoapBinding" name="sendMap" >
<wsdlsoap:address location="http://localhost:9080/map/services/sendMap"/ >
</wsdl ort >
</wsdl:service >
</wsdl efinitions>
[ May 12, 2005: Message edited by: Jeff Gaer ]
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nah.dont think collections work.in neither..soap/rpc or doc/lit..
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic