• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem passing a primitive array to a webservice operation using WSAD

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following simple class which I was trying to deploy as a webservice using WSAD 5.1.2 (IBM Websphere 5 web service runtime)

package com.ws.evaluate.simple
public class SimpleService {
public int primitiveArrays( int[] id ){
return id[0];

}
I get the following exception:

java.lang.Exception: WSWS3034E: Error: The OperationDesc for primitiveArrays was not matched to a method of com.ws.evaluate.simple.SimpleService. Debug:name:
services/SimpleService
style: rpc
use: literal
implClass: class com.ws.evaluate.simple.SimpleService
defaultNS: null
endpointURL: null
OperationDesc[0]:
name: primitiveArrays
returnQName: primitiveArraysReturn
returnType: {http://www.w3.org/2001/XMLSchema}int
returnClass: null
elementQName:{http://simple.evaluate.ws.com}primitiveArrays
soapAction: null
style: rpc
use: literal
numInParams: 1
method:null
ParameterDesc[0]:
name: id
typeEntry: null
mode: IN
isReturn: false
typeQName: {http://simple.evaluate.ws.com}ArrayOf_xsd_int
javaType: class com.ws.evaluate.simple.ArrayOf_Xsd_Int
inHeader: false
outHeader: false
minOccursIs0:false
maxOccursIs1:true

at com.ibm.ws.webservices.engine.InternalException.(InternalException.java:124)
... 29 more


Its generating the ArrayOf_Xsd_Int.java ,its serializer/deserializer and helper classes properly.

Can anybody help me solve this problem?

Thanks,
Vidya.
 
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try using the axis web service runtime environment to deploy the web service instead of default websphere web service runtime environment
 
Vidya Ram
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, I had tried it with Axis runtime and it was working fine. I wanted to make it work with IBM Websphere runtime itself.

Thanks,
Vidya.
 
reply
    Bookmark Topic Watch Topic
  • New Topic