Consuming WS from XI

Hello,
I'm trying to consume an XI web service.
I've received a WSDL file from my administrator.
Using the wizard on my Netweaver Developer Studio I've created a standalone proxy and received the following structure:
Logical Ports:    SystemMsg_OBPort
Proxy Classes:    SystemMsg.java, SystemMsgFbDt.java
SEIs:    SystemMsgOB.java (Interface),  SystemMsgOBBindingStub.java, SystemMsgOBService.java (Interface), SystemMsgOBServiceImpl.java
I've successfully consumed ws's before, but this time I need to insert user name and password.
I've tried to create a WebDynpro project and import the ws as a model - success!! But I need to do it on a simple java project (Not WD).
I've tried the instructions on the following link:
http://help.sap.com/saphelp_erp2004/helpdata/en/ab/c955e2e2d24a888127f211f2d5043f/frameset.htm
but it seems that the class structure I have don't really match the structure in the example:
StockWSImpl ws = new StockWSImpl();
Remote remote = ws.getLogicalPort(StockWS2ViRpc.class);
StockWS2ViRpc stocksWS = (StockWS2ViRpc) remote;
BaseGeneratedStub stub = (BaseGeneratedStub) remote;
SecurityProtocol securityProtocol = (SecurityProtocol) stub._getGlobalProtocols().getProtocol("SecurityProtocol");
AuthenticationContext = securityProtocol.getAuthenticationContext();
I'll appreciate any help.
Yaniv

Hello,
The service-interface, operations and so on are the same - only the "target" is different. So it's ok to change only the logical port on each system.
Regards
Thomas

Similar Messages

  • Is there a way to control the number of consumed messages from JMS?

    Hi everyone,
    I have a BPEL process that is consumes messages from a foreign queue, performs a transformation, and passes it to Oracle Apps. I'm curious if there is a way to control the number of messages consumed at a time for processing.
    For example, if we place 50 transactions on this queue, I would like to only consume 10. And then as each one is processed and passed to Oracle Apps, I would like to pull another transaction off the queue. So basically I would only be processing 10 at the most.
    The issue I am having is we put 50 on the queue and the 50 are take off right away. But then half are making it into Oracle Apps and the remainder is failing with a JCA Connection Factory max connection error.
    Instead of changing the settings to get more through, I am wondering if it's possible to limit the number being processes at any one time.
    Thanks

    Hi,
    Have a look at the adapter.jms.receive.threads Property for JMS Adapter...
    http://docs.oracle.com/cd/E21764_01/core.1111/e10108/adapters.htm#BABCGCEC
    Cheers,
    Vlad

  • How can a JMS adapter be configured in BPEL to consume messages from multiple queues ?

    How can a JMS adapter be configured in BPEL to consume messages from multiple queues ?

    If you want to use JMS with AQ as datastore then there is some configuration you need to do to enable this. This is outside SOA Suite per sa, e.g. no adapter required.
    If you want to connect to the AQ direct then use the AQ adapter.
    this blog may be of some help understand the configuration
    http://biemond.blogspot.com/2008/01/oracle-jms-with-esb-and-bpel.html
    cheers
    James

  • How to pick(or consume) messages from Woblogic JMS Queue only when DB is UP

    Hi,
    I have a requirement to pick(or consume) messages from Woblogic JMS Queue only when DB is UP.
    When DB is down, messages should remain in queue. When DB is up, messaged should be picked on scheduler basis.
    We are using SOA suite 11g(BPEL or mediator,JMS Adapter).
    What is the best way to achive it in SOA 11g.
    I tried, but when I setup a Consumer, there is no control over there. Messages are picked automatically.
    Please advise.
    Thanks
    Ram

    something wrong with the design.
    why dont you set the retry options in the fault policies?
    So if the external DB is down you could reprocess them after specified interval or make it go to human retry queue.
    Then you could use SOA api to retry all of them.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to consume WSDL from SR in PI 7.1

    Hi,
      How to publish WSDL into SR. How to consume WSDL from SR. Can anybody guide me step by step.
    Thanks & Regards,
    Venkat K

    Hi venkat,
    Check out the blog : /people/daniel.graversen/blog/2008/02/27/publish-services-from-pi-71-to-the-service-registry
    also : https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0f3cf81-e6da-2a10-6891-ef321fdc1a6b
    Thanks,
    Pooja Pandey
    Edited by: Pooja Pandey on Jan 27, 2009 10:26 AM

  • How to consume OData from SNWG in Windows Phone

    Hi Friends,
    I want to consume OData from SNWG in Windows Phone 8 app. I already have a post on this.
    Please refer the 2nd last post for what I have tried finally.
    Getting Started with SAP NetWeaver Gateway
    Regards
    Somnath

    Hi Holger,
    I have already tried this steps( http://msdn.microsoft.com/en-us/library/windowsphone/develop/gg521145(v=vs.105).aspx  &  OData client for Windows Phone 8 )  and are able to consume OData service from my Windows Phone 8 app with the OData service link (http://services.odata.org/Northwind/Northwind.svc/ ) provided in the example.
    But when I try to use some other  remote service like (http://<Gateway_Host><Gateway_Port>/>/sap/opu/sdata/iwfnd/RMTSAMPLEFLIGHT?sap-client=100 ) it doesn't work, even I don't find any service.
    Could you please tell me if this is a value document and will support for my development, if then where do I get SAP NetWeaver Gateway for my dvelopment.
    http://wiki.scn.sap.com/wiki/download/attachments/250646828/WP7%20-%20How%20to%20Guide.pdf?version=1&modificationDate=13…
    Regards
    Somnath

  • How to consuming reports from OBIEE using web services?

    I need know if there are a forum for post about consuming reports from Oracle Business Intelligence Enterprise Edition using web services for deploy on ASP.Net web application.
    Kind Regards.
    deniscuba

    I would start with the BI forums http://forums.oracle.com/forums/category.jspa?categoryID=145
    If no answer in a reasonable time, I would post an update in the question indicating that I would cross-post in the http://forums.oracle.com/forums/category.jspa?categoryID=44 (.Net related) or the http://forums.oracle.com/forums/category.jspa?categoryID=10 (Technology > Web Services) forums.

  • Trouble running "Universal Windows app that consumes data from the Azure Marketplace" sample

    I am trying to run the sample titled "Universal Windows app that consumes data from the Azure Marketplace". I am not sure how to enter the credentials for the Zillow APIs.  I obtained a key from Zillow, but when I enter it per the instructions
    in the sample, I still get an unauthorized (401) error.  
    The instructions say  Insert that key into the SampleDataSource file of your project in place of the string "Your account key goes here".
    So I replaced my key in this line of code:
    request.Credentials = new NetworkCredential("<Your account key goes here>",
                                        "<Your account key goes here>");
    Am I missing something else?

    Hi isgimaryann,
    I would suggest you ask question at:
    https://code.msdn.microsoft.com/windowsapps/Universal-app-that-d7406c5b/view/Discussions#content to see if the owner of the sample will give you some suggestions.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can BPEL retry consuming message from JMS Q Infinite times after rollback?

    Hi Guys,
    I have a scenario where a simple BPEL 11g with a throw consumes messages from a JMS queue.
    If some error occurs the message would be rolled back to JMS queue.
    I want to configure the BPEL in such a way that the BPEL would retry to consume the rolled back message again and again regardless of how many times it is getting rolled back.
    please suggest some solutions.
    Thanks in Advance...

    To get rollbacks to sucessfully put messages back on a queue we:
    1. Ensure the BPEL component in composite.xml has the following properties set:
    <property name="bpel.config.transaction">required</property>
    <property name="bpel.config.oneWayDeliveryPolicy">sync</property>
    2. Use ASync fault policy
    <property name="oracle.composite.faultPolicyFile">oramds:/apps/AIAMetaData/faultPolicies/IC/ASync/V1/fault-policies.xml</property>
    <property name="oracle.composite.faultBindingFile">oramds:/apps/AIAMetaData/faultPolicies/IC/ASync/V1/fault-bindings.xml</property>
    These are custom fault policies we have that simply rethrows the fault (I can send them to you if required)
    The problem is that you will fire your server into an endless loop and not have any control over the process. Many kinds of error will cause the loop not just the one you want. I can imagine SOA server will hang, or run out of memory then you will reboot it and it will just hang again.
    You may have a resubmit delay of 5 mins but if you have 300 messages in the queue that is still one try every second. I can imagine your server falling over.
    Automatic re-submission is possible but I would suggest going for a design that gives you a little more control over the process. Having error messages go into an error queue and an automatic re-submission process might be a good idea. You could then control the process. e.g. Try one of the messages every 5 mins and if that works put the entire contents of the error queue back into the main queue.

  • How to Consume WSDL FROM PeopleSoft to SAP

    How to Consume WSDL FROM PeopleSoft to SAP
    Points will be rewarded
    thank you,
    Regards,
    Jagrut BharatKumar Shukla,

    HI
    Please refer to the following links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d5d4a6e3-0601-0010-6aa9-ac3a1f747ea5
    http://www.mindtelligent.com/pdf/details.ppt
    http://www.bea.com/content/news_events/white_papers/BEA_WL_Adapters_ds.pdf
    http://www.oracle.com/technology/products/applications/Events/OOW-2005/S3534_Doron_Avizov.pdf
    http://download.microsoft.com/download/8/9/5/89585721-4774-4b5e-856b-c9db5d2980b3/Application%20Integration%20Fact%20Sheet.pdf
    Regards
    Ravish Garg
    <i>
    Reward if useful</i>

  • How to create a bc model for sharepoint 2013 that consume data from two Sql tables?

    Hi everyone!!!
    I have created several external contents using SQL Server databases as datasource. The thing is every time I created one, only consume one table and define operations for that table. I would need to create an external content that can contain the
    information of two tables. I tried to export the bdc model and type the query using left joins but nothing happens...I did it in that way for sharepoint 2007 and works!!!
    I know if a create a view in the database I can have the data that I want and I can create the external content using the view. But the thing is I don't have access to the database for creating anything, just read it.
    can anybody can help me, please?
    Thanks.

    Please follow this article to write SSRS reports with data source as SharePoint list/calendars etc. All document libraries, list and calendars are derived from base list class so you can use any of this type as a data source
    http://www.mssqltips.com/sqlservertip/2068/using-a-sharepoint-list-as-a-data-source-in-sql-server-reporting-services-2008-r2/
    Once your SSRS report is developed, you have multiple ways to show it in SharePoint
    - upload to SSRS server and show in sharepoint in a page viewer web part or simply open it as a link in new window
    - configure SharePoint environment with integration to SSRS and upload report to SharePoint library. Display report in a web part page using SSRS web part.
    Moonis Tahir MVP SharePoint,MCTS SharePoint 2010/2007, MCPD.net, MCSD.net, MCTS BizTalk 2006,SQL 2005

  • Geeting error while consuming webservice from java

    Issue description :
    We are tried to connect to clients SAP bapi web service with Apache Axis tool  ( version- axis2-1.5) and SOAP UI tool (SOAPUI3.6.1
    )  , we faced following error : and getting following login error failed error from SAP.
    Error :
    HTTP 401 - Unauthorized. Login failed. The application was running in the system QAS
    It is really starange as , using the id i could log in to the system , but while consuming the service , for the same id it is giving this error.
    Regards,
    Ranjit

    Hi,
    Not sure this is right forum to post. You may try post in SDK forum to get quick response.
    Thanks & Regards,
    Nagarajan

  • Consume WS from Third Party System in a SAP Portal

    Hi everybody,
    I would like to know if it could be possible to consume a WS from a Third Party System from a SAP Portal page or iView directly.
    If not, could anybody propose a solution for that?
    I thought about the possibility of creating a WebDynpro Java application which would consume this Web Service.
    Thanks a lot.
    Kind Regards,
    Victoria

    HI Victoria,
    Create Web Dynpro Java application for consuming u Web services.Create SAP webdynpro iview Template to create your iviews.
    Thanks,
    Amith.

  • Planning Strategy to consumer components from various Sales Orders

    Sapers,
    It seems that any planning component strategy will not reduce PIRs (Dep reqs).  What I means is when you enter a Sales Order that has a component in but is completely MTO the demand from that component is not netted off against other demand that may be planned ?
    I needs a solution whereby component demand can be consumed from multiple MTO sales orders that have that particular component in its BOM ?
    CAN ANY ONE HELP ?

    Milton,
    when I applied strategy 70 it would only reduce the PIRs for the Higher level that was producing the dependent demand.
    ???? The strategy of a component has no impact on the PIRs of a parent.  If the PIRs of your parent were being consumed, it was due to the strategy of the parent, not the component.
    May be I had some settings wrong but I dont think so
    Yes, you must have had some settings wrong.  However, I probably misled you, I meant to say 'dependent reservations', not 'dependent requirements'.
    We are essentially using parent material forecast to drive demand for components with long lead times
    I will assume that when you are saying 'parent', you are not talking about your finished goods.  Please confirm.
    Let us assume your BOM is FG1 > AS1 > RM1.  Let us assume that you do not wish to forecast FG1.  Let us further assume that you do not wish to build either FG1 or AS1 until the entry of a Sales order.  In this case, you could enter strategy 70 at the RM1 level.  You would procure RM1 via forecast entered at RM1.  When the sales order was entered, the dependent demand from the FG1 sales order would cause you to generate Production orders for AS1.  The dependent reservations from the AS1 productions orders would consume the forecast against RM1.  
    Now, as I understand your question, you wish instead to
    1.  Forecast AS1
    2.  Generate non-convertible orders for AS1
    3.  Generate convertible orders for RM1
    4.  Have the forecast in AS1 to be consumed by the dependent reservations of FG1.
    I don't believe that there is a standard SAP strategy that meets these requirements.  I would actually question why AS1 would even exist as an independent material, but I guess you probably have some legitimate business reason. It also raises the question of how the ATP for FG1 and AS1 would be conducted.  Well, I am sure you have already thought this out.
    As I mentioned earlier, you could use one of the planning material strategies at the FG1s level to functionally get similar business results.
    Best Regards,
    DB49
    Edited by: Dogboy49 on Feb 19, 2011 5:47 PM

  • Issue connecting Consumer Proxy from SCL to SAP ECC

    Hi all,
    We are trying to connect duet Enterprise with an ECC 6.0 Ehp4 and we have an issue with connecting through a Costumer proxy from SCL to ECC.
    1-     The wizard is not creating properly the logical port.
    2-     In SOAMANAGER->Technical Administration Tab- the system connections is having issues, the connection doesn`t appears.
    3-     In SOAMANAGER-> Service Administration Tab->Business Scenario Configuration:
    When we make changes to DUET_STARTER_SERVICES_ALL, it activates too quickly, is not seen the u201CSOA Configuration Request Queue Managementu201D progress so if I change to another Business Scenario it works as expected.
    I left you some screenshots of those issues. If you need more information abut the systems or configurations just ask for. Thanks and I hope you can help me.
    [SE80 Service Consumer|http://www.image-share.com/upload/706/136.png]
    [SE80 ServiceGroups|http://www.image-share.com/upload/706/137.png]
    [SoaManager System Connections|http://www.image-share.com/upload/706/138.png]
    [Business Scenario Configuration|http://www.image-share.com/upload/706/139.png]
    [Web Service Administration|http://www.image-share.com/upload/706/140.png]

    Hi Eduardo,
    I do not fully understand. Are you currently trying to configure the out of the box service "Starter Services" or are you developing your own scenario (ZCO_SALES_ORDER...)?
    From your "SoaManager System Connections" screenshot it looks like the connection to your backend system was not created successful. If you used the Wizard, can you also try to follow the manual steps from the documentation (Chapter 3.3.2 Configure the Service Provider for Starter Services Endpoints). Maybe you will face the same problem as [here|System Connection Wizard;
    Regards,
    Holger.

Maybe you are looking for

  • Attachment don't open en previewer is not working in Outlook 2013

    When i get office attachments in an e-mail in outlook 2013 on a windows 8.1 pro. The attachments don't open. And the previewer of outlook tels me that the content can not be previewed. Any one any idea what can be the solution to open and preview the

  • Issue with PCR to restrict absence quota

    Hi Experts. i have a requirement where the absence quota should never be over 24 at any particular time. for this absence 24 leaves per annum with 2 leaves accumulate monthly. we are using -ve time mgt and written a PCR to restrict absence to 24 by u

  • Trouble getting AfterEffects to open and run

    I have installed CS6 Photoshop, InDesign, and Bridge successfully, but when I try to open AfterEffects I get this screen message and don't know what to do: I am running Mac OS 10.9.5

  • File adapter fixed lenght with justify

    Hi Developers , I'm developing an interface JDBC - File , the file have a special format because is a flat file with fixed length and some of the fields have to a justified to left , it's possible do that with the file content conversion ????, the ex

  • How Do I Build This in the Portal?

    I am a new to SAP Enterprise Portal and have some little Java development experience. I have built a Java system using Sun One Studio and Tomcat that includes the following: 1. A JSP that presents a table of customers to a sales rep, allowing them to