Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

return type in web service

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to expose one of my methods that return a vector as a webservice.
When I do it from IBM Websphere studio, I am able to create a proxy and call the proxy from my jsp. It works fine.
But when I try to call the webservice from a vbscript thro a soapclient object, it gives me error saying that
The schema definition with targetnamespace of http://xml.apache.org/xml-soap for soapmapper vector could not be found
Please help me on this.
Thanks in advance,
Raji.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I expect thats because VBscript doesn't know about Vectors. Seems to me you need to return something that VBscript knows about - maybe an array of strings?
Bill
 
Raji Ram
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bill. But I still have a qn.
So, Does that mean that the server applicatio should return different data types for different client?
I thought the soap handles them internally.
Please advise.
Thanks,
Raji.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SOAP only encodes simple things like Strings and integers in a totally standard way across all platforms. The only way to handle complex types in a totally portable way is to use "literal" XML. This is the problem with RPC and SOAP-encoded Web Services.
What I've done successfully is to
(a) Start with WSDL that's reverse-engineered from a Java class
(b) Modify the WSDL to make it document-style with literal encoding and make sure that the complex types are fully encoded in the XML schema part of the WSDL.
(c) Generate a server-side implementation template from the WSDL (WebSphere studio will do this).
Kyle
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For the data types that all SOAP toolkits are supposed to understand, read the standards at the w3c web site. Go to www.w3.org and browse around.
 
Raji Ram
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bill,Kyle.
But Please help me understand this. When it says,
"The schema definition with targetnamespace of http://xml.apache.org/xml-soap for soapmapper vector could not be found "
does that mean there is a schema in the http site? When I try to invoke this from my browser, it gives me Page not found error.
So does that mean that the schema link is missing and once I put the right link, this would work??
Please reply.
-Raji.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic