Hi,
I am trying to create a connector for Microsoft SCOM(2007) . The wsdl is accessible at server and able to generate stub using JWSDP. But When i try to connect using the generated stub, I am getting an error,
Error..The security context token is expired or is not valid. The message was not processed.
javax.xml.ws.soap.SOAPFaultException: The security context token is expired or is not valid. The message was not processed.
at com.sun.xml.ws.encoding.soap.ClientEncoderDecoder. toMessageInfo(ClientEncoderDecoder.java:80)
at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder .toMessageInfo(SOAPXMLDecoder.java:200)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDis patcher.receive(SOAPMessageDispatcher.java:549)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDis patcher.doSend(SOAPMessageDispatcher.java:288)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDis patcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase .send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler. implementSEIMethod(EndpointIFInvocationHandler.jav a:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler. invoke(EndpointIFInvocationHandler.java:105)
at $Proxy27.setup(Unknown Source)
at Test.OmcfProxy.main(OmcfProxy.java:238)
below is the code part:
ConnectorFrameworkDataAccess connectorFrameworkDataAccess = new ConnectorFrameworkDataAccess(new URL("http://a3a-mspoctst1:51905/ConnectorFramework?wsdl"),new QName("http://tempuri.org/","ConnectorFrameworkDataAccess")); IConnectorFramework port = (IConnectorFramework)connectorFrameworkDataAccess.getPort(IConnectorFramework.class); connectorInfo.setName(objectFactory.createConnectorInfoName("Test OMCF")); String connectionResult = port.setup(ObjectFactory.createConnectorInfo(connectorInfo));
Thanks for any help,
Thej