Advertisement
Guest User

Untitled

a guest
Apr 14th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. [ERROR] A class/interface with the same name
  2. "com.microsoft.schemas.crm._2007.webservices.RetrieveResponse" is already in use. Use a class customization to resolve this conflict.
  3. line 979 of file://src/main/webapp/WEB-INF/classes/META-INF/wsdl/CrmServiceWsdl.wsdl
  4.  
  5. [ERROR] (Relevant to above error) another "RetrieveResponse" is generated from here.
  6. line 12274 of file://src/main/webapp/WEB-INF/classes/META-INF/wsdl/CrmServiceWsdl.wsdl
  7.  
  8. <s:element name="RetrieveResponse">
  9. <s:complexType>
  10. <s:sequence>
  11. <s:element name="RetrieveResult" type="s3:BusinessEntity" />
  12. </s:sequence>
  13. </s:complexType>
  14. </s:element>
  15.  
  16. <s:complexType name="RetrieveResponse">
  17. <s:complexContent mixed="false">
  18. <s:extension base="tns:Response">
  19. <s:sequence>
  20. <s:element ref="s3:BusinessEntity" />
  21. </s:sequence>
  22. </s:extension>
  23. </s:complexContent>
  24. </s:complexType>
  25.  
  26. <bindings node="//xsd:complexType[@name='RetrieveResponse']">
  27. <jaxb:class name="RetrieveResponseType"/>
  28. </bindings>
  29.  
  30. @XmlAccessorType(XmlAccessType.FIELD)
  31. @XmlType(name = "", propOrder = {
  32. "response"
  33. })
  34. @XmlRootElement(name = "ExecuteResponse")
  35. public class ExecuteResponse {
  36.  
  37. @XmlElement(name = "Response")
  38. protected MetadataServiceResponse response;
  39. etc...
  40.  
  41. @XmlAccessorType(XmlAccessType.FIELD)
  42. @XmlType(name = "", propOrder = {
  43. "response"
  44. })
  45. @XmlRootElement(name = "ExecuteResponse")
  46. public class ExecuteResponse {
  47.  
  48. @XmlElement(name = "Response", required = true)
  49. protected ResponseType response;
  50. etc...
  51.  
  52. Two classes have the same XML type name "{http://schemas.microsoft.com/crm/2007/CoreTypes}CrmAuthenticationToken". Use @XmlType.name and @XmlType.namespace to assign different names to them.
  53. this problem is related to the following location:
  54. at com.microsoft.schemas.crm._2007.coretypes.CrmAuthenticationToken
  55. at public com.microsoft.schemas.crm._2007.coretypes.CrmAuthenticationToken *prefix*.com.microsoft.schemas.crm._2007.coretypes.ObjectFactory.createCrmAuthenticationToken()
  56. at *prefix*.com.microsoft.schemas.crm._2007.coretypes.ObjectFactory
  57. this problem is related to the following location:
  58. at *prefix*.com.microsoft.schemas.crm._2007.coretypes.CrmAuthenticationToken
  59. at public javax.xml.bind.JAXBElement *prefix*.com.microsoft.schemas.crm._2007.webservices.ObjectFactory.createCrmAuthenticationToken(*prefix*.com.microsoft.schemas.crm._2007.coretypes.CrmAuthenticationToken)
  60. at *prefix*.com.microsoft.schemas.crm._2007.webservices.ObjectFactory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement