Forgot to say: the client is using CXF 2.2.5.
Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br 2009/12/4 Walter Mourão <[email protected]> > Hi folks, > I've got the following exception when executing a remote method (XFire > 1.2.5 based server) : > > Exception in thread "main" java.lang.AbstractMethodError: > org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object; > at org.apache.cxf.staxutils.StaxUtils.addLocation(StaxUtils.java:941) > at org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:799) > at > org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868) > at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755) > at > org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:217) > at > org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:161) > at > org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:67) > at org.apache.cxf.endpoint.ClientImpl.<init>(ClientImpl.java:148) > at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:253) > at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:231) > at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:224) > at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:159) > at com.wim.ita.testemaven.App.testeTestaIPFromFCHT(App.java:75) > at com.wim.ita.testemaven.App.main(App.java:116) > > The invocation code: > > final JaxWsDynamicClientFactory dcf = > JaxWsDynamicClientFactory.newInstance(); > final Client client = dcf.createClient(new URL(" > http://localhost:8080/ioserver-1.0/services/MMAService?wsdl")); > results = client.invoke("ListarBacias", (Object[]) null); > > The WSDL is attached (and pasted after the message). > > Could you please help me ? > > Thanks in advance, > > Walter Mourão > http://waltermourao.com.br > http://arcadian.com.br > http://oriens.com.br > > > WSDS: > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions targetNamespace=" > http://service.webserver.exemplo.ita.br/" xmlns:soapenc12=" > http://www.w3.org/2003/05/soap-encoding" xmlns:tns=" > http://service.webserver.exemplo.ita.br/" xmlns:wsdl=" > http://schemas.xmlsoap.org/wsdl/" xmlns:xsd=" > http://www.w3.org/2001/XMLSchema" xmlns:soap11=" > http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdlsoap=" > http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc11=" > http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12=" > http://www.w3.org/2003/05/soap-envelope"> > <wsdl:types> > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" > attributeFormDefault="qualified" elementFormDefault="qualified" > targetNamespace="http://service.webserver.exemplo.ita.br/"> > <xsd:element name="CriarBacia"> > <xsd:complexType> > <xsd:sequence> > <xsd:element maxOccurs="1" minOccurs="1" name="nome" nillable="true" > type="xsd:string"/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > <xsd:element name="CriarBaciaResponse"> > <xsd:complexType> > <xsd:sequence> > <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" > type="xsd:string"/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > <xsd:element name="ListarBacias"> > <xsd:complexType/> > </xsd:element> > <xsd:element name="ListarBaciasResponse"> > <xsd:complexType> > <xsd:sequence> > <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" > type="xsd:string"/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > </xsd:schema> > </wsdl:types> > <wsdl:message name="CriarBaciaResponse"> > <wsdl:part name="parameters" element="tns:CriarBaciaResponse"> > </wsdl:part> > </wsdl:message> > <wsdl:message name="ListarBaciasResponse"> > <wsdl:part name="parameters" element="tns:ListarBaciasResponse"> > </wsdl:part> > </wsdl:message> > <wsdl:message name="ListarBaciasRequest"> > <wsdl:part name="parameters" element="tns:ListarBacias"> > </wsdl:part> > </wsdl:message> > <wsdl:message name="CriarBaciaRequest"> > <wsdl:part name="parameters" element="tns:CriarBacia"> > </wsdl:part> > </wsdl:message> > <wsdl:portType name="MMAServicePortType"> > <wsdl:operation name="CriarBacia"> > <wsdl:input name="CriarBaciaRequest" message="tns:CriarBaciaRequest"> > </wsdl:input> > <wsdl:output name="CriarBaciaResponse" > message="tns:CriarBaciaResponse"> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="ListarBacias"> > <wsdl:input name="ListarBaciasRequest" > message="tns:ListarBaciasRequest"> > </wsdl:input> > <wsdl:output name="ListarBaciasResponse" > message="tns:ListarBaciasResponse"> > </wsdl:output> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="MMAServiceHttpBinding" type="tns:MMAServicePortType"> > <wsdlsoap:binding style="document" transport=" > http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="CriarBacia"> > <wsdlsoap:operation soapAction=""/> > <wsdl:input name="CriarBaciaRequest"> > <wsdlsoap:body use="literal"/> > </wsdl:input> > <wsdl:output name="CriarBaciaResponse"> > <wsdlsoap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="ListarBacias"> > <wsdlsoap:operation soapAction=""/> > <wsdl:input name="ListarBaciasRequest"> > <wsdlsoap:body use="literal"/> > </wsdl:input> > <wsdl:output name="ListarBaciasResponse"> > <wsdlsoap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="MMAService"> > <wsdl:port name="MMAServiceHttpPort" > binding="tns:MMAServiceHttpBinding"> > <wsdlsoap:address location=" > http://localhost:8080/ioserver-1.0/services/MMAService"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> >
