permaculture playing cards
The moose likes Web Services and the fly likes problem when invoking an operation using axis 1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "problem when invoking an operation using axis 1.4" Watch "problem when invoking an operation using axis 1.4" New topic

problem when invoking an operation using axis 1.4

Rafa Barcel� Bauz�

Joined: Aug 09, 2006
Posts: 22
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>
I agree. Here's the link:
subject: problem when invoking an operation using axis 1.4
It's not a secret anymore!