Guest User

Untitled

a guest
Aug 29th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.67 KB | None | 0 0
  1. GroovyWS request nor any of its super class is known to this context
  2. AdminService.SHCredentials creds = new AdminService.SHCredentials();
  3. creds.Username = "Admin";
  4. creds.Password = "123";
  5.  
  6. AdminService.GetAccountDetailsRequest req = new AdminService.GetAccountDetailsRequest();
  7. req.Username = "user";
  8.  
  9. AdminService.GetAccountDetailsResponse res = new AdminService.GetAccountDetailsResponse();
  10.  
  11. res = admin.GetAccountDetails(creds, req);
  12.  
  13. proxy = new WSClient(wsdlUrl, this.class.classLoader, SoapVersion.SOAP_1_2)
  14. proxy.initialize()
  15.  
  16. def credentials = proxy.create("com.acme.developer.schemas._2_6.SHCredentials")
  17. credentials.username = "Admin"
  18. credentials.password = "123"
  19.  
  20. def req = proxy.create("com.acme.developer.schemas._2_6.GetAccountDetailsRequest")
  21. req.username = "user"
  22.  
  23. def res = proxy.create("com.acme.developer.schemas._2_6.GetAccountDetailsResponse")
  24.  
  25. res = proxy.GetAccountDetails(credentials, req)
  26.  
  27. Jun 1, 2011 2:21:09 PM groovyx.net.ws.AbstractCXFWSClient getBindingOperationInfo
  28. WARNING: Using SOAP version: 1.2
  29. Jun 1, 2011 2:21:09 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
  30. INFO: Interceptor has thrown exception, unwinding now Marshalling Error: class com.acme.developer.schemas._2_6.GetAccountDetailsRequest nor any of its super class is known to this context.
  31. Jun 1, 2011 2:21:09 PM groovyx.net.ws.AbstractCXFWSClient invokeMethod
  32. SEVERE: Could not invoke method.
  33. org.apache.cxf.interceptor.Fault: Marshalling Error: class com.acme.developer.schemas._2_6.GetAccountDetailsRequest nor any of its super class is known to this context.
  34. at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:159)
  35. at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:169)
  36. at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleHeaderPart(SoapOutInterceptor.java:227)
  37. at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.writeSoapEnvelopeStart(SoapOutInterceptor.java:155)
  38. at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessage(SoapOutInterceptor.java:80)
  39. at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessage(SoapOutInterceptor.java:61)
  40. at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:226)
  41. at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:469)
  42. at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)
  43. at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)
  44. at groovyx.net.ws.AbstractCXFWSClient.invokeMethod(AbstractCXFWSClient.java:93)
  45. at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
  46. at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  47. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  48. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
  49. at com.acme.soap.client.SoapClient2.getUsers(CopyOfSoapClient.groovy:38)
  50. at com.acme.soap.client.SoapClient2$getUsers.call(Unknown Source)
  51. at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  52. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  53. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
  54. at com.acme.rest.testcases.positive_path.ContactsAdd.test(ContactsAdd.groovy:38)
  55. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  56. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  57. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  58. at java.lang.reflect.Method.invoke(Method.java:597)
  59. at junit.framework.TestCase.runTest(TestCase.java:164)
  60. at junit.framework.TestCase.runBare(TestCase.java:130)
  61. at junit.framework.TestResult$1.protect(TestResult.java:106)
  62. at junit.framework.TestResult.runProtected(TestResult.java:124)
  63. at junit.framework.TestResult.run(TestResult.java:109)
  64. at junit.framework.TestCase.run(TestCase.java:120)
  65. at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
  66. at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  67. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
  68. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
  69. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
  70. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
  71. Caused by: javax.xml.bind.MarshalException
  72. - with linked exception:
  73. [javax.xml.bind.JAXBException: class com.acme.developer.schemas._2_6.GetAccountDetailsRequest nor any of its super class is known to this context.]
  74. at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:318)
  75. at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:172)
  76. at org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java:439)
  77. at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:138)
  78. ... 36 more
  79. Caused by: javax.xml.bind.JAXBException: class com.acme.developer.schemas._2_6.GetAccountDetailsRequest nor any of its super class is known to this context.
  80. at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:246)
  81. at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:261)
  82. at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:653)
  83. at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:149)
  84. at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:157)
  85. at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:189)
  86. at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:316)
  87. at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:323)
  88. at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:72)
  89. at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:494)
  90. at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:315)
  91. ... 39 more
  92. Caused by: javax.xml.bind.JAXBException: class com.acme.developer.schemas._2_6.GetAccountDetailsRequest nor any of its super class is known to this context.
  93. at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:594)
  94. at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:648)
  95. ... 47 more
Add Comment
Please, Sign In to add comment