The Artima Developer Community
Sponsored Link

Web Services Forum
Java interface as an Axis Web Service

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Yariel Ramos Moreno

Posts: 1
Nickname: yramosm
Registered: Jun, 2005

Java interface as an Axis Web Service Posted: Jun 6, 2005 9:49 AM
Reply to this message Reply
Advertisement
Hi averybody:

I'm developping an application containning a web service using Axis 1.2 with Tomcat 5.5.7. I had design a Java interface for the WS and create mi deploy.wsdd file for it using Message-style.

Everithing goes right in deployment process, but when i try too use de WS from a client, i get de following error:

Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.InstantiationException: chatService.IChatServer
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname: visit18 (este el nombre de esta máquina)

java.lang.InstantiationException: chatService.IChatServer (esto es lo que da problema)
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
.java:260 )
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
java:169)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri
alization ContextImpl.java:1015)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXPar
ser.java: 585)
at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespa
ceBinder. java:898)
at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBind
er.java:6 44)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
XMLDocume ntFragmentScannerImpl.java:1008)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatche r.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocument FragmentScannerImpl.java:329)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
tionConte xtImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at samples.message.TestChatMsg.doit(TestChatMsg.java:64)
at samples.message.TestChatMsg.main(TestChatMsg.java:86)

The code of my interface is this:

public interface IChatServer {
public void connect(SOAPEnvelope req, SOAPEnvelope resp);
public void disconnect(SOAPEnvelope req, SOAPEnvelope resp);
public void publishMessage(SOAPEnvelope req, SOAPEnvelope resp);
public void retrieveMessages(SOAPEnvelope req, SOAPEnvelope resp);
public void retrieveUsers(SOAPEnvelope req, SOAPEnvelope resp);
}

Can anybody tell me what's happening here...

Thanks.

Topic: NetApp Filer Help Previous Topic   Next Topic Topic: How can I automatically build wsdl files with SOAP?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use