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("Url?wsdl"),new QName("","ConnectorFrameworkDataAccess"));
IConnectorFramework port = (IConnectorFramework)connectorFrameworkDataAccess. getPort(IConnectorFramework.class);
connectorInfo.setName(objectFactory.createConnecto rInfoName("Test OMCF"));
String connectionResult = port.setup(ObjectFactory.createConnectorInfo(conne ctorInfo));

Thanks for any help,
Thej