on 12-28-2007 9:50 PM
I am using ABAP web service which I want to invoke from the WEB Dynpro application.
I have tested this service in the ABAP w/bench - works fine.
I have configured the dynamic WS proxy "discoverySystem "in Visual Admin app as follows:
URL (custom) http://iwdfvm2160.wdf.sap.corp:51080
System Id = <name>
Client = 200
Language=EN
I specified Basic Authentication, user name and password.
I specified this proxy as a defaultMetadataDestination and defaultExecutionDestination in the Model (.wdmodel file)
When I run the application, i get the following error:
com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WS metadata destination 'DiscoverySystem' and WS interface 'Z_WS_BAPI_SALESORDER_GETLIST'. One possible reason is that the metadata destination 'DiscoverySystem' has not been properly configured; check configuration.
Any ideas what is wrong with destination configuration?
Thanks,
Julia
Thank you all for your responses.
I have found my problem and wanted to share the solution.
The web service is up and running - I was able to test it with ABAP w/bench Web service navigator and Microsoft InfoPath Form Builder.
The destination configuration in the tutorial for ABAP w/service was in the form
http://<server name>:<port> which was not enough.
I have changed the destination configuration to point to exact wsdl file:
URL custom: http://iwdfvm2160.wdf.sap.corp:51080/sap/bc/srt/rfc/sap/Z_WS_BAPI_SALESORDER_GETLIST01?wsdl=1.1
I have placed a debug statement in the code
catch(Exception e)
{
manager.reportException(e.getMessage(), false);
manager.reportException(requestMO.toString(), false);
}
and found out the real reason for this exception - I did not instantiate some nested classes in the model object.
Once I fixed that, the execute method returned the results.
Also I have changed the destination configuration to point to wsil instead wsdl and everything still functioning:
URL custom: http://iwdfvm2160.wdf.sap.corp:51080/sap/bc/srt/wsil
Thanks to everyone.
Julia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have changed the dynamic proxy configuration as followed:
URl (Custom): http://iwdfvm2160.wdf.sap.corp:51080/sap/bc/srt/rfc/sap/Z_WS_BAPI_SALESORDER_GETLIST01?sap-client=20...
System ID = <name>
Client=200
Language=EN
Authentication=Basic
I have set user name and password as a valid SAP user/password
I can not execute the service anyway - the same error, the wsdl is not valid.
Exception on execution of web service with WSDL URL 'http://iwdfvm2160.wdf.sap.corp:51080/sap/bc/srt/rfc/sap/Z_WS_BAPI_SALESORDER_GETLIST?sap-client=200&wsdl=1.1' with operation 'BAPI_SALESORDER_GETLIST' in interface 'Z_WS_BAPI_SALESORDER_GETLIST'
Do you have any idea as to what I might be doing wrong?
Julia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Julia,
It seems metadata destination has not been configured properly. Try to follow the steps mention in the document. Page no 16 and 17.
For Publishing Webservice.
http://help.sap.com/saphelp_nw70/helpdata/en/f7/af60f2e04d0848888675a800623a81/frameset.htm
Regards,
Mithu
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.