Author Message
SRiethmueller
Joined: Sep 5, 2019
Messages: 1
Offline
I would like to get some data from the MonitoringWS to an own implemented Webservice. Most of the companies software written with Microsoft .NET technology. The java application sample from the SDK pack, I already installed and it is running. But for the production I would like to implement the web service with .NET too. In my opinion, this should not be a problem, because that's the typical use case for soap webservices between different technologies.

OK, what I already did before:
1. I installed java sample application, call of createSession is successful

The TTrace Console shows me the following lines.

M5825o 11:36:51.776 WSC_SOAP_Trace       WS  <-- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header/><s:Body><createSession xmlns="http://monitoring.wsc.cc.comergo.com"><agentLoginId>xxx</agentLoginId><password>xxx</password><monitoringObserverUrl>xxx/WSCChecker/WSC/MonitoringObserver</monitoringObserverUrl></createSession></s:Body></s:Envelope>

M5826o 11:36:51.776 JACORB_Info Connected to 172.28.3.41:2809 from local port 57247
M5827o 11:36:51.776 JACORB_Info ClientConnectionManager: created new ClientGIOPConnection to 172.28.3.41:53100 (5d818f2)
M5828o 11:36:51.791 JACORB_Info Connected to 172.28.3.41:53100 from local port 57248
M5829o 11:36:51.791 WSC_Base_DB_Data AccessControlFacadeImpl.getAgent:> executing query: SELECT * from GlobalAccount where loginname=xxx
M5855o 11:36:52.057 JACORB_Info Client-side TCP transport to 172.28.3.41:53100 closed.
M5858o 11:36:52.088 TC_General Loading SOAP Message Trace Handler
M5859o 11:36:52.088 WSC_SessionObjects SessionObjectPool:> created Session bd43451c-5c90-4329-9975-0965da5cd82c with remote observer at xxx/WSCChecker/WSC/MonitoringObserver


2. Trying to do it with an WCF Webservice
- Get the WSDL file from the MonitorObserver from the sample application
- Create .cs file from their WSDL file with the tool svcutil
- Deleted automated created ...async Methods
- Binding the .cs file into an WCF Webservice and published it to an IIS
- When I get the WSDL from the WCF Webservice it's similar to the WDSL from java sample application, but not identically (both of them are attached at this post)
- When trying to create a session its failed with the following lines

Y8060m 10:33:59.657 WSC_SOAP_Trace       WS  <-- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header/><s:Body><createSession xmlns="http://monitoring.wsc.cc.comergo.com"><agentLoginId>xxx</agentLoginId><password>xxx</password><monitoringObserverUrl>xxx/MonitorObserver.svc</monitoringObserverUrl></createSession></s:Body></s:Envelope>

Y8061m 10:33:59.657 JACORB_Info Connected to 172.28.3.41:2809 from local port 56017
Y8062m 10:33:59.657 JACORB_Info ClientConnectionManager: created new ClientGIOPConnection to 172.28.3.41:53100 (498bc9c2)
Y8063m 10:33:59.657 JACORB_Info Connected to 172.28.3.41:53100 from local port 56018
Y8078m 10:33:59.657 WSC_Base_DB_Data AccessControlFacadeImpl.getAgent:> executing query: SELECT * from GlobalAccount where loginname=xxx
Y8080m 10:33:59.720 TC_Error Monitoring.createSession():> session creation for Agent xxx failed, check exception (maybe an internal error)
Y8081m 10:33:59.720 TC_Error com.comergo.cc.wsc.base.common.CreationException: service construction algorithm failed --> possible programming problem --> contact product development
at com.comergo.cc.wsc.base.ws.sessions.SessionObjectPool.createSession(Unknown Source)
at com.comergo.cc.wsc.monws.service.JAXWSBridgeImpl.createSession(Unknown Source)
at com.comergo.cc.wsc.monws.MonitoringSOAP.createSession(Unknown Source)
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:250)
at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:149)
at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:88)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1063)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:979)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:950)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:825)
at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:380)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:651)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:264)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.invokeAsync(ServletAdapter.java:218)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:159)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:194)
at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1100)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:687)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedConstructorAccessor266.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
... 42 more
Caused by: javax.xml.ws.WebServiceException: {http://monitoring.wsc.cc.comergo.com}MonitoringObserver is not a valid service. Valid services are: {http://tempuri.org/}MonitorObserver
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:293)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:217)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:199)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:195)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:112)
at javax.xml.ws.Service.<init>(Service.java:77)
at com.comergo.cc.wsc.monitoring.MonitoringObserver_Service.<init>(Unknown Source)
... 45 more


Has anybody implemented an WCF MonitorObserver which is working with Avaya IP Office Contact Center Web Services?

Has somebody an idea what is wrong?

I'm not sure but expected the Avaya IP Office Contact Center Web Services a specific port name and binding name? Because these are not same as the java sample application.

<wsdl:service name="MonitorObserver">

<wsdl:port name="MonitorObserverBinding" binding="tns:MonitorObserverBinding">
<soap:address location="xxx/MonitorObserver.svc"/>
</wsdl:port>
</wsdl:service>


Is there an option to get more details about the error?

Y8080m 10:33:59.720 TC_Error             Monitoring.createSession():> session creation for Agent xxx failed, check exception (maybe an internal error)

Y8081m 10:33:59.720 TC_Error com.comergo.cc.wsc.base.common.CreationException: service construction algorithm failed --> possible programming problem --> contact product development


Why not valid service? What will be proofed?

Caused by: javax.xml.ws.WebServiceException: {http://monitoring.wsc.cc.comergo.com}MonitoringObserver is not a valid service. Valid services are: {http://tempuri.org/}


I hope someone has some advice for me. Alternative I have to switch to Java :(
Filename MonitoringObserver.xml [Disk] Download
Filename MonitorObserver_c.xml [Disk] Download
Go to:   
Mobile view