Hi,

sorry I forgot to mention that I am using Axis 1.2Rc1

Tino Schöllhorn wrote:
Hi there,

I am fairly new to Axis. But so far everything (exception the following issue) is working fine.

I defined a webservice and made some tests roughly it has the following interface:

class MyService {
    public String getTheString();

    public String[] getTheStringArray();

    public MyType getMyType();

    public MyType[] getMyTypes();
}

So far so good. Now the thing is - that the first 3 methods are working fine. I even can serialize/deserialize an object of type MyType. But now I am stuck an the last method where I want to get an array of MyTypes.

As I understand I should have to register a type mapping or something like that - but I can not find an example or a good explanation how to do that. Perhaps somone has a hint how and where I can get the information.

Thanks a lot
.
With regards
Tino


P.S: Here is the error of axis:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.NullPointerException
 faultActor:
 faultNode:
 faultDetail:
    {http://xml.apache.org/axis/}hostname:genesis

java.lang.NullPointerException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)


at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)

at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1077)

at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:225)


at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)


    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2737)
    at org.apache.axis.client.Call.invoke(Call.java:2720)
    at org.apache.axis.client.Call.invoke(Call.java:2396)
    at org.apache.axis.client.Call.invoke(Call.java:2319)
    at org.apache.axis.client.Call.invoke(Call.java:1776)





Reply via email to