Skip to Content
avatar image
Former Member

Problem to connect to Entrprises Services using .net

Hello,

I've got one problem.

In our company we are in plan to migrate our sap server to an ecc 6 version.

Before migrating we have to test if the webservices system is a good way for us to work with our own written programs.

I've downloaded and installed the SAP enterprise services explorer for microsoft .NET.

I've read the document ["Introducing SAP Enyterprise services explorer for microsoft.NET"|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0319dc4-d76d-2a10-d19f-e4f4ff315bde] and followed the steps as mentionned into the document.

I used the server specified in the document http://sr.esworkplace.sap.com/ServicesRegistrySiService/ServicesRegistrySiPort) with user sruser and password eswork123 but i always had this message when trying to connect and get the webservices list.

"Cannot connect to the Services Registry. Make sure the URL and/or proxy values are validu201D

I've tried it with a direct link without proxy or firewall.

My configuration;

xp professionnal sp3

visual studio .net 2008

Sap Enterprise Services Explorer 1.1 for Microsoft.net

Does anyone had the same problem?

Does anyone know another public server where i can test this component?

(the migration is planned in May 2009 and whe have more than 20 programs to rewrite...)

Thank you for your answers

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

9 Answers

  • Dec 03, 2008 at 10:41 AM

    Hello,

    Open Internet Explorer browser and navigate to following url:

    [http://sr.esworkplace.sap.com/sr|http://sr.esworkplace.sap.com/sr]

    Check if you get the logon page.

    Best Regards,

    Rima.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 03, 2008 at 10:42 AM

    Hi,

    it seems like you have done everything that is needed in order to connect to the sr on es.workplace.

    Can you please do the following test and update through the forum ?

    try to login to the following linke using your browser:

    http://sr.esworkplace.sap.com/

    The credentials (sruser / eswork123) will be added aytomatically to the url line.

    Can you get the SR UI screen ? can you search for some services (you can try Customer).

    as far as i know,there is not other available open SR on the web, and until now the only reason for not conencting to the mentioned SR is proxy problem or wrong URL.

    Regards,

    Nadav

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 03, 2008 at 11:00 AM

    Hi,

    Please do'nt try to use http://sr.esworkplace.sap.com on Visual Studio, it will definitely not work.

    you have to keep using the URL that you have posted:

    http://sr.esworkplace.sap.com/ServicesRegistrySiService/ServicesRegistrySiPort

    this is the URL for the service endpoint which is exposed from the SR system.

    can you please open the ESE configuration screen (Tools -> Options) in Visual Studio and check:

    1. That the checkbox for "Use Default Proxy configuration is checked ?

    2. You have configured the connection setting for "Service Discovery" and not for "Service publication" - selected on the "Task" comboBox.

    Regards,

    Nadav

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Nadav,

      The use proxy check box is checked and proxy's values are correct.

      Task is service discovery, authentication type is basic and Service discovery mode is browse.

  • avatar image
    Former Member
    Dec 03, 2008 at 12:03 PM

    Hi,

    Can you please do the following and send us the error log of the ESE:

    1. Right click on "My Computer" -> Manage

    2. Navigate to System Tools -> Even Viewer -> SAP

    3. Double click on the "Error" message displayed on the right side of the screen.

    4. Select all + Copy the error messages.

    5. paste to this thread.

    Regards,

    Nadav

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Good point for you!

      Message 1:

      1) Exception Information

      *********************************************

      Exception Type: System.Net.WebException

      Status: ProtocolError

      Response: System.Net.HttpWebResponse

      Message: The request failed with an empty response.

      Data: System.Collections.ListDictionaryInternal

      TargetSite: System.Object[] ReadResponse(System.Web.Services.Protocols.SoapClientMessage, System.Net.WebResponse, System.IO.Stream, Boolean)

      HelpLink: NULL

      Source: System.Web.Services

      StackTrace Information

      *********************************************

      at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

      at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

      at SAP.ESE.Core.SRWebService.ServicesRegistrySiService.findPhysicalSystems(findPhysicalSystems findPhysicalSystems1)

      at SAP.ESE.Core.ServicesRegistryManager.GetPhysicalSystemsFromSR(String SystemName, String Host, BindingList`1& Result)

      at SAP.ESE.Core.ServicesRegistryManager.GetAllPhysicalSystemsFromSR(BindingList`1& Result)

      For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

      Message 2:

      1) Exception Information

      *********************************************

      Exception Type: System.Net.WebException

      Status: ProtocolError

      Response: System.Net.HttpWebResponse

      Message: The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ).

      Data: System.Collections.ListDictionaryInternal

      TargetSite: System.Object[] ReadResponse(System.Web.Services.Protocols.SoapClientMessage, System.Net.WebResponse, System.IO.Stream, Boolean)

      HelpLink: NULL

      Source: System.Web.Services

      StackTrace Information

      *********************************************

      at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

      at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

      at SAP.ESE.Core.SRWebService.ServicesRegistrySiService.getClassificationSystemsGreaterThanVersion(getClassificationSystemsGreaterThanVersion getClassificationSystemsGreaterThanVersion1)

      at SAP.ESE.Core.ServicesRegistryManager.GetAllClassificationsFromSR(Boolean IncludeFlat, BindingList`1& Result)

      For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

      Message 3:

      1) Exception Information

      *********************************************

      Exception Type: SAP.ESE.Core.ConnectionRefusedException

      Message: Connection could not be established.

      Data: System.Collections.ListDictionaryInternal

      TargetSite: System.Runtime.Remoting.Messaging.IMessage EndInvokeHelper(System.Runtime.Remoting.Messaging.Message, Boolean)

      HelpLink: NULL

      Source: mscorlib

      StackTrace Information

      *********************************************

      Server stack trace:

      at SAP.ESE.Core.ServicesRegistryManager.GetAllPhysicalSystems(BindingList`1& Result)

      at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

      at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

      at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

      Exception rethrown at [0]:

      at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)

      at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)

      at SAP.ESE.Core.ServicesRegistryManager.AsyncGetAllPhysicalSystems.EndInvoke(BindingList`1& Result, IAsyncResult result)

      at SAP.ESE.UI.Browse.loadAsyncBindings()

      2) Exception Information

      *********************************************

      Exception Type: System.Net.WebException

      Status: ProtocolError

      Response: System.Net.HttpWebResponse

      Message: The request failed with an empty response.

      Data: System.Collections.ListDictionaryInternal

      TargetSite: System.Object[] ReadResponse(System.Web.Services.Protocols.SoapClientMessage, System.Net.WebResponse, System.IO.Stream, Boolean)

      HelpLink: NULL

      Source: System.Web.Services

      StackTrace Information

      *********************************************

      at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

      at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

      at SAP.ESE.Core.SRWebService.ServicesRegistrySiService.findPhysicalSystems(findPhysicalSystems findPhysicalSystems1)

      at SAP.ESE.Core.ServicesRegistryManager.GetPhysicalSystemsFromSR(String SystemName, String Host, BindingList`1& Result)

      at SAP.ESE.Core.ServicesRegistryManager.GetAllPhysicalSystemsFromSR(BindingList`1& Result)

      For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

      It seems to be an error connecting our ISA Server but why? (visual studio is running with my account rights and i'm having the right to pass trought)

      Maybe i can try with a run as on the visual studio exe

      Edited by: Benjamin Cappon on Dec 3, 2008 1:41 PM

  • avatar image
    Former Member
    Dec 03, 2008 at 12:52 PM

    Hi,

    It seems like the most important part of the error log is the follwing line:

    "The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )."

    Can you do one of the following actions?

    1. Can you exit from the ISA client you are using on your PC and check if you can go through ?

    2. Can you show this error message to your system admin in you company and ask how they can open it ?

    ESE is directing to a specific Web Service endpoing which is exposed by the SR. as it comes from your problem, there seems to be some firewall on this service.

    What we can undestand the you can use the SR UI on es.workplace but not one of the Web Services which is exposed by it.

    Regards,

    Nadav

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Bypass isa server worked good!

      But I stil have a problem...

      I can search for services but when I'm trying to connect for generating the proxy, server's need a password. Tryed sruser an eswork 123 but it doesn't work.

  • avatar image
    Former Member
    Dec 04, 2008 at 11:41 AM

    Hi,

    after you have finished the search / browse process and found the required endpoint of the service, the ESE needs to download the WSDL (just like VS is doing on "Add Web Reference") and generate the proxy.

    The endpoints are hosted on server which called by SAP as "Physical system". those server has different credentials from the SR.

    you can ask for credentials from the following url:

    https://www.sdn.sap.com/irj/sdn/esareg

    it is all written on the ESE overview document (page 6):

    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0319dc4-d76d-2a10-d19f-e4f4ff315bde

    Regards,

    Nadav

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 04, 2008 at 12:23 PM

    Thank You Everybody!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 04, 2008 at 12:31 PM

    Hi,

    You welcome. we are happy to know that everything is ok now.

    I have one last question for you, how did you succeed in the end to connect to the SR ? can you please

    explain what did you change on the ISA server / proxy ? (in order us to know how to help quicker next time for other customers)

    Regards,

    Nadav

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Just gived a fixed ip address to my pc and allowed to navigate the internet without using proxy.

      I'll take a look later to see what blocked me...

      I'll post a message when i found the reason why isa blocked me.

  • avatar image
    Former Member
    Apr 02, 2009 at 07:56 AM

    Hello

    I have a similar problem when connecting to the Service Registry with SAP Enterprise Services Explorer for Microsoft .NET. I have Visual Studio 2008.

    The error message is "Cannot connect to the services registry". I use

    sruser and eswork123 as credentials.

    In the event viewer I found this error message:

    1) Exception Information

    *********************************************

    Exception Type: SAP.ESE.Core.ConnectionRefusedException

    Message: Connection could not be established.

    Data: System.Collections.ListDictionaryInternal

    TargetSite: System.Runtime.Remoting.Messaging.IMessage EndInvokeHelper(System.Runtime.Remoting.Messaging.Message, Boolean)

    HelpLink: NULL

    Source: mscorlib

    StackTrace Information

    *********************************************

    Server stack trace:

    at SAP.ESE.Core.ServicesRegistryManager.GetAllPhysicalSystems(BindingList`1& Result)

    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

    Exception rethrown at [0]:

    at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)

    at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)

    at SAP.ESE.Core.ServicesRegistryManager.AsyncGetAllPhysicalSystems.EndInvoke(BindingList`1& Result, IAsyncResult result)

    at SAP.ESE.UI.Search.loadAsyncBindings()

    2) Exception Information

    *********************************************

    Exception Type: System.Net.WebException

    Status: ConnectFailure

    Response: NULL

    Message: Unable to connect to the remote server

    Data: System.Collections.ListDictionaryInternal

    TargetSite: System.IO.Stream GetRequestStream()

    HelpLink: NULL

    Source: System

    StackTrace Information

    *********************************************

    at System.Net.HttpWebRequest.GetRequestStream()

    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

    at SAP.ESE.Core.SRWebService.ServicesRegistrySiService.findPhysicalSystems(findPhysicalSystems findPhysicalSystems1)

    at SAP.ESE.Core.ServicesRegistryManager.GetPhysicalSystemsFromSR(String SystemName, String Host, BindingList`1& Result)

    at SAP.ESE.Core.ServicesRegistryManager.GetAllPhysicalSystemsFromSR(BindingList`1& Result)

    3) Exception Information

    *********************************************

    Exception Type: System.Net.Sockets.SocketException

    ErrorCode: 10061

    Message: No connection could be made because the target machine actively refused it 155.56.56.170:80

    SocketErrorCode: ConnectionRefused

    NativeErrorCode: 10061

    Data: System.Collections.ListDictionaryInternal

    TargetSite: Void DoConnect(System.Net.EndPoint, System.Net.SocketAddress)

    HelpLink: NULL

    Source: System

    StackTrace Information

    *********************************************

    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

    at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)

    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Thanks for any help!

    Add comment
    10|10000 characters needed characters exceeded