Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice in ABAP

former_member191977
Contributor
0 Kudos

Hi,

I have created an rfc function module, and created the webservice from the utitlities tab in se37 which took me to a wizard. The webservice creation is done. After that i went to se80 activated them and then went to WSCONFIG, took the url from there and in the utilities-->settings->BSP the default host is given.

Adding http://default host/URL from WSCONFIG i tried in IE but i couldn't see anything. What could be the error. please suggest.

Thanks.

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You may test your web service by using transaction WSADMIN. In this transaction, you can view the WSDL file as well as lauch the Web Services Home Page which has the Test functionality. This test functionality will allow you to pass parameters to the operations and recieved the response. You will need to have a J2ee engine somewhere in your landscape in order to use this Web Service Home Page. Do you know if your system is a dual stack system(abap and java)? If so, then you are all set, but you may need to define the j2ee engine which you want to use, which can also be done in this transaction.

Regards,

RIch Heilman

0 Kudos

My systems seems to be a dual stack system. Becasue i worked on BSP's and now webservices. As you said rich, i tried to test it via the transaction WSADMIN.

I am able to test it and when i pass the date as the parameter it should give the result table. but i get a msg

An error has occurred. Maybe the request is not accepted by the server:

Deserialisation failed

Do i have to do anything extra. I have couple more questions. Is this the actual way to use the webservice or is there an other way for it.

Also, how do i get the data from other applications using the web service?

0 Kudos

I could over come that deserialization error by looking at the WSDL file and changing the date format.

What i have done right now is to develop an RFC function and created webservice for it. Now, some one sends the email and i should be able to pick that data and create notification in sap. i think this can be achieved using webservices. could some one shed some light to me on this.

Thanks.

0 Kudos

<i>My systems seems to be a dual stack system. Becasue i worked on BSP's and now webservices</i>

To be clear, just because you can work with BSPs and web services, does not mean that you are dual stack, BSPs and webservices run on the ABAP side. Anyway, you appear to have a dual stack if you were able to go to the Web Service Home Page to test your WS.

Not sure how you would handle reading an email and creating a business object inside SAP. I think you can do this using IFbA(Interactive Forms by Adobe).

Regards

Rich Heilman