Hi, I have to consume a Web Service that is written in Java by a 3rd party, generated with Axis I guess.
I'm using .Net Framework 3.5 SP1 and VS 2008.
I've made a Web Reference, as we used to make in .net 2.0, and pointed it to the wsdl of the service.
It worked perfectly with some methods of the service, but when I try to call a Method that takes an int as a parameter, the following exception is thrown:
JAXRPCTIE01: caught exception while handling request:
unexpected element type:
expected={http://schemas.xmlsoap.org/soap/encoding/}int,
actual={http://www.w3.org/2001/XMLSchema}int
I checked the wsdl and it defines five different Xml Schema Namespaces:
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="urn:servicos/wsdlservicosgmp2"
xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns3="urn:servicos/typesservicosgmp2"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
name="servicosgmp2"
targetNamespace="urn:servicos/wsdlservicosgmp2">
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:servicos/typesservicosgmp2"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="urn:servicos/typesservicosgmp2">
And the definition of the problematic method:
<message name="IWsServicosGMP2_buscaConvenio">
<part name="Integer_1" type="ns2:int" />
<part name="Integer_2" type="ns2:int" />
</message>
Anyone has a clue of what I have to do to solve this problem?