on 12-27-2004 11:19 AM
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!
I recommend to use ..._doc_lit.wsdl
it supported by all components, other some times not supported by different servers.
Regards,
Roman.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created a client which compile and has been deployed.
I do not success calling a method. I get an exception.
Something strange in the method about the URL.
I created the client and the wizard added: "String aUrl = "http://localhost:8100/irj/servlet/prt/soap/MyTimeService?style=doc_lit";"
The J2EE engine is not located on my computer but on a remote machine. I don't know why it gets this URL.
The fact that all my PAR files are deployed on the remote J2EE engine server proovs that I did configured the correct URL ( of course I see the PAR files in the Portal).
Thanx a lot.
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
Hi David,
Check that this URL not come from WSDL file of server WS(look on end of file).
Regards,
Roman.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roman,
I did change the URL to the correct one.
I followed a simple tutorial and made everything from scratch.
In my client , I wrote :
IMyGoogleService googleService = (IMyGoogleService)
PortalRuntime.getRuntimeResources().getService("WebServiceTutorial.MyGoogleService");
I don't get an exception here.
But when I call a method, I do get an exception....I think it is an Authorization problem.
Maybe I should add a property in the portalapp.xml file.
I tried but still don't work.
Thanx
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
What is portal and J2EE (WAS) version ?
Did you define in portalapp.xml startup property 'true' ?
Regards,
Roman.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am using Netweaver 04.
I did get the WSDL file by writing the right URL in my Browser.
I still not see my service in the SOAP Admin. Strange...
Maybe I am using an old way for creating web services.
I create them by using the SAP Visual Studio Netweaver 04. I created a Portal Application Project and after I associated to this project a new Portal Application by selecting a "Portal Web service from portal service".
Is it the right way to do it ?
If yes, do I need a UDDI server in order to publish my services ?
Thanx for your help
Hi David,
You can call your web service
http://<server>:<port>/irj/servlet/prt/soap/<service name>?style=doc_lit
Regards,
Roman.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.