This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Problem passing a primitive array to a webservice operation using WSAD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem passing a primitive array to a webservice operation using WSAD" Watch "Problem passing a primitive array to a webservice operation using WSAD" New topic
Author

Problem passing a primitive array to a webservice operation using WSAD

Vidya Ram
Ranch Hand

Joined: Apr 22, 2003
Posts: 62
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.
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
try using the axis web service runtime environment to deploy the web service instead of default websphere web service runtime environment


RR Kumaran
SCJP 1.4
Vidya Ram
Ranch Hand

Joined: Apr 22, 2003
Posts: 62
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem passing a primitive array to a webservice operation using WSAD
 
Similar Threads
Webservice deployment failed
Problem passing a primitive array to a webservice operation using WSAD
soap fault return empty <detail> element.
Review the WS Code
How to generate a correct WSDL for a service with overloaded methods ?