cancel
Showing results for 
Search instead for 
Did you mean: 

Adaptive Web Service Model - issues

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

This error can occur when the server on which the web-services are deployed is not up or running. Or somebody is deploying the fresh web-services again on the server.

thanks & regards,

Manoj

former_member751941
Active Contributor
0 Kudos

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.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f07de95b-d81c-2a10-3daf-96172e84...

For Publishing Webservice.

http://help.sap.com/saphelp_nw70/helpdata/en/f7/af60f2e04d0848888675a800623a81/frameset.htm

Regards,

Mithu

Former Member
0 Kudos

Hi Julia,

Just check the same webservice in wsnavigator also whether u r able to execute the service with same user/pwd?

regards

Sumit