aspose file tools*
The moose likes Web Services and the fly likes Failed to find a suitable binding type for use in marshalling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Failed to find a suitable binding type for use in marshalling" Watch "Failed to find a suitable binding type for use in marshalling" New topic
Author

Failed to find a suitable binding type for use in marshalling

Ravi Dwivedi
Greenhorn

Joined: Dec 02, 2008
Posts: 4
Hi All,

I am calling a WebService by generating the client code from the WSDL, I am able to call some methods of the WebService but while calling one method(i.e pendingAllocation()), I am getting the following error:

com.bea.xml.XmlException : Failed to find suitable binding type for use in marshalling. "(urn:inrm)pendingAllocation". Using java type: dto.AreaCodeInfo schema type.

The AreaCodeInfo implements Serilizable and I am not sure why its giving error while marshalling.
Please let me know how to resolve this issue.

Thanks in advance!!!
Ravi
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1164
Ravi,

Very similar thing but no response.

Happy new year,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
Originally posted by Ravi Dwivedi:
com.bea.xml.XmlException : Failed to find suitable binding type for use in marshalling. "(urn:inrm)pendingAllocation". Using java type: dto.AreaCodeInfo schema type.

Is this the error on the server or the error on the client?
If it is the server's error, then it seems the WSDL does not match the underline implementation code, check that out.


“Everything should be as simple as it is, but not simpler.” Albert Einstein
Ravi Dwivedi
Greenhorn

Joined: Dec 02, 2008
Posts: 4
Is this the error on the server or the error on the client?
If it is the server's error, then it seems the WSDL does not match the underline implementation code, check that out.



The error is on the client side while calling the method i.e. while marshalling the AddressCodeInfo object.
[ December 29, 2008: Message edited by: Ravi Dwivedi ]
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
Sorry for the late reply. I've just been back from holiday. Have you got the issue resolved yet? and what tools did you use to generate the client stubs?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Failed to find a suitable binding type for use in marshalling
 
Similar Threads
how to decide whether to go with socket or web service
a new method is added to the old wsdl file causing issue
Error while marshalling arguments
Webservices in java
Uncaught SyntaxError: Unexpected token < when calling java SOAP webservice