Skip to Content

Web Services...

Hi everyone,

I've read few ways to create a web service : or with the Eclipse plugins by creating a Portal Application or by creating a model in WebDynpro.

Is there a complete tutorial explaining how to create a web service ?

Thanx!

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Best Answer
    Posted on Dec 28, 2004 at 02:44 PM

    I recommend to use ..._doc_lit.wsdl

    it supported by all components, other some times not supported by different servers.

    Regards,

    Roman.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      This is normal, if you get this url from your par and not from the runtime.

      The value localhost(default value) is dynamically change when calling the WSDL on an running portal.

      If you are using a Portal WS client, you have a method on the proxy allowing you to change the url.

      Best Regards,

      Frederic

  • Posted on Dec 27, 2004 at 11:37 AM

    Hi David,

    The easy way is:

    Create portal service in the Eclipse (+ plugins).

    Write all application logic in this service.

    Generate WebService from this service (this operation done by plugins) - so you deal with familiar for you area - simple java coding, and plugins do for you a job - generation of WebService 😊

    Regards,

    Roman.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Roman,

      The code is written. The PAR file created and deployed.

      Now, the System Admin told that I can run the service by using the following URL :

      http://<IP>:<port>/wsnavigator/enterwsdl.html

      Is it a second way to execute a WS ?

      I don't see my WS there...The Sys Admin do not want to give the System Administration role to programmers....

      Thanx Roman.

  • Posted on Dec 27, 2004 at 01:19 PM

    Hi David,

    You can call your web service

    http://<server>:<port>/irj/servlet/prt/soap/<service name>?style=doc_lit

    Regards,

    Roman.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Roman,

      Thanx for your help.

      I didn't see in the "System Administration ->Support->Portal Runtime-> SOAP Admin" the WSDL file.

      How is it ?

      I did deploy the WebService from the Eclipse IDE.

      I've seen the PAR file in the admin tool that lists all the PAR files deployed.

      My system admin told me to launch the Web Services from the Sap Web Application Server (http://<server>:<port>/index.html)->clicking on "Web Services Navigator".

      Is it the good way....need help.

      Thanx in advance.

  • Posted on Dec 27, 2004 at 04:54 PM

    Hi David,

    What is portal and J2EE (WAS) version ?

    Did you define in portalapp.xml startup property 'true' ?

    Regards,

    Roman.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 28, 2004 at 02:26 PM

    Hi David,

    From now you can use your webservice (no need to publish it). Just create WS client and test your WS.

    Is URL call your WS I recomended work for you?

    Regards,

    Roman.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Roman,

      The URL does call the ws.

      Now I am creating a WS client. I have to chose a wsdl file.

      I have 3 wsdl for the WS created :

      ..._doc_lit.wsdl

      ..._rpc_enc_wsdl

      ..._rpc_lit.wsdl

      Each one of them give me the methods I need. Is there a special choice to do here

      Thanx.

  • Posted on Dec 28, 2004 at 04:11 PM

    Hi David,

    Check that this URL not come from WSDL file of server WS(look on end of file).

    Regards,

    Roman.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.