Issue Details (XML | Word | Printable)

Key: XFIRE-418
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Michal Grosos
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
XFire

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

Created: 24/May/06 08:30 AM   Updated: 25/May/06 04:27 AM
Component/s: Spring
Affects Version/s: 1.1
Fix Version/s: 1.1

Time Tracking:
Not Specified

Environment: Kubuntu Linux 5.10, JDK 1.5.0_06-b05, Sun Application Server 8.2, Spring 1.2, WSDL2Java - Axis


 Description  « Hide
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?



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Diephouse added a comment - 24/May/06 08:46 AM
On your server side - does your service class actually implment the interface?

Michal Grosos added a comment - 25/May/06 04:27 AM
Of course it did not. I do feel ashamed now yet very thankful for quick and helpful reply.
Thanks.