locked
SCOM OMCF Web Service Proxy Creation RRS feed

  • Question

  • I am referring to the below SCOM documentation to create a OMCF web service proxy.

    https://msdn.microsoft.com/en-us/library/hh328977(d=printer).aspx

    When I execute a command :

    Svcutil /language:c# /config:app.config http://localhost:6272/ConnectorFramework?svc

    --> Replaced localhost with the actual IP address where my SCOM is installed

    I get below WS- MetaDataexchange error message. I made sure the data access service is up and running in windows services.

    Can anybody suggest what could be the issue here? Firewall or the port I am accessing is wrong or do I need to configure any service for this to work?


    Error: Cannot obtain Metadata from http://10.50.1.153:6272/ConnectorFramework?svc

    If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified addr
    ess.  For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.


    WS-Metadata Exchange Error
        URI: http://10.50.1.153:6272/ConnectorFramework?svc

        Metadata contains a reference that cannot be resolved: 'http://10.50.1.153:6272/ConnectorFramework?svc'.

        Could not connect to http://10.50.1.153:6272/ConnectorFramework?svc. TCP error code 10061: No connection could be made because the target machine actively r
    efused it 10.50.1.153:6272.

        Unable to connect to the remote server

        No connection could be made because the target machine actively refused it 10.50.1.153:6272


    HTTP GET Error
        URI: http://10.50.1.153:6272/ConnectorFramework?svc

        There was an error downloading 'http://10.50.1.153:6272/ConnectorFramework?svc'.

        Unable to connect to the remote server

        No connection could be made because the target machine actively refused it 10.50.1.153:6272

    If you would like more help, type "svcutil /?"

    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>
    Wednesday, April 27, 2016 8:36 PM

Answers

  • I find this link helpful http://support.microsoft.com/kb/957562 solving my problem

    I updated the file C:\Program Files\System Center 2012\OperationsManager\Server\Microsoft.Mom.Sdk.ServiceHost.exe

    <appSettings>
    <!-- use appSetting to configure base address provided by host -->
    <add key="baseAddressMcfV3" value="http://11.11.1.111:51905/ConnectorFramework" />
        </appSettings>

    I replaced the locahost with the actual IP address where my SCOM is installed.

    Then run below command as administrator on command prompt

    Svcutil /language:c# /config:app.config http://10.50.1.153:51905/ConnectorFramework?wsdl

    • Marked as answer by KadamSwati Wednesday, April 27, 2016 11:51 PM
    • Unmarked as answer by KadamSwati Thursday, April 28, 2016 4:35 PM
    • Proposed as answer by Yan Li_ Monday, May 9, 2016 7:52 AM
    • Marked as answer by Yan Li_ Friday, May 13, 2016 6:14 AM
    Wednesday, April 27, 2016 11:51 PM

All replies

  • I followed below link:

    https://support.microsoft.com/en-us/kb/957562

    and now I created a service and can access a WSDL on 

    http://localhost:51905/ConnectorFramework?wsdl
    After executing below command to create a proxy I receive below error messages.

    Any suggestions on how to resolve it are welcome.

    svcutil.exe http://localhost:51905/ConnectorFramework?wsdl



    WS-Metadata Exchange Error
        URI: http://10.50.1.153:51905/ConnectorFramework?wsdl

        Metadata contains a reference that cannot be resolved: 'http://10.50.1.153:51905/ConnectorFramework?wsdl'.

        <?xml version="1.0" encoding="utf-16"?><Fault xmlns="http://www.w3.org/2003/05/soap-envelope"><Code><Value>Sender</Value><Subcode><Value xmlns:a="http://sch
    emas.xmlsoap.org/ws/2005/02/sc">a:BadContextToken</Value></Subcode></Code><Reason><Text xml:lang="en-US">The message could not be processed. This is most likely
     because the action 'http://schemas.xmlsoap.org/ws/2004/09/transfer/Get' is incorrect or because the message contains an invalid or expired security context tok
    en or because there is a mismatch between bindings. The security context token would be invalid if the service aborted the channel due to inactivity. To prevent
     the service from aborting idle sessions prematurely increase the Receive timeout on the service endpoint's binding.</Text></Reason></Fault>


    HTTP GET Error
        URI: http://10.50.1.153:51905/ConnectorFramework?wsdl

        The document was understood, but it could not be processed.
      - The WSDL document contains links that could not be resolved.
      - There was an error downloading 'http://localhost:51905/ConnectorFramework?wsdl=wsdl0'.
      - Unable to connect to the remote server
      - No connection could be made because the target machine actively refused it 127.0.0.1:51905

    If you would like more help, type "svcutil /?"


    Wednesday, April 27, 2016 9:26 PM
  • I find this link helpful http://support.microsoft.com/kb/957562 solving my problem

    I updated the file C:\Program Files\System Center 2012\OperationsManager\Server\Microsoft.Mom.Sdk.ServiceHost.exe

    <appSettings>
    <!-- use appSetting to configure base address provided by host -->
    <add key="baseAddressMcfV3" value="http://11.11.1.111:51905/ConnectorFramework" />
        </appSettings>

    I replaced the locahost with the actual IP address where my SCOM is installed.

    Then run below command as administrator on command prompt

    Svcutil /language:c# /config:app.config http://10.50.1.153:51905/ConnectorFramework?wsdl

    • Marked as answer by KadamSwati Wednesday, April 27, 2016 11:51 PM
    • Unmarked as answer by KadamSwati Thursday, April 28, 2016 4:35 PM
    • Proposed as answer by Yan Li_ Monday, May 9, 2016 7:52 AM
    • Marked as answer by Yan Li_ Friday, May 13, 2016 6:14 AM
    Wednesday, April 27, 2016 11:51 PM
  • Yes.. above answer works perfectly fine for me.If anybody need they might try it.

    Thank you..

    Tuesday, May 10, 2016 9:35 PM