Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Help Implementing Subscriber for Event Notification Service in Java (2 Comments)

$
0
0

Topic by Isaiah Inuwa

Content

Hello,

I am trying to implement a Subscriber SOAP endpoint for the Oracle Service Cloud Event Notification Service, but I am having trouble generating code for the service from the WSDL provided at https://{site_interface}/services/soap/connect/soap?wsdl=event. I run into these errors:
 

wsimport -keep -J'-Djavax.xml.accessExternalSchema=all' -B'-XautoNameResolution' https://{site_interface}.custhelp.com/services/soap/connect/soap?wsdl=event

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 828 of https://{site_interface}/services/soap/connect/soap?xsd=objects

[ERROR] (Related to above error) This is the other declaration.
  line 819 of https://{site_interface}/services/soap/connect/soap?xsd=objects

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 837 of https://{site_interface}/services/soap/connect/soap?xsd=objects

[ERROR] (Related to above error) This is the other declaration.
  line 823 of https://{site_interface}/services/soap/connect/soap?xsd=objects

Exception in thread "main" com.sun.tools.internal.ws.wscompile.AbortException
        at com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:129)
        at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2283)
        at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:183)
        at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
        at com.sun.tools.internal.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:429)
        at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:190)
        at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:168)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:159)
        at com.sun.tools.internal.ws.WsImport.main(WsImport.java:42)

 

If I comment out the extra "MailboxIncomingEmailSettings" and "MailboxOutgoingEmailSettings" elements (they are already included as elements in the "Mailbox" element just declared just before), I am able to compile the code. But this seems like a hack; is there anyone who has gotten any further than this?

 

Thanks for the help!

Version

Service Cloud

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles