on 06-17-2009 12:49 PM
hi colleagues,
I want to consume webservice that is in ABAP syatem in webdynpro java project .
I just want to know what is the basic thing need to do for consuming webservice.
Thanks,
sudhanshu
Hi,
Have u released ur webservice when u exposed it .
Also for your older webservice have u checked its working in WSADMIN by selecting the WS and from Main menu--Webservice-Webservice homepage ,This will directly open your Webservice in WS navigator for testing.
please make sure that in WS admin for the exposed webservice you have properly configured the Logon data.
But why you are consuming the RFC via webservice why not from ARFC model.
Siddharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sid,
i am learning webdynpro java model part and here the option avail for consuming webservice,consuming adaptive rfc and other.so i try for all so that i can use all this in my future project.
and where is WSADMIN
do you know if have wsdl then how can i deploy in webservice navigator so taht i can test whether the created webservice working fine or not.
Thanks,
sudhanshu
Hi
Release of Webservice is done in R/3 level more over its abaper part to do.Once it is released it will be available in wsnavigator.
All webservices are available in wsnavigotor.Check your webservice name which was created by abaper and test it.
Otherwise Go to Tcode: WSADMIN
Select the webService and click on Execute method or WSDL icon it redirects to XML File.Savve the XML File to desktop and use it while creating the model by browse option it will work.
Thanks
Tulasi Palnati
Hi Sudhashu,
wsadmin is a transaction in backend where you can see your pusblished web services.
You need to specify j2ee engine in the transaction 'soamanager' to make use of wsnavigator of your portal.
Are you using a standard bapi?
Why dont you try with this url to get the wsdl.
http://<HostName>:<PortNo>/sap/bc/soap/wsdl/?services=<BapiName>&sap-client=<ClientNo>;
Store it in your local system and try creating model.
Best Wishes
Idhaya R
Hi idhaya,
There is no such service in tcode WSADMIN
http://<HostName>:<PortNo>/sap/bc/soap/wsdl/?services=<BapiName>&sap-client=<ClientNo>;
in this url
host and port is abap host and port
bapi is service interface name is it...
Thanks,
sudhanshu
Hi ,
i specified host and port of my local j2ee engine .
so is this possible all previously exposed webservice automatically come to webservice navigator or we need to do something else.
and regarding the url that u specify
http://<HostName>:<PortNo>/sap/bc/soap/wsdl/?services=<BapiName>&sap-client=<ClientNo>;
i m just asking that we have to specify the abap host and port name here
and what we mention in Bapi....
Thanks
sudhanshu
Edited by: Sudhanshu Agarwal on Jun 18, 2009 3:20 PM
Hi,
You are using a bapi as a web service right? Use that bapi name.
Use this link for testing the web service.
http://help.sap.com/erp2005_ehp_04/helpdata/EN/47/39b5df39591a53e10000000a1553f7/content.htm
Best Wishes
Idhaya R
hi
exposing webservice from the abap , first thing you have to expose your FM to webservice
select the FM - from the menu Utilities ->more utilities ->provide the service name
and click next and finish . you can get your service definition in the SE80 , select you
service , in the right side you can find WSDL tab , you can download the wsdl file on the desktop
and integrate in the NWDS.
you have to create the destinations in the visual admin tool to successfully execute the weebservice .
you can find many articles to use webservice in SDN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi colleagues,
I did all the settings in sap visual administrator also but i m getting this exception
" java.io.IOException: com.sap.engine.lib.xml.util.NestedException: WSDL 'portType' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' ! "
Even i set the destination for both metadata and execution .
Please help me on this issue.
hi,
as this statment show that there will be some configuiration problem.how can i check that thing .I maintained all info in visual admin under websecurity and create one for each meta data and modelinstance.
plz refer this statment with the above message exception
"com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WS metadata destination 'DEFAULT_WS_METADATA_DEST' and WS interface 'BusinessPartnerERPByElementsQueryResponse_In'. One possible reason is that the metadata destination 'DEFAULT_WS_METADATA_DEST' has not been properly configured; check configuration."
plz help me on this issue.
Thanks,
sudhanhsu
Hi
Hav you created the destianation with the exact name: 'DEFAULT_WS_METADATA_DEST'?
And have you created the destination in the same location mentioned in the below document?
Please confirm?
Regards,
Charan
Hi,
You can create the Adaptive Webservice model with no logical destinations and in the model propery you can give the design time url (webservice url).
This is for testing purpose. Using this we can make out whether the problem is with the destination configuration or with the webservice structure.
Regards,
Charan
hi,
ya i gave this URL and also i check on IE its working fine.
And why we donot need to give clent system and all this..
as we are accessing info frm ABAP backend system i think this info is must.
Thanks
sudhanshu
Hi Sudhanshu,
If you are using Bapi as a webservice try to use this url to get wsdl document
http://<HostName>:<PortNo>/sap/bc/soap/wsdl/?services=<BapiName>&sap-client=<ClientNo>;
Choose View --> Source in your internet explorer
And save the source code as .wsdl file . Use this in your project for creating model.
Give this Url in your modeldata dest which you might have created in Visual Admin.
Best Wishes
Idhaya R
Hi ,
I tried what u mentioned in last thread.
1.create model
2.select "Import adaptive webservice model"
3.select" Local File Syatem or URL"
4.select "No logical destination"
5.url = "http://usai3q43.wdf.sap.corp:50036/sap/bc/srt/wsdl/bndg_4A37AE5EA4693FE0E10000000A421805/wsdl11/allinone/ws_policy/document?sap-client=340"
but when i pressed next it give me error " error in loading the wsdl file"
plz help me on this issue.
Thanks,
sudhanshu
Hi,
Try as below
"http://usai3q43.wdf.sap.corp:50036/sap/bc/srt/wsdl/bndg_4A37AE5EA4693FE0E10000000A421805/wsdl11/allinone/ws_policy/document?sap-client=340&wsdl"
First you try to dnld the wsdl in internet explorer.
If you are able to dnld the WSDL in IE then you can save it on your machine and you can create the model using this wsdl (by choosing the local file option).
Or if possible ask abap team to give the wsdl.
Regards,
Charan
Hi
1.Try to check whether webservice is working or not through wsnavigator http://<hostname>:<portno>/wsnavigator
2.Try to save the xml file in desktop and select it when you are creating the model.
Thanks,
Tulasi Palnati
Hi tulasi ,
i tried in webservice navigator,but it giving error
"Cannot download WSDL from http://usai3q43.wdf.sap.corp:50036/sap/bc/srt/wsdl/bndg_4A37AE5EA4693FE0E10000000A421805/wsdl11/alli... WSDL 'portType' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' ! "
i think this is same error that i m getting on run time.
Plz help me on this issue
Thanks,
sudhanshu
Hi
1.are you giving all the mandtory input parameters in the Request(wsnavigator).
2.If it is not working on Wsnavigator it was related to abaper issue.
3.In Wsnavigator,Are you able to see the webservice which was given by abaper.
Thanks,
Tulasi
Edited by: Tulasi Palnati on Jun 18, 2009 11:21 AM
Hi tulasi,
1. i run http://localhost:53000/
2.select webservice navigator
3. then they ask to enter "enter wsdl url" so i wnter the the given url.
"http://usai3q43.wdf.sap.corp:50036/sap/bc/srt/wsdl/bndg_4A37AE5EA4693FE0E10000000A421805/wsdl11/allinone/ws_policy/document?sap-client=340
"
4. then tjey ask for username and password then i given that
5 after when i press next it will give the error
" Cannot download WSDL from http://usai3q43.wdf.sap.corp:50036/sap/bc/srt/wsdl/bndg_4A37AE5EA4693FE0E10000000A421805/wsdl11/alli... WSDL 'portType' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' ! "
Help required on this issue.
I also mailed to abap guy and waiting for response.
Thanks ,
sudhanshu
Hi,
In the WSDL xml file go to the below location and take the url from this location.
<soap:address location>
And you are telling like with WSDL xml file you are able to successfully create the model right?
Exactly when you are getting this error??
While creating the model ? Or While executing the model?
And go to the blow location in NWDS IDE and check whether proxy is configured properly.
Windows>Preferences>Workbench-->Proxy settings
Regards,
Charan
Hi
Dont enter URL in the inputfield.All Webservices are available below the Input Field.
Select your service and here u will find methods defined for the same .
Select the method required for ur component , test the method .
while testing , u will able to find the input and output parameters .
http://help.sap.com/saphelp_nwce10/helpdata/en/46/7a875063e42d86e10000000a11466f/frameset.htm
How to create a web service and how to consume it in portal step by step blog:
/people/sap.user72/blog/2005/09/15/creating-a-web-service-and-consuming-it-in-web-dynpro
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
some more:
/people/purushothaman.vyasarao3/blog/2006/01/02/accessing-an-external-web-services-in-portal
/people/sridhar.k2/blog/2006/09/12/creating-and-exposing-bapi-as-web-service-and-using-it-in-web-dynpro
Thanks
Tulasi Palnati
Hi charan,
proxy server is same in both.
this is soap:address location="http://usai3q43.wdf.sap.corp:50036/sap/bc/srt/xip/sap/ecc_bpbyelementsqr/340/test/test
and this url that i m using for creating model
now plz suggest me which one i have to use.
Thanks,
sudhanhsu
Hi,
Can you try downloading(save as xml) the WSDL in the browser using the below URL.
http://usai3q43.wdf.sap.corp:50036/sap/bc/srt/xip/sap/ecc_bpbyelementsqr/340/test/test&WSDL
And using the below url you are able to download(save as xml) on your machine right? Adn are you able to create the model using that wsdl file or not?
Regards,
Charan
Hi Charan
i download the wsdl in my local using
http://usai3q43.wdf.sap.corp:50036/sap/bc/srt/xip/sap/ecc_bpbyelementsqr/340/test/test
not
http://usai3q43.wdf.sap.corp:50036/sap/bc/srt/xip/sap/ecc_bpbyelementsqr/340/test/test&WSDL,here it ask for user name and password .I given but it not working
BUt the xml is totally different from old one and it has very minimal info.
and regarding older wsdl i.e.
i am able to create model using this but i m getting error on run time that i mentioned in last posts.
Thanks,
sudhanshu
Hi Charan,
As several option available in nwds so i m just trying to use each option so that if there is req in future to consume webservice so that i can use my knowledge that time.As i am also interested in learning new things.
Thanks,
sudhanshu
Edited by: Sudhanshu Agarwal on Jun 18, 2009 4:44 PM
Hi,
Good I agree with you.
I guess there is some problem with the WebService format. Just ask your abaper to give another simple webservice for learning purpose.
Or you can use this free webservice: http://www.webservicex.net/ValidateEmail.asmx?wsdl
for learning purpose. At least you will get some idea.
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to create the Adaptive Webservice Model.
After that you need to create the destination for this WebService in the below location of Visual Admin.
services>WebServiceSecurity>Dynamic WebService Proxies-->Click on Create button.
And you need to give this destination in the properties of Webservice Model.
See the below document for destinations configuration:
This destination is to handle the url, credentials (uname, pwd) dynamically.
See the complete tutorial "Accessing an Email Web Service using the Adaptive Web Service Model" in the below link.
If you are using CE 7.1 go through the below document.
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.