I need to use a third party web service written in Java generated using Axis.
I am using .Net Framework 3.5 SP1 and VS 2008.
I made a web link, as we did in .net 2.0, and pointed to the wsdl service.
It worked fine with some service methods, 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 wsdl and defined 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>
Does anyone know what I need to do to solve this problem?
Pedro source share