How to create iView to run Web Service

Hi,
I need create iView on EP7 NW2004S SP12 portal to run Web Service provided on SRM 6.0 system.
Here is how I have attempted to create the iView:
1. Right click and select New =>iView.
2. Select "iView Template" radio button.
3. Select "Web Service iView" radio button to specify Web Service Template.
4. Enter name and ID of iView.
5. Select System Alias of System defined earlier.
At this point, the portal attempts to connect to the ECC system, and it fails with this error, and I cannot finish the create of the iView.
Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter.
Here are the key parameters defined for the System referenced by the system alias:
WSDL_URL:http://sap2.mycompany.com:50000/SRM-MDM/SRM_MDM
Logon Method:UIDPW
User Mapping Type:admin, user
CodeLink:com.sap.portal.systems.webservices.webservice_system
I've also created a usermapping for the Everyone group, and provided the userid and password for the system alias successfully.
Thanks,
Kevin

Thank you for that information.  I had not previously seen a procedure on how to setup an iView to run a web service. 
I had created the System just as described in this blog, but I still have a problem.  When creating the iView (on the last step of process when I click Finish), the portal attempts to connect to the SRM system, and it fails with the error highlighted below.
Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter.
I get an error in System Administration as well when I test the connectivity for the System object.
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the backend application using the connector defined in this system object
Results:
Retrieval of default alias successful
Connection failed. Make sure that Single Sign-On is configured correctly
How does the security need to be setup to make this work?  Or what could be causing this error?  I do have SSO configured between the portal and the target system.
Thanks,
Kevin

Similar Messages

  • How to create Query as a web service in  Business Objcets

    Hi Friends,
    Can any one please guide me ' How to create Query as a web service in Business Objects'.
    Thanks in advance.
    Thanks & Regards,
    Ramnaresh.P.

    Hi,
    which version of BOBJ are you using?
    Regards
    Stratos

  • Urgent! How to create a ebook using web services?

    Hi I would need some help on how to creating a e-book using web services. Sample code would be good for me.
    I had been finding sources for quite sometime but i doesn't seems to be easy to find as compare to andriod.
    Description:
    Windows 8.1 SDK Sliverlight.
    The e-book will on PDF format.
    Once user click e-book icon, i would link to my database to retrieve all the ebook available via web services.
    Then user select the e-book, the content will be again retreive from my database to the users.
    Is there any solution? I need it quite urgent.

    Hi Ding Zheng,
    >>Once user click e-book icon, i would link to my database to retrieve all the ebook available via web services. Then user select the e-book, the content will be again retreive from my database to the users.
    According this approach, I would suggest you make good use of build-in API to render PDF in store app. see more classes in the following namespace.
     http://msdn.microsoft.com/en-us/library/windows/apps/windows.data.pdf.aspx. Using this APIs need PDF file in local storage, so I list the following steps
    for you to try.
    Step 1, Store PDF file in web site folder and save the PDF URL in database.
    Step 2, Use Web service/WCF/REST service to public the PDF to store app.
    Step 3, Store app uses service to get PDF list and then display them.
    Step 4, User choose one PDF, get the PDF download URL from service and then download it on local storage. Store app support download file form server, you can use BackgroundDownloader. See from
    http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.backgroundtransfer.backgrounddownloader.aspx.
    Step 5, Use PDF APIs to render it in store app. See code sample
    https://code.msdn.microsoft.com/windowsapps/PDF-viewer-sample-85a4bb30#content.
    Please feel free to let me know if you have any concerns.
    Regards,
    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.

  • How to create or simulate a WEB service? Scenario RFC to WEBService.

    Hello PI experts,
    I'm creating an interface with this scenario: RFC->PI->WEBService, the message is synchronous. The problem is that we don't have nothing at the webservice yet, I just want to know if have a way to create or simulate a webservice to test my interface? If someone have some material or information please it will be very helpfull.
    Thanks

    Create two scenarios.
    1) Using SOAP sender you can create a web service.  So create a simple scenario using soap sender and  use some receiver like jdbc or file or something for your test.  Create WSDL using sender agreeement and save the wsdl.
    2) create RFC to SOAP scenario. In the receiver side use the WSDL as external definition for the receiver mesg structure. Configure SOAP receiver to point  the soap service created using soap sender in the step 1.
    Basically you need to know SOAP sender for the step 1 and Soap receiver for the step 2 configuration and design.
    Refer these links
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    http://www.riyaz.net/blog/xipi-a-guide-to-using-sap-xi-soap-adapter/technology/sap/113/

  • How do I create a "document-centric" Web Service?

    By document-centric I'm talking about receiving a SOAP message on the server-side, where the initial parsing and security processing (this aspect is very important) is performed but then allowing the developer to access the delivered "payload", i.e. the XML, and perform whatever mapping/processing that is required without automatically mapping to the "standard" auto-generated Java objects.
    It is important that the client receives the "full" complex WSDL and can therefore generate their proxy classes with whatever tool (or language) that is appropriate.
    On the server side we do not want to create hundreds (if not thousands) of Java Bean clases as we already have the legacy code to map XML to Java. The idea is that JAX-RPC only instantiates the SOAPElements that represent the "raw" message, or, if possible, doesn't instantiate any objects whatsoever.
    I've spent many days now trying to find a single well-worked example for this type of Web Service without success - many, many references of the style "..and you can then create a document style web service.." but without the all important "how".
    From what I've read a custom type-mapping and/or serializer/deserializer could be the answer but again no good, solid examples are forthcoming.
    Another alternative seems to be to create the server side stub-classes using a "dummy" WSDL with the elements set to "anyType" but then distribute the "genuine" WSDL to the clients - we've got a simple example of the kind working but I don't like the idea of "tricking" the system in this way.
    I'm working with WASD 5.1, which in theory conforms with JAX-RPC so any ideas offered here should also apply in that environment.
    Has ANYONE successfully created a service of this type?
    Any help with this issue would be very much appreciated and rewarded (with Duke Dollars of course).
    Chris.

    Chris,
    I too noticed that most vendors take the RPC centric approach. Its because most of the industry examples of how WSs were used were simple enough to implement using RPC and anything more (document literal) would add to the complexity of implementation. This is something that is feared by many developers, especialy the .Net crowd who seem to want everything done through a wizard menu interface and don't care about other WS implementations at all.
    This is sort of changing. J2EE 1.4 is WS-I compliant, so when you compile server side ties from WSDL you can specify a document literal option and WS-I compliance. This gives you access to the SOAPElement objects. There's still issues with going between W3C DOM and SOAP elements but that's just API inconvenience, not a show stopper. As the inudustry develops more complex WSs we will see the vendors change their tools to better support this...
    Anyway, some more help...
    I use the the following wscompile options to build from WSDL for document literal WSs.
    wscompile.bat -d . -nd . -s . -f:documentliteral -f:wsi -keep -model model.gz -import config.xml
    wscompile.bat -d . -nd . -s . -f:documentliteral -f:wsi -keep -model model.gz -gen:server config.xml
    My "wrapper" elements look like this...
    <xs:element name="AComplexXMLResponse">
         <xs:complexType>
              <xs:sequence>
                   <xs:element ref="myNS:MYComplexXMLType"/>
              </xs:sequence>
         </xs:complexType>
    </xs:element>
    If I do this:
    <xs:element name="ASimpleXMLResponse">
         <xs:complexType>
              <xs:sequence>
                   <xs:element name="AName" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
    </xs:element>
    I still get the JAXRPC language bindings to a string, but in my case I don't really care. This may well be different for you.
    What I do to manage these elements is to split up the WSDL, WS wrapper element definitions and actual data XML schema definitions into separate documents. This means I have a WSDL which IMPORTS my message schema (this is where I define wrappers for in and out XML) which INCLUDES the actual DATA XML schema that I have.
    The WSDL import looks like this:
    <types>
         <xs:schema>
              <xs:import namespace="http://schemaURI" schemaLocation="./relativePath/WrapperElementSchema.xsd"/>
         </xs:schema>
    </types>
    The wrapper element schema has:
    <xs:include schemaLocation="./ActualDataSchema.xsd"/>
    This way I can easily replace the wrapper documents with just anyType references if something doesn want to play nice. The data schema file and the WSDL stay the same. This minimises the impact on what you have to change in your distribution. This is important as the WSDL is often generated on the fly by your WS environment and so can not be easily changed once you build your WSs, but the schema files it references are easily changed without affecting your code.
    Another reason for the wrapper elements was a JWSDP 1.2 issue (I don't know if this has been fixed in 1.3), where if you had the same method parameter signature in a web service (the parameters it took were the same XML types, for instance if you have an add and update methods for the same document input) JWSDP would get confused at runtime. It did not take account of the SOAP action that came along with the request to determine which operation to call. It just took the incoming XML, saw that it was of a certain type and it passed it to the first operation that took this element, which is VERY wrong. By using the wrapper elements, I could give all my input and output elements for each method different names (I used a naming stragegy that appended a 'request' or 'response' string to the method name to form a method parameter element name. This is a pain in the ass, but works and does wonders for interoperability with other WS vendors. Like I said before, I've got this working with JWSDP, BEA and .Net servers and clients.
    Hope this helps,
    If you think there is a real need for a public HOWTO on this, I could write one with a full step by step guideline that shows where I broke my legs getting this stuff to work. But this would eat into my sleep time :-/ TO JUDGE INTEREST I call on all people interested in a tutorial to respond to this thread (esp people involved with the JWSDP WS tutorial documentation). If I get 5 or more different people responding I will loose some sleep for the good of this community. Otherwise, I will just try to help you when I have time to read the forums.
    Kuba

  • How can I create a query with web service data control?

    I need to create a query with web service data control, in WSDL, it's query operation, there is a parameter message with the possible query criteria and a return message contains the results. I googled, but cannot find anything on the query with web service. I cannot find a "Named Criteria" in web service data control like normal data control. In Shay's blog, I saw the topics on update with web service data control. How can I create a query with web service data control? Thanks.

    Hi,
    This might help
    *054.     Search form using ADF WS Data Control and Complex input types*
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • Folder of actively running web service

    Hi,
    How can I get the folder path of the actively running web service in labview. It seems that it is stored as a sub-folder in C:\ProgramData\National Instruments\WebServices\aws.

    Hi user508086,
    Which api's, jars are you porting with the webservice proxy?
    I would like to know which dependencies are present when creating a web service client in Jdeveloper.
    In my java project, which only holds the web service client code, uses 4 different project libraries which contain a lot of api's, which aren't needed for only a web service client.
    Did you manage to drill down the web service libraries to only those that are being used, or did you ported all jars included in the project libraries (oracle xml parser v2, J2EE, JAX-RPC Client, Commons Logging 1.0.3).
    Kind Regards,
    Nathalie

  • How to connect to database in web service??

    Hi all,
    How to connect to database in web service ? Can anyone give some advice what kind of database should i use? thanks

    No difference. Just connect as usual!
    Let me give you an example:
    Code to connect to postgresql db ...
    public Connection connectPostgresql(String servername, String dbname, String username, String password)
              Connection conn = null;
              try
                        // Load the JDBC driver
                        String driverName = "org.postgresql.Driver";
                        Class.forName(driverName);
                        // Create a connection to the database
                        String url = "jdbc:postgresql://" + servername +  "/" + dbname;
                        conn = DriverManager.getConnection(url, username, password);
                        return conn;               
              catch (ClassNotFoundException e)
                        // Could not find the database driver
                        return conn;
              catch (SQLException e)
                        // Could not connect to the database
                        return conn;
    }Code for an axis web service ...
    public Element[] updateProfile(Element[] params)
              String message = "";
              // get str 1
              Node node1 = params[0].getFirstChild();
              String str1= node1.getNodeValue();
              // get str 2
              Node node2 = params[1].getFirstChild();
              String str2= node2.getNodeValue();
              Connection conn = connectPostgresql ("localhost","myDatabase","myUsername","myPassword");
              // there is a method to insert these params to db
              boolean isInserted = insertParams(conn, str1, str2);
              if(isInserted )
                        message = "OK";
              else
                        message = "Not OK";
              // constructs an array of DOM Elements for message to send back to client
              SOAPBodyElement[] response = new SOAPBodyElement[1];
              response[0] = new SOAPBodyElement(XMLUtils.StringToElement("urn:foo", "e1", message));
              return response;
    }Gokce.

  • How to deploy and debug java web service in eclipes or using any other soft

    Hai,
    can any one tell me how to deploy and debug java web service in eclipes or using any other software.
    i have used tomcat web server and jdk1.4.0 to develop web service.
    we have used web service to interact with MS outlook .
    bye
    sudhakar.m

    Hi Sudhakar,
    If you are used to working with ant then you can very well use eclipse to deploy your web service.
    You would usually have the ant script in the source root working directory. From eclipse if you select the build file from the navigator view and right click you will see a run ant option in the pop up menu.
    Select that option and you would be able to see each targets with a checkbox select option. So define each target maybe one for wsdl2java conversion, one for compilation and one for deploying your web services. You can either make all of them run by having depends option on or you can run them individually as it takes your fancy.
    I am not sure about debugging a web service yet.
    Hope this helps
    Aviroop
    The truth is out there? Does anyone know the URL?

  • Run Web Service Action

    Can someone point me to any documentation for the Run Web Service action? I'm looking for simple field level syntax. I'm able to begin a session but can't seem to use it for anything. The XML-RPC provider requires login and key (password) and need to know how to format that in the parameters field.

    This is not for the action itself, but the underlying AppleScript support is documented here.

  • How to develop and call Asynchronous web service

    Hi All,
    I need to have a java web service that will be called asynchronously.
    That should execute, once triggered and caller shouldnt need to wait till its completion.
    How to develop and call asynchronoue web service ?
    Thanks
    Saikrishna

    Let your web service start its own background thread (*) somehow and move your business logic from web service to this thread. Then you can return from your web service. The client won't be blocked and your application will run on your server after service callout will be finished.
    I hope that's what you need. Anyway, there is only "asynchronous communication" and nothing like "asynchronous web service". At least from HTTP point of view, every call is synchronous - you have request and response.
    (*) You shouldn't start your own thread since you are in JEE world. Look at documentation for your container. E.g. for weblogic there are workers you can use this way. Or you can choose the other way. I hope that for any container you can just enqueue your web service request to any JMS queue and move your business logic to an appropriate MDB. Then, your web service will be just a simple JMS producer and your web service client won't be forced to wait for business logic to finish.
    Last but not least, next time choose a better forum. :-)

  • Creating simple chain of web services

    Hello.
    My version of WLS is 8.4.
    What I describe is easy to do with Weblogic Workshop, but not Weblogic Server.
    What I want to do is the following:
    1. Create and deploy very simple web service WS1.
    2. Create and deploy another web service WS2 that calls a web operation of WS1.
    3. Create and deploy another web service WS3 that calls a web operation of WS2.
    etc.
    In Workship it is easy to do as one can add a web reference to each other web service in the chain.
    What is the most straightforward way to do that sort of thing with Weblogic Server?
    I'd appreciate it if you could answer to [email protected] as well as posting here.

    Hi,
    Yes, you are right, this is very simple in WLW, unfortunately in WLS, one way of doing this by running the clientgen utility for each service and wrapping that call within an ejb. Not very clean, but will help you get the job done.
    http://e-docs.bea.com/wls/docs81/webserv/client.html#1069294
    hope this helps.
    -Raj

  • How to create a new bundle of service and import it as normal user.

    Hi,
    I have created a service.
    Now am able to import and enable the service.
    I have placed my xml file under
    /var/svc/manifest/site
    The service name is
    <service
    name='site/newservice'
    I have imported the service as root user.
    <exec_method type='method' name='start' exec='/tmp/new/method/newservice start' timeout_seconds='30' />
    This service is not able to execute the operation which I have mentioned above. The following error is thrown in log file.
    Error: User 'root' is not the owner of '/tmp/new/method'
    So I tried to import the service as normal user, the following error is thrown.
    svccfg import /var/svc/manifest/site/newservice.xml
    svccfg: Could not create temporary service "TEMP/site/newservice" (permission de nied).
    svccfg: Import of /var/svc/manifest/site/newservice.xml failed. Progress:
    svccfg: Service "site/newservice": not reached.
    svccfg: Instance "newservice": not reached.
    Please help me to solve this issue.
    I thought instead of placing the service in default location,Why cant we create a new service of bundle and place the service there.
    Please help to solve this issue by suggesting some solution or how to create a new bundle of service and import it as normal user.
    Regards,
    Kalai

    kalaiyarasan_P wrote:
    Hi,
    I have created a service.
    Now am able to import and enable the service.
    I have placed my xml file under
    /var/svc/manifest/site
    The service name is
    <service
    name='site/newservice'
    I have imported the service as root user.Okay.
    <exec_method type='method' name='start' exec='/tmp/new/method/newservice start' timeout_seconds='30' />
    This service is not able to execute the operation which I have mentioned above. The following error is thrown in log file.
    Error: User 'root' is not the owner of '/tmp/new/method'By default, services run as the 'root' user. It's complaining that the method isn't also root.
    So I tried to import the service as normal user, the following error is thrown.You won't be able to do that easily. The user that does the import is almost always root. But wihin the manifest you could have it run as a different user.
    I thought instead of placing the service in default location,Why cant we create a new service of bundle and place the service there.
    Please help to solve this issue by suggesting some solution or how to create a new bundle of service and import it as normal user.You don't need to import this as a normal user, do you? You just want it to run as one, right?
    Darren

  • Create Sales Order via Web Service

    Hello All,
    I am trying to create a standard sales order using a Web Service and having some problems. 
    I am using BAPI_SALESORDER_CREATEFROMDAT2 and it is working EXCEPT that it needs to be followed immediately by a BAPI_TRANSACTION_COMMIT for the sales order to be saved in the database. 
    There doesn't seem to be any session state being saved between my first request and my second so the COMMIT doesn't work. 
    Can anybody tell me how session state is maintained in Web Services on the NetWeaver platform? 
    Or is there another SOA service that will do the COMMIT as part of its operation?
    Any help would be GREATLY appreciated!
    Thanks

    Hi Randy,
    If you install the SAP ERP ES (enterprise service pack), you will get a ready list of standard list of enterprise services. Out of these, the enterprise services for creating/editing sales order are also there. To check out, please go to the Enterprise Service Workplace https://www.sdn.sap.com/irj/sdn/esworkplace and check the Ent. Services at http://erp.esworkplace.sap.com/socoview(bD1lbiZjPTgwMCZkPW1pbg==)/smdisplay.asp?id=7AB0BCC20B1611DA1503000BCDDC2565&fragID=&packageid=DBBB6D8AA3B382F191E0000F20F64781&context=&iv=
    Regards
    Nilay

  • More than one parameter in "Run Web Service" automator action?

    Hi,
    any one know how to send to parameters to a web service with the "Run Web Service" automator action?
    i tryed
    {paramA:"foo",paramB:"bar"}
    but didn't work, the service seem to get only the first one
    Thanks a lot
    updated: actually that works, but not {USER:"foo",PASSWORD:"baR"}. it takes the user but not the password. Any idea?
    PowerBook G4   Mac OS X
    (10.4.6)  

    Can you share some specs on the service in question? To send a struct you need to make sure your labels match on the server side. Enclosing them in |pipes| will avoid terminology conflicts. You may also need to specify each struct in its own curly brackets, e.g. {{|USER|:"foo",|PASS|:"bar"}}
    HTH

Maybe you are looking for