You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Subhrajyoti Moitra <su...@contata.co.in> on 2003/05/08 08:00:02 UTC
java.util.List problem????
Hi,
I have a java class (prototype given below)
import java.util.List;
public class Arbit{
public List doSomething(String p1){
.......................
......................
//doing something here and returning the list.
}
}
This class has been deployed in axis with deploy.wsdd. No errors so far.
Now i try to access the service through a browser.
http://localhost/axis/services/ArbitService?wsdl
it gives me the below error.
/*********************************************************************************************/
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - ; nested exception is:
WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://www.w3.org/2002/12/soap-encoding'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://www.w3.org/2002/12/soap-encoding'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.:
faultActor:
faultNode:
faultDetail:
/*************************************************************/Now what????What am i missing???I read the axis doc and saw that u can have your own custom type. But its for bean style objects. What about this java.util.List.Any pointers would be very helpful.Thanks and regards,Subhro.