This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem when invoking an operation using axis 1.4  RSS feed

Rafa Barcel� Bauz�
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks:
Can someone help me.
I have this Exception when executing this piece of code:

***org.xml.sax.SAXException: No deserializer for {}string***

It's possible the problem is the java.util.Map (params) that is passed in the invoke method???

private void executeCalculoTasa(int codigoTramite) throws Exception {
Map params = new HashMap();
params.put("DATAINICI", "2007-01-03");
params.put("DATAFINAL", "2007-12-31");
params.put("SUPERFICIE", "89");

Call call = (Call) new Service().createCall();
call.setTargetEndpointAddress(new URL(""));
call.setOperationName(new QName("DadesTramit", "calcTaxa"));

BigDecimal response = (BigDecimal) call.invoke(new Object[]{new Integer(codigoTramite),params});

System.out.println("response=" + response);

This is the wsdl user for:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl efinitions targetNamespace="http://tramit.admonline.model" xmlns:apachesoap="" xmlns:impl="http://tramit.admonline.model" xmlns:intf="http://tramit.admonline.model" xmlns:wsdl="" xmlns:wsdlsoap="" xmlns:xsd="">
<!--WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)-->
<schema elementFormDefault="qualified" targetNamespace="http://tramit.admonline.model" xmlns="">
<import namespace=""/>
<element name="calcTaxa">
<element name="kTramit" type="xsd:int"/>

<element name="param" type="apachesoap:Map"/>
<element name="calcTaxaResponse">
<element name="calcTaxaReturn" type="xsd ecimal"/>

<schema elementFormDefault="qualified" targetNamespace="" xmlns="">
<complexType name="mapItem">
<element name="key" nillable="true" type="xsd:anyType"/>
<element name="value" nillable="true" type="xsd:anyType"/>

<complexType name="Map">
<element maxOccurs="unbounded" minOccurs="0" name="item" type="apachesoap:mapItem"/>

<wsdl:message name="calcTaxaResponse">

<wsdl art element="impl:calcTaxaResponse" name="parameters"/>


<wsdl:message name="calcTaxaRequest">

<wsdl art element="impl:calcTaxa" name="parameters"/>


<wsdl ortType name="DadesTramit">

<wsdl peration name="calcTaxa">

<wsdl:input message="impl:calcTaxaRequest" name="calcTaxaRequest"/>

<wsdl utput message="impl:calcTaxaResponse" name="calcTaxaResponse"/>

</wsdl peration>

</wsdl ortType>

<wsdl:binding name="DadesTramitSoapBinding" type="impl adesTramit">

<wsdlsoap:binding style="document" transport=""/>

<wsdl peration name="calcTaxa">

<wsdlsoap peration soapAction=""/>

<wsdl:input name="calcTaxaRequest">

<wsdlsoap:body use="literal"/>


<wsdl utput name="calcTaxaResponse">

<wsdlsoap:body use="literal"/>

</wsdl utput>

</wsdl peration>


<wsdl:service name="DadesTramitService">

<wsdl ort binding="impl adesTramitSoapBinding" name="DadesTramit">

<wsdlsoap:address location=""/>

</wsdl ort>


</wsdl efinitions>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!