Skip to main content

Fwd: Java .NET interop issue

6 replies [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
thejkm
Offline
Joined: 2009-04-06
Points: 0

Thanks for all support from the team


thej

http://mavilayi.com

thejkm
Offline
Joined: 2009-04-06
Points: 0

Hi,

This issue has been resolved.

Thanks,

Thej K M

http://mavilayi.com

Thej K M

Hi

I have attched new X509 certficate referring to below mail.So now when i try
to authenticate , it always give error "Security context token expired.".

Can any one tell me how can i do the certificate authentication through
METRO?

Thanks ,
Thej

---------- Forwarded message ----------
From: Thej K M
Date: Fri, Aug 7, 2009 at 8:19 PM
Subject: Java .NET interop issue
To: users@metro.dev.java.net

*Hi,*

*I am trying to create a connector for Microsoft SCOM (2007) (System Center
Operational Manager: helps to manage the systems in a network).*

*The wsdl is accessible at server and able to generate stub using JWSDP2.
But when i try to connect application using the generated stub, I am getting
security 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.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:549)
at
com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:288)
at
com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.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.java: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));*

*Since SCOM is developed using .NET code (** use WCF**), and trying to
access webservice using .NET code, when i catch the http request using
fiddler, i can see the request contains SOAP body with securitytoken details
and cipher values. But in java , fiddler http response contain un authorised
token details.*
I am not familiar with Metro. But i had tried generating proxies with JWSDP,
AXIS etc, which gave similar error.

I have attached the wsdl and HttpAnalyser out put for java and .net
request/response.

Could you please tell how can i proceed with metro/suggest a URL which
explain the steps?

--
Thej K M

--
Thej K M

--
Thej K M
[att1.html]
[ConnectorFrameworkNew.wsdl]
[HTTPAnalysertransaction.doc]
[ConnectorFrameworkX509.wsdl]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Attachment not added (content type not allowed): "HTTPAnalysertransaction.doc"

Kumar Jayanti

Hi,

Your Policy has

Metro does not support this token.

Does /Microsoft SCOM (2007) have an option to change its policy ?. If not then i am afraid you have hit a road block. We have generally asked others who faced this issue to change the bootstrap policy for SecureConversation to use mutual certificates or username authentication.

regards,
kumar

/

Thej K M wrote:
>
> Hi
>
> I have attched new X509 certficate referring to below mail.So now when
> i try to authenticate , it always give error "Security context token
> expired.".
>
> Can any one tell me how can i do the certificate authentication
> through METRO?
>
> Thanks ,
> Thej
>
>
>
>
>
> ---------- Forwarded message ----------
> From: *Thej K M*
>
> Date: Fri, Aug 7, 2009 at 8:19 PM
> Subject: Java .NET interop issue
> To: users@metro.dev.java.net
>
>
> /Hi,/
>
> /I am trying to create a connector for Microsoft SCOM (2007) (System
> Center Operational Manager: helps to manage the systems in a network)./
>
> /The wsdl is accessible at server and able to generate stub using
> JWSDP2. But when i try to connect application using the generated
> stub, I am getting security 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.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:549)
> at
> com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:288)
> at
> com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.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.java: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));/
>
> /Since SCOM is developed using .NET code (// use WCF//), and trying to
> access webservice using .NET code, when i catch the http request using
> fiddler, i can see the request contains SOAP body with securitytoken
> details and cipher values. But in java , fiddler http response contain
> un authorised token details./
>
> I am not familiar with Metro. But i had tried generating proxies with
> JWSDP, AXIS etc, which gave similar error.
>
> I have attached the wsdl and HttpAnalyser out put for java and .net
> request/response.
>
> Could you please tell how can i proceed with metro/suggest a URL which
> explain the steps?
>
>
> --
> Thej K M
>
>
>
> --
> Thej K M
>
>
>
> --
> Thej K M
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net

[att1.html]

Thej K M

---------- Forwarded message ----------
From: Thej K M
Date: Fri, Aug 7, 2009 at 8:19 PM
Subject: Java .NET interop issue
To: users@metro.dev.java.net

*Hi,*

*I am trying to create a connector for Microsoft SCOM (2007) (System Center
Operational Manager: helps to manage the systems in a network).*

*The wsdl is accessible at server and able to generate stub using JWSDP2.
But when i try to connect application using the generated stub, I am getting
security 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.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:549)
at
com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:288)
at
com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.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.java: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));*

*Since SCOM is developed using .NET code (** use WCF**), and trying to
access webservice using .NET code, when i catch the http request using
fiddler, i can see the request contains SOAP body with securitytoken details
and cipher values. But in java , fiddler http response contain un authorised
token details.*
I am not familiar with Metro. But i had tried generating proxies with JWSDP,
AXIS etc, which gave similar error.

I have attached the wsdl and HttpAnalyser out put for java and .net
request/response.

Could you please tell how can i proceed with metro/suggest a URL which
explain the steps?

--
Thej K M

--
Thej K M
[att1.html]
[ConnectorFrameworkNew.wsdl]
[HTTPAnalysertransaction.doc]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Attachment not added (content type not allowed): "HTTPAnalysertransaction.doc"

yaronn02
Offline
Joined: 2008-03-15
Points: 0

Unfortunetelly the service uses SPNEGO protocol which AFAIK is not supported in WSIT. Can you ask the server developers to change the policy to something else (e.g. certificates)?

http://webservices20.blogspot.com/
Web Services Security, Interoperability And Testing Blog