XFire

Illegal argument exceptions (object not an instance of declaring class) when calling a xfire web-service from an Axis generated client - wrong Interface.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1
  • Component/s: Spring
  • Labels:
    None
  • Environment:
    Kubuntu Linux 5.10, JDK 1.5.0_06-b05, Sun Application Server 8.2, Spring 1.2, WSDL2Java - Axis
  • Number of attachments :
    0

Description

Hello,
I tried to generate a web-service stub from a WSDL with the help of the wsdl4j - WSDL2Java tool. When calling the web-service in a test case, i get this error
"AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Illegal argument invoking 'com.unisys.at.vab.business.service.provisioning.ProvisioningWebServiceIF.removeVabVcard(java.lang.String, java.lang.String, java.lang.String)': object is not an instance of declaring class
faultActor:
faultNode:
...plus a long detail

The WSDL2Java created an interface called com.unisys.at.vab.business.service.provisioning.ProvisioningWebServicePortType, yet method from the interface com.unisys.at.vab.business.service.provisioning.ProvisioningWebServiceIF is called instead, resulting in the
displayed error. Please, is there any fix or a workaround to this?

Activity

Hide
Dan Diephouse added a comment -

On your server side - does your service class actually implment the interface?

Show
Dan Diephouse added a comment - On your server side - does your service class actually implment the interface?
Hide
Michal Grosos added a comment -

Of course it did not. I do feel ashamed now yet very thankful for quick and helpful reply.
Thanks.

Show
Michal Grosos added a comment - Of course it did not. I do feel ashamed now yet very thankful for quick and helpful reply. Thanks.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: