Probem: Faced the following issues while creating web services proxy in JDeveloper.
Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "https://blabla/TaxService.asmx?WSDL": A class/interface with the same name "acb.web.ArrayOfTaxControl" is already in use. Use a class customization to resolve this conflict.(Relevant to above error) another "ArrayOfTaxControl" is generated from here.Two declarations cause a collision in the ObjectFactory class.(Related to above error) This is the other declaration.
Solution: Do not to enter anything in "Package name" and "Root Package for Generated Types" fields at "Specify Default Mapping Options" screen.
Reason: Apparatently, when you put the package names, JDeveloper is trying to create objects with the same name in the same location (given by "Root Package for Generated Types" field value).
Problem: oracle.j2ee.ws.wsdl.LocalizedWSDLException: WSDLException: faultCode=PARSER_ERROR: Failed to read wsdl file at: "file:/C:/projects/workspace/BlaBlaWebServices/Model/src/https/blabla/TaxService.wsdl", caused by: java.io.UTFDataFormatException. : java.io.UTFDataFormatException: Invalid UTF8 encoding.
Solution: Remove "Copy WSDL Into Project" option.
Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "https://blabla/TaxService.asmx?WSDL": A class/interface with the same name "acb.web.ArrayOfTaxControl" is already in use. Use a class customization to resolve this conflict.(Relevant to above error) another "ArrayOfTaxControl" is generated from here.Two declarations cause a collision in the ObjectFactory class.(Related to above error) This is the other declaration.
Solution: Do not to enter anything in "Package name" and "Root Package for Generated Types" fields at "Specify Default Mapping Options" screen.
Reason: Apparatently, when you put the package names, JDeveloper is trying to create objects with the same name in the same location (given by "Root Package for Generated Types" field value).
Problem: oracle.j2ee.ws.wsdl.LocalizedWSDLException: WSDLException: faultCode=PARSER_ERROR: Failed to read wsdl file at: "file:/C:/projects/workspace/BlaBlaWebServices/Model/src/https/blabla/TaxService.wsdl", caused by: java.io.UTFDataFormatException. : java.io.UTFDataFormatException: Invalid UTF8 encoding.
Solution: Remove "Copy WSDL Into Project" option.
Thank you! Really usable.
ReplyDeleteIn my case, I was typing the package names for those two fields.
But once I didn't typed anything, it was created successfully and the Proxy Assistant itself created the packages names.
Thanks!!
Thank you! Helpfull article.
ReplyDeleteThank You! Very Useful article.
ReplyDelete