You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Walter Mourão <wa...@gmail.com> on 2009/12/04 12:55:55 UTC
Exception in Soap Dynamic Client
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>
Re: Exception in Soap Dynamic Client
Posted by Walter Mourão <wa...@gmail.com>.
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 <wa...@gmail.com>
> 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>
>
Re: Exception in Soap Dynamic Client
Posted by Walter Mourão <wa...@gmail.com>.
Thank you,
results = client.invoke("ListarBacias");
works fine :-)
Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br
2009/12/4 Daniel Kulp <dk...@apache.org>
>
> This is probably due to:
>
> results = client.invoke("ListarBacias", (Object[]) null);
>
> What does the ListarBacias operations input message look like?
>
> The probably should be:
>
> results = client.invoke("ListarBacias", new Object[0]);
>
> or:
>
> results = client.invoke("ListarBacias");
>
>
> Dan
>
>
>
>
>
>
> On Fri December 4 2009 10:52:06 am Walter Mourão wrote:
> > I removed the Xerces dependency and now I've got:
> >
> > Exception in thread "main" java.lang.RuntimeException:
> > java.lang.NullPointerException
> > at com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:28)
> > at com.wim.ita.testemaven.App.main(App.java:116)
> > Caused by: java.lang.NullPointerException
> > at java.util.Arrays$ArrayList.<init>(Arrays.java:3369)
> > at java.util.Arrays.asList(Arrays.java:3355)
> > at
> >
> org.apache.cxf.message.MessageContentsList.<init>(MessageContentsList.java:
> > 36) at
> > org.apache.cxf.endpoint.ClientImpl.setParameters(ClientImpl.java:592) at
> > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:454) at
> > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:309) at
> > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:261) at
> > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:281) at
> > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:267) at
> > com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:26)
> >
> > Hints ?
> >
> > Walter Mourão
> > http://waltermourao.com.br
> > http://arcadian.com.br
> > http://oriens.com.br
> >
> >
> >
> > 2009/12/4 Daniel Kulp <dk...@apache.org>
> >
> > > This is due to an old version of Xerces found on the classpath. Check
> > > the xerces jars and such to make sure they are recent. (or remove them
> > > entirely
> > > and use the parsers built into the JDK).
> > >
> > > Dan
> > >
> > > On Fri December 4 2009 6:55:55 am Walter Mourão wrote:
> > > > 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/l
> > >an
> > >
> > > > g/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
> > >:2
> > >
> > > > 17) at
> > >
> > >
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:
> > >16
> > >
> > > > 1) at
> > >
> > >
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:6
> > >7)
> > >
> > > > at org.apache.cxf.endpoint.ClientImpl.<init>(ClientImpl.java:148)
> > > > at
> > >
> > >
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
> > >Cl
> > >
> > > > ientFactory.java:253) at
> > >
> > >
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
> > >Cl
> > >
> > > > ientFactory.java:231) at
> > >
> > >
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
> > >Cl
> > >
> > > > ientFactory.java:224) at
> > >
> > >
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
> > >Cl
> > >
> > > > ientFactory.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>
> > >
> > > --
> > > Daniel Kulp
> > > dkulp@apache.org
> > > http://www.dankulp.com/blog
> >
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
>
Re: Exception in Soap Dynamic Client
Posted by Daniel Kulp <dk...@apache.org>.
This is probably due to:
results = client.invoke("ListarBacias", (Object[]) null);
What does the ListarBacias operations input message look like?
The probably should be:
results = client.invoke("ListarBacias", new Object[0]);
or:
results = client.invoke("ListarBacias");
Dan
On Fri December 4 2009 10:52:06 am Walter Mourão wrote:
> I removed the Xerces dependency and now I've got:
>
> Exception in thread "main" java.lang.RuntimeException:
> java.lang.NullPointerException
> at com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:28)
> at com.wim.ita.testemaven.App.main(App.java:116)
> Caused by: java.lang.NullPointerException
> at java.util.Arrays$ArrayList.<init>(Arrays.java:3369)
> at java.util.Arrays.asList(Arrays.java:3355)
> at
> org.apache.cxf.message.MessageContentsList.<init>(MessageContentsList.java:
> 36) at
> org.apache.cxf.endpoint.ClientImpl.setParameters(ClientImpl.java:592) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:454) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:309) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:261) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:281) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:267) at
> com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:26)
>
> Hints ?
>
> Walter Mourão
> http://waltermourao.com.br
> http://arcadian.com.br
> http://oriens.com.br
>
>
>
> 2009/12/4 Daniel Kulp <dk...@apache.org>
>
> > This is due to an old version of Xerces found on the classpath. Check
> > the xerces jars and such to make sure they are recent. (or remove them
> > entirely
> > and use the parsers built into the JDK).
> >
> > Dan
> >
> > On Fri December 4 2009 6:55:55 am Walter Mourão wrote:
> > > 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/l
> >an
> >
> > > g/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
> >:2
> >
> > > 17) at
> >
> > org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:
> >16
> >
> > > 1) at
> >
> > org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:6
> >7)
> >
> > > at org.apache.cxf.endpoint.ClientImpl.<init>(ClientImpl.java:148)
> > > at
> >
> > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
> >Cl
> >
> > > ientFactory.java:253) at
> >
> > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
> >Cl
> >
> > > ientFactory.java:231) at
> >
> > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
> >Cl
> >
> > > ientFactory.java:224) at
> >
> > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
> >Cl
> >
> > > ientFactory.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>
> >
> > --
> > Daniel Kulp
> > dkulp@apache.org
> > http://www.dankulp.com/blog
>
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog
Re: Exception in Soap Dynamic Client
Posted by Walter Mourão <wa...@gmail.com>.
I removed the Xerces dependency and now I've got:
Exception in thread "main" java.lang.RuntimeException:
java.lang.NullPointerException
at com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:28)
at com.wim.ita.testemaven.App.main(App.java:116)
Caused by: java.lang.NullPointerException
at java.util.Arrays$ArrayList.<init>(Arrays.java:3369)
at java.util.Arrays.asList(Arrays.java:3355)
at
org.apache.cxf.message.MessageContentsList.<init>(MessageContentsList.java:36)
at org.apache.cxf.endpoint.ClientImpl.setParameters(ClientImpl.java:592)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:454)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:309)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:261)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:281)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:267)
at com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:26)
Hints ?
Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br
2009/12/4 Daniel Kulp <dk...@apache.org>
>
> This is due to an old version of Xerces found on the classpath. Check the
> xerces jars and such to make sure they are recent. (or remove them
> entirely
> and use the parsers built into the JDK).
>
> Dan
>
>
> On Fri December 4 2009 6:55:55 am Walter Mourão wrote:
> > 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/lan
> > g/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:2
> > 17) at
> >
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:16
> > 1) 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(DynamicCl
> > ientFactory.java:253) at
> >
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
> > ientFactory.java:231) at
> >
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
> > ientFactory.java:224) at
> >
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
> > ientFactory.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>
> >
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
>
Re: Exception in Soap Dynamic Client
Posted by Daniel Kulp <dk...@apache.org>.
This is due to an old version of Xerces found on the classpath. Check the
xerces jars and such to make sure they are recent. (or remove them entirely
and use the parsers built into the JDK).
Dan
On Fri December 4 2009 6:55:55 am Walter Mourão wrote:
> 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/lan
> g/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:2
> 17) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:16
> 1) 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(DynamicCl
> ientFactory.java:253) at
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
> ientFactory.java:231) at
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
> ientFactory.java:224) at
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
> ientFactory.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>
>
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog