Dynamical logical port creation

Hi
Is it possible to generate a logical port dynamically at runtime. I only need a logical port once for executing a web service, so I'm looking for a way to minimize administration work.
Regards, Mathias

hi gourav,
thanks for a very helpful.. answer..
but i am still getting the error Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL'.
while creating the logical port....i am using endpoint URL from the wsdl ...i also tried seleting the wsdl file while cerating port..
Also when i tried creting port for another consumer proxy it is working....so this is not a system issue
what could be the problem

Similar Messages

  • Dynamic Logical Port for Web Service Client

    Hi *!
    We want to use the same Web Service Client code with different Web Service instances running on different systems. So I need to configure the logical port (especially the URL of the endpoint) dynamically at runtime.
    Please give me a hint, how this is done.
    (we are using WebAS 6.40 SP7)...
    Thanks in advance,
         Frank

    Hi Frank,
    I hope you were able to solve your issue on you own in the meantime.
    I was looking for the answer to this question today. This was the only thread I found on SDN. Unfortunately, it did not contain an answer yet. I was able to figure out a way to set the endpoint address dynamically after searching help.sap.com and after examining the interfaces offered by the Stub (logical port in this case) classes.
    Here's an extract from my code:
    // Connect to JNDI context
    InitialContext ic = new InitialContext();
    // Get reference to web service proxy from JNDI context
    Z_MSC_GET_SCHEDULE_WSDService service =
         (Z_MSC_GET_SCHEDULE_WSDService) ic.lookup("wsclients/proxies/iot-online.de/msc~srv_ejb~proxy/de.iot_online.msc.proxy.ScheduleReaderProxy");
    // Get reference to logical port from web service proxy
    Z_MSC_GET_SCHEDULE_WSD logicalPort = service.getLogicalPort();
    // Set URL of web service Endpoint
    logicalPort._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://<FQDN>:8010/sap/bc/srt/rfc/sap/Z_MSC_GET_SCHEDULE_WSD?sap-client=100");
    This is explained on
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/113a1221337249e10000000a155369/frameset.htm
    You can also set the credentials (username / password) with the method _setProperty.
    Best regards
    Christian

  • Error in Logical Port Creation

    Hi,
    When I try to create a logical port in my consumer system I am getting error
    "Error: HTTP: Error in interface for management of HTTP destinations; "
    Any ideas on how to fix this?

    Sorry - I should have been more clear earlier.
    I am using SOAMANAGER to create the logical port.  The error occurs when I choose 'WSDL Access Settings' to obtain the WSDL.  I was able to get around the problem by going into SOAMANAGER on my provider system, locating the service & binding I want, and then downloading that file.  This is a workaround as I would like to get the file via HTTP access.
    I suspect this has to do with configuration but I do not know where this needs to be setup.

  • Connection to ByDesign with a ODP Source system: Logical port creation on CO_RSDSPX_ODP_IN

    Hello,
    I am trying to connect my ByDesign Could server to the our BW Server by an ODP Source system.
    I tried applying what SAP recommend:
    http://help.sap.com/saphelp_nw73/helpdata/en/46/b9297716c94e509fcbe62d3c795e85/content.htm?frameset=/en/c6/afacb707764885a6fb62f511c24f34/frameset.htm
    http://help.sap.com/saphelp_nw73/helpdata/en/ca/14c0899cb04f16929b5d88e147fc8f/content.htm
    http://help.sap.com/saphelp_nw73/helpdata/en/9e/c7a3591dc74a679bbc9716354e42af/frameset.htm
    When trying to create a Logical Port on CO_RSDSPX_ODP_IN from SOA Manager with a WSDL Based configuration (downloaded from a Webservice of our ByD), this error is thrown:
    SRT Framework exception: The WSDL document is not compatible with proxy class "CO_RSDSPX_ODP_IN": "Unsupported Operation(s):GetList, CloseSubscription, CloseSubscription, CloseSubscription, CloseSubscription, CloseSubscripti
    Do you have any idea ?
    Also, i was unable to use any Consumer Service directly ... I am not a Basis and don't understand what configuration needs to be done.
    Thank you very much.

    Hi,
    Did you create consumer proxy for the service you like to consume ?
    It looks like your WSDL and Consumer proxy are not the same ?
    Or you could create Logical Port Manually, but it will fail on provider side because the message you are sending and the provider of the service are not the same.
    Manual Configuration
    The system uses a user-specified binding URL to create a logical port. You need to specify a unique name for the logical port.
    Thank You
    Regards
    Gov

  • Is logical port creation mandatory

    Hi,
    i am creting a service consumer in ABAP ..but it is  giving me error :
    no receiver could be determined....is it because i have not specified logical port while createing the object...
    is it mandatory to create a logical port ?
    Also when i create a logical port in soamanager i am getting the following error.
    Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL'.

    hi gourav,
    thanks for a very helpful.. answer..
    but i am still getting the error Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL'.
    while creating the logical port....i am using endpoint URL from the wsdl ...i also tried seleting the wsdl file while cerating port..
    Also when i tried creting port for another consumer proxy it is working....so this is not a system issue
    what could be the problem

  • Logical port creation error through SOAMANAGER

    Hi,
    When I try to create a logical port through SOAMANAGER I got the following error.
    Error: Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL
    When I actually look into the class CL_SRT_WSP_CONFIG_SIDL I could'nt find the method CREATE_CLNT_CFG_FROM_WSDL_D in SAP 720 version.
    I had seen some discussions in the forum on this error but I could'nt find a proper solution.
    Can someone explain me on how to resolve this issue.
    Do I need to apply a oss note ? Is it mandatory. Also in one thread they talked of SICF transaction usage which is also not clear. Is there any other way.
    Thanks,
    Shashi

    Sorry - I should have been more clear earlier.
    I am using SOAMANAGER to create the logical port.  The error occurs when I choose 'WSDL Access Settings' to obtain the WSDL.  I was able to get around the problem by going into SOAMANAGER on my provider system, locating the service & binding I want, and then downloading that file.  This is a workaround as I would like to get the file via HTTP access.
    I suspect this has to do with configuration but I do not know where this needs to be setup.

  • Edit Customer Problem and Logical Port

    Hi Experts,
    ISSUE 1
    In Web Service Administration, when I look at /iwcnt/actionitemvi_document service in details, I can see one Endpoint only, that is Binding_T_HTTP_A_HTTP.
    In the Troubleshooting Guide, in section 5. No Workflow / Reports reach the SCL from backend system, there are mentioned two endpoints: Binding_T_HTTPS_A_HTTP and Binding_T_HTTP_A_HTTP - all other setting, I have, are the same on my server as mentioned in the troubleshooting guide. So why there is diffrence in binding on that particular service?
    The other thing I noticed, is, that when looking closer on the logical port creation on backend system in the Behind the scene video, it mentions, that the Path Suffix include binding_t_http_a_http whereas in the Troubleshooting Guide it is showing binding_t_https_a_http - why this?
    What is the right path suffix for the logical ports at the backend system?
    ISSUE 2
    When we edit a customer from SharePoint, we get the following error:
    Error
    An unexpedted error has occured
    Correlation ID: ea04d908.xxxxxxxxxxxxxx
    Looking closer at the correlation at SCL, everything seems to be green and no error is reported, but in the ULS Viewer, following info are displayed:
    Microsoft.BusinessData.Runtime.BackendNullReturnException: LobSystem (External System) returned a null structure which is incompatible with the associated metadata.  
    at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.WrapAsEntities(IMethodInstance methodInstance, IEntity thisEntity, IParameter parameter, ITypeDescriptor entityInstanceRootTypeDescriptor, Object correspondingAdapterObject, IEntity targetEntity, ISystemUtility dataSystemUtility, ILobSystemInstance lobSystemInstance)   
    at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.ExecuteInternal(IDataClass thisDataClass, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, IParameterCollection nonReturnParameters, Object[]& overrideArgs, IFilterCollection filters)   
    at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.FindSpecific(IEntity thisEntity, Identity entityInstanceIdentity, String specificFinderName, ILobSystemInstance lobSystemInstance)
    regards
    Tariq

    Hi,
    ISSUE 1:
    This is very likely because SSL is not configured. First of all can you go to SOAMANAGER -> Business Scenario Configuration and deactivate and activate the DUET_ENTERPRISE_ALL. When activating check if you are getting errors for the Assertion profiles (my guess would be, that you are getting errors).
    In this case check the SSL configuration from SMICM -> \[Menu] Goto -> Services
    Here you should see an active service HTTPS. If that is not the case, check that the SSL certificate is created (STRUST) and make sure that the required profile parameters are set (see also Deployment Guide -> "To configure the use of SSL in the SCL host" on page 33 at http://www.service.sap.com/instguides -> Duet -> Duet Enterprise 1.0 -> Duet Enterprise SAP Deployment Guide)).
    Regarding the backend configuration for the logical ports in LPCONFIG. Here it depends on how you have setup the configuration on the SCL. If you released the services with HTTPS then the URL in the backend has to be HTTPS binding, if you configured it via HTTP, then it has to be HTTP binding Did you perform the connection tests as described in the videos or in the checkpoint of the troubleshooting guide?
    ISSUE 2:
    Can you take a look also on the SAP side in SRTUTIL? Do you see any additional error information there? You might also want to check the errors from the log viewer /IWFND/VIEW_LOG
    Regards,
    Holger.

  • SOA Management - setting up logical port for WS

    Hi
    I'm trying to use the RepositoryFrameworkWS from abap.
    During this i am setting up a logical pot for the webservice.
    This is done through the SOA Management.
    I find the consumer proxy CO_KMCWS_REPOSITORY_FRAMEWORK
    I then try to create the logical port.
    i use the wsdl
    http://<server>:<java_port>/RepositoryFrameworkWS/Config1?wsdl&
    when i apply the settings i get an error.
    SRT Framework exception: The WSDL document is not compatible with proxy class "CO_KMCWS_REPOSITORY_FRAMEWORK": "Operation(s)Missing setGlobalConfig, resetSessionStatistic, resetGlobalStatistic, getSessionStatistic,
    I know the operation i want to use(findResources). But I don't know how to set it up.
    Can anyone help me ?
    Best Regards,
    Rasmus

    Hi Rasmus,
    Please check the Service definition in the WSDL URL given for Logical Port creation is same as the Service definition in the proxy CO_KMCWS_REPOSITORY_FRAMEWORK. It seems to me that  some methods/ operations in th proxy could not be found in the Service definition in the WSDL URL.
    Download the WSDL from the URL and open it using some tool and compare the Service definition with that of the proxy.
    Regards,
    Avishek.

  • WSDL version used for port creation in SOAMANAGER for Netweaver 7.01 SP-5.

    Hi,
    Does SOAMANAGER refer to a particular version of WSDL while creating the logical ports for consumer proxies. I'm asking this because after one of the upgrades in our ECC system we find that the authentication configurations of the port are automatically done based on the WSDL now, however this was not the case earlier.
    Also logical ports created manually are giving runtime exception (Soap FAult Code : 1). Does logical ports creation necessarily have to be done from WSDL.
    Please throw some light on the above, if any of you have faced this issue already.
    Regards,
    Avishek.

    We got a reply from SAP that from NetWeaver 7.0 SP3, logical ports will be created based on Security policy mentioned in WSDL. We can however override this by creating the port manually and the SOAP fault code error can be resolved by manually entering the SOAP Action for each method of the Service in the 'Operation Specific' tab of the Logical Port details.

  • Creation of logical port

    hi,
    Can any one tell us creation of logical port for publishing a webservice.
    While creating we are facing following exception:
    SRT Framework exception: Initial value "operation table" in method IF_SRT_WSP_SUBJECT_CONTEXT~IS_COMPATIBLE_TO_PROXY_ of class CL_SRT_WSP_SUBJECT_CONTEXT
    While testing with web navigater it is working fine

    Mr. Snehasish Das
    Thanks for your reply.
    Actually we are trying to create a web service using BAPI. We have created the webserive and tested the WSDL in SOAmanager. It is working fine.
    And when we are trying create a logical port for CO_ESREGISTRY_WSSI in SOAmanager to publish the webservice we are getting the following error.
    SRT Framework exception: Initial value "operation table" in method IF_SRT_WSP_SUBJECT_CONTEXT~IS_COMPATIBLE_TO_PROXY_ of class CL_SRT_WSP_SUBJECT_CONTEXT
    We had specified the Open porttype WSDL document in URL for WSDL Access

  • Logical port definition dynamically

    Hi all!
    In ABAP I'm using a Web Service proxy class to call the web service. I'm aware that a logical port must exist that points to the location of the service.
    I'm looking for a way in ABAP (not Web Dynpro) to determine / set the correct logical port dynamically at runtime.
    I invoke the proxy as follows:
    create object lo_clientproxy.
    call method lo_clientproxy->aMethod
    exporting
       input  = ls_request
    importing
       output = ls_response.
    I know that in web dynpro the logical port can be determined at runtime:
    wdContext.current<Node>Element().modelObject()._setEndPoint("<Your URL>");
    Is there a way in ABAP as well to set the logical port dynamically?
    Regards,
    Mathias

    I've found it:
    CREATE OBJECT lo_clientproxy
    exporting
    LOGICAL_PORT_NAME = LPORT.
    LPORT would need to be a variable of type PRX_LOGICAL_PORT_NAME and contain the name of an existing logical port that had already been configured in LPCONFIG.

  • Dynamically define target address for logical ports (NW'04)

    Hello,
    when developing a web-service client using standalone proxy, you have to define the target address of a Web Service in the property-page for the Logical Port.
    We have the following problem. If, for any reason, the URL of the Web Service changes (i.e. the hostname or the port),  we have to rebuild the whole project and then redeploy the project.
    Is there a way to change this URL dynamically by java-code?
    Thanks in advance,
    Jarle

    Hi,
    You can get Server name Dynamically. You follow the below steps.
    1. Create a HTTP Destination in visual administrator which stores the server name and port.
    2. Access this variable in your controller init method and build your web service url with server name and port and use _setEndPoint() method
    String prefixURL = "http://";
    // your Service Address...remove the first part from service url.
    String serviceURL = "/TestService/Config1?style=document";
    DestinationService dstService = (DestinationService) obj;
    Destination destination = dstService.getDestination("HTTP","ApplicationServer");
    Properties destprop = destination.getDestinationProperties();
    HTTPDestination httpDestination = (HTTPDestination) destination;
    String serverName = httpDestination.getUrl();
    prefixURL = prefixURL + serverName;
    String testURL = prefixURL + serviceURL;
    Request<Obj> testReq = new Request<Obj>();
    testReq._setEndPoint(testURL);
    You need to import below files into your project.
    import com.sap.security.core.server.destinations.api.Destination;
    import com.sap.security.core.server.destinations.api.DestinationService;
    import com.sap.security.core.server.destinations.api.HTTPDestination;
    import java.net.HttpURLConnection;
    import java.util.Properties
    hope it solved your problem.
    Regards,
    Sridhar

  • Error while creating logical port for Reporting

    Hi,
    In one of the training materials for Duet Enterprise, i saw the steps for creating logical port for the consumer proxy /IWTNG/CO_PXY_RECORDS_REPOSITO.
    When i am trying to create the logical port, i am getting an error saying,
    " SRT Framework exception: Error in WSDL access: Exception occurred in communication framework:Error in HTTP Framework:500 Native SSL error
    https://<server:port>/_vti_bin/OBAFileReceiver.asmx?wsdl "
    I would like to know is it really necessary to create this logical port for "Reporting Scenario" and is it not created automaticallly using the Installation Wizard??
    And in case it has to be created, how to resolve this SRT framework exception?
    ~ Ramanath.

    Hi,
    the consumer proxy  /IWTNG/CO_PXY_RECORDS_REPOSITO was used in Duet Enterprise SP01. Now with SP02 the consume proxy /IWTNG/CO_OBAFILE_RECEIVER_SOA is created.
    However, the SSL error that you are getting looks a little strange (it does not mean that there is an error, but it is worth checking):
    So can you go to SOAMANAGER -> Service Administration -> Single Service Configuration. In here select "Consumer Proxy" from the "Search by", Search Pattern "/IWTNG/CO_OBAFILE_RECEIVER_SOA" and Field: Both.
    You should find one entry. Select it and click "Apply Selection".
    Now go to the Configurations tab. Here you should see one Logical Port with name "LOGICALPORTFORREPORTING" with Creation Type "Manually Created". In fact this logical port was created by the Wizard.
    Click on Display and scroll down again. Now in the "Additional Information" tab there is a string after HTTP Destination, e.g. 0050568E3F5A1ED096F22339C44BAF83.
    Copy this value and go to your SAP GUI -> Transaction SM59.
    Here click on Find/Search and search for this HTTP Destination. You should find one Type G RFC Destination that has the target host of your SharePoint server and the path prefix /_vti_bin/OBAFileReceiver.asmx.
    Now you can test the service. Just click on Connection Test. The result should be a HTTP Response: 200.
    If not, then something went wrong with the automatic configuration and we should take another look at it (for example maybe the SSL certificate from SharePoint that was imported by the Wizard is not valid)
    Regards,
    Holger.
    PS. Don't use the "Ping Web Service" test from SOAMANGER -- unfortunately this is not working consistently.

  • ERROR: [DRC 23-20] Rule violation (NSTD-1) Unspecified I/O Standard and ERROR: [DRC 23-20] Rule violation (UCIO-1) Unconstrained Logical Port

    I am attempting to follow the "after the out of the box" demo for the Zybo board. I am trying to generate a bitstream on vivado 2015.1 and I keep getting these two errors
    ERROR: [DRC 23-20] Rule violation (NSTD-1) Unspecified I/O Standard - 96 out of 226 logical ports use I/O standard (IOSTANDARD) value 'DEFAULT', instead of a user assigned specific value. This may cause I/O contention or incompatibility with the board power or connectivity affecting performance, signal integrity or in extreme cases cause damage to the device or the components to which it is connected. To correct this violation, specify all I/O standards. This design will fail to generate a bitstream unless all logical ports have a user specified I/O standard value defined. To allow bitstream creation with unspecified I/O standard values (not recommended), use this command: set_property SEVERITY {Warning} [get_drc_checks NSTD-1].  NOTE: When using the Vivado Runs infrastructure (e.g. launch_runs Tcl command), add this command to a .tcl file and add that file as a pre-hook for write_bitstream step for the implementation run. Problem ports: gpio_rtl_tri_i[31:0], gpio_rtl_1_tri_io[31:0], gpio_rtl_0_tri_o[31:0].
    ERROR: [DRC 23-20] Rule violation (UCIO-1) Unconstrained Logical Port - 96 out of 226 logical ports have no user assigned specific location constraint (LOC). This may cause I/O contention or incompatibility with the board power or connectivity affecting performance, signal integrity or in extreme cases cause damage to the device or the components to which it is connected. To correct this violation, specify all pin locations. This design will fail to generate a bitstream unless all logical ports have a user specified site LOC constraint defined.  To allow bitstream creation with unspecified pin locations (not recommended), use this command: set_property SEVERITY {Warning} [get_drc_checks UCIO-1].  NOTE: When using the Vivado Runs infrastructure (e.g. launch_runs Tcl command), add this command to a .tcl file and add that file as a pre-hook for write_bitstream step for the implementation run.  Problem ports: gpio_rtl_tri_i[31:0], gpio_rtl_1_tri_io[31:0], gpio_rtl_0_tri_o[31:0]
    when first creating the project in Vivado 2015.1 i could not find the Zybo board in the list of boards to choose from. so i followed the "how to import Zybo board into project" topic located on the Xilinx community forum. Since i could not directly select the board some of the instrution for the demo had to be modified. In step seven i could not select the "apply board preset" box and in step 9 i could not assign "btn_4bits" and "sws_4bits" to the gpio blocks. The "After the box demo" can be found here
    https://reference.digilentinc.com/zybo:gsg
    Please help me with setting the I/O standards or importing the Zybo boards as one of the boards I can select insted of me selecting the properties of the board.
    Thank you
     

    Hi
    As mentioned in the link (http://www.xilinx.com/support/documentation/user_guides/ug361.pdf), can you try the design with Vivado 2014.3?
    Thanks,
    Vinay

  • Calling external Web Service: PI is looking for a logical port and proxy.

    Hi,
    My scenario is  ECC Proxy -> PI -> External Webservice (WS adapter).
    the Web service adapter fails with the error message:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">WS_ADAPTER_SYS_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>System error while calling Web service adapter: Error when initializing SOAP client application: &#39;error_text&#39;</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    When I debug the message processing, it is looking for a port in table SSRVRTCONFIG, finds it(entry created automatically when WS adapter and the corresponding receiver agreement is activated in ID.
    Then the program looks for an entry in "SRT_CFG_CLI_ASGN" for a proxy and logical port combination and errors out.
    to be able to call an external web service, do we need a proxy to be created? I tried to create but the proxy creation fails because the external WSDL has some unsupported tags.
    Also do we need to do any other configuration in SOAMANAGER? I am assuming not because the Web service is external.
    Any help would be appreciated.
    Thanks
    Vijay

    I already checked that note and made sure that the points mentioned are met. I have a trace set up on the target system and would know if the call reaches them and then fails in authorization. Right now the call doesnt even reach the target system and also from debugging I know that the program is looking for a proxy and then fails.

Maybe you are looking for

  • BPM 11g scheduling

    Hi, I have a requirement to execute a BPM 11g process at the first day of each month at 12 midnight. I've been looking into timer start events, but I've been unable to find the proper configuration to get it to work as a scheduler. Could someone plea

  • Virus Tranfer w/30 gig ipod Video

    I have read previous posts and i just want some clarity. I have a 30 gig ipod vid and i was wondering if i put music pics or vids on it from an infected computer can i transfer them to another computer. I read it is possible if you are transfering st

  • Delivery completed indicator in MIGO

    Hi all,   During the goods receipt(MIGO), the indicator "Delivery completed" has three options : set, not set, set automatically. In our client, the default option is "set automatically" which needs to be changed to "set". Please let me know the conf

  • PL/SQL Queries in OC

    Is it possible to write normal SQL Queries into the Custom Code of OC? for ex - "select count(a.visdate) from tablename" or "select max(col) from table name"? is it also possible to write and set up CURSORS in OC like how we do normally in PLSQL of o

  • Workbench-Cannot Give Joining to One-To-Many

    Hi there, i am using toplink workbech 10g release 2(10.1.3.0DP4) build 050715. In workbench, i want to put "use joining" to a one-to-many relationship. Joining can be applied to one-to-many relationships from the java code but in workbench i cannot g