You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Soyer, Muhammed A." <MS...@MICROS.COM> on 2009/06/25 19:54:25 UTC
Error while using the axis client
Hi,
I am trying to call a web service that was written using some Oracle Framework. I am using axis 1.4.1 with ADB binding and Java 1.4
When I call the service from my client I am getting below exception message from the other side
<?xml version = '1.0' encoding = 'UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>No Deserializer found to deserialize a 'CcVaultPort:VaultId' using encoding style 'null'. [java.lang.IllegalArgumentException]</faultstring>
<faultactor>/Operajserv/CcVault/MHotelVaultApp</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
And the request message is as below
<?xml version = '1.0' encoding = 'UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns1:processCcMsg xmlns:ns1="CcVaultPort">
<VaultId>1</VaultId>
<VendorUrl/>
<Action>GetCC</Action>
<Originator>oo</Originator>
<Request>rr</Request>
</ns1:processCcMsg>
</soapenv:Body>
</soapenv:Envelope>
When we call the same service with a C# client that sends a request as below and it works. How can we achieve the same with axis?
<?xml version = '1.0' encoding = 'UTF-8'?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="CcVault" xmlns:ns1="http://ccVault/CcVault.xsd">
<env:Body>
<ns0:processCcMsg env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<VaultId xsi:type="xsd:string">1</VaultId>
<VendorUrl xsi:type="xsd:string"/>
<Action xsi:type="xsd:string">GetID</Action>
<Originator xsi:type="xsd:string>oo</Originator>
<Request xsi:type="xsd:string">rr</Request>
</ns0:processCcMsg>
</env:Body>
</env:Envelope>