on 10-28-2011 12:14 PM
hello friends,
I use (SAP NetWeaver Developer Studio, Version 7:02:07).
I have an application created using webdynpro (UIApplication). appears on the portal: https://kd5.emea.zf-world.com:50001/webdynpro/dispatcher/zf.com/dynprozf_fixeedilist~ui/UIApplication
my webservice works on: https://kd5.emea.zf-world.com:50001/wsnavigator/enterwsdl.html
I wanted my model to connect with my application (mapping),
So I made in webdynpro right mouse click on model ---> create model ---> Import Adaptive Web Service Model ---> Model Name: EDIModel, Model Package: com.zf.fixe.edilist.dynpro.model, - -> select source wsdl: local file system and URL entered.
and for logical destination
DEFAULT_WS_METADATA_DEST
DEFAULT_WS_EXECUTION_DEST selected.
WSDL: http://kd5.emea.zf-world.com:50000/EDIListWS/EDIListConfig?wsdl
my model methods now appear in webdynpro and I made (model binding) for (EDImodel) and (EDI Custom Controller).
following is the code of my EDI-custom-controller:
-
model = new private EDIModel EDIModel ();
IWDMessageManager wdComponentAPI.getMessageManager manager = ();
try
{
.. wdContext.currentREQ_GetWerkListElement () object model () execute ();
wdContext.nodeRESP_GetWerkList () invalidate ().;
. wdContext.nodeGetWerkList_ERR () invalidate ();
. wdContext.nodeGetWerkListResponse () invalidate ();
. wdContext.nodeGetLieferantList_OUT () invalidate ();
wdContext.nodeGetWerkList_Werk () invalidate ().;
}
catch (Exception e)
{
manager.reportException (e.getMessage (), false);
}
/ / Init data for GetWerkList
Request_GetWerkListe REQ_GetWerkList Request_GetWerkListe = new (model);
GetWerkListe GetWerkList_IN GetWerkListe = new (model);
REQ_GetWerkList.setGetWerkListe (GetWerkList_IN);
wdContext.nodeREQ_GetWerkList () bind (REQ_GetWerkList).;
-
and This is the code in my WSDL (https://kd5.emea.zf-world.com:50001/EDIListWS/EDIListConfig?wsdl):
-
<? xml version = "1.0" encoding = "UTF-8"?>
- <- Generated by WSDLDefinitionsParser ->
- <Wsdl: "urn: EDIListWSWsd" wsdl = "http://schemas.xmlsoap.org/wsdl/" name = "EDIListWSWsd" targetNamespace =: definitions xmlns xmlns: bns0 = "urn: EDIListWSWsd / EDIListConfig / document" xmlns: soap = "http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:import location="https://kd5.emea.zf-world.com:50001/EDIListWS/EDIListConfig/bindings?wsdl&style=document" namespace="urn:EDIListWSWsd/EDIListConfig/document" />
- <wsdl:service Name="EDIListWS">
- <wsdl:port Name="EDIListConfigPort_Document" binding="bns0:EDIListConfigBinding">
<soap:address location="https://kd5.emea.zf-world.com:50001/EDIListWS/EDIListConfig?style=document" />
</ wsdl: port>
</ wsdl: service>
</ wsdl: definitions>
-
But when I build the application and check in the aktivity and call the url on browser. I get the following error on browser:
Exception on Execution of service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'getWerkListe' in web interface ''
-
under this link: https://kd5.emea.zf-world.com:50001/nwa
I see this Destionation:
destination name:
sap.com / DynamicWSProxies / DEFAULT_WS_EXECUTION_DEST
URL:"https://kd5.emea.zf-world.com:50001/EDIListWS/EDIListConfig?style=document"
https://kd5.emea.zf-world.com:50001/EDIListWS/EDIListConfig?style=document
But when i click on the bottun "test Destionation" seem error:
Port is incorrect, connection refused.
-
and if I change the URL like this:
http://kd5.emea.zf-world.com:50000/EDIListWS/EDIListConfig?wsdl
seem: test successful
-
nevertheless I have the error message on browser:
Exception on Execution of service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'getWerkListe' in web interface ''
Please could someone help me?
Edited by: Koroosh on Oct 28, 2011 1:40 PM
Edited by: Koroosh on Oct 28, 2011 1:45 PM
Edited by: Koroosh on Oct 28, 2011 2:00 PM
Edited by: Koroosh on Oct 28, 2011 2:02 PM
Edited by: Koroosh on Oct 28, 2011 2:48 PM
Edited by: Koroosh on Oct 28, 2011 3:02 PM
Edited by: Koroosh on Oct 31, 2011 9:44 AM
try to restart the server if not yet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes the wc in ws navigator works fine
The problem is that the url I've entered when setting model in webdynpro, with the link in the code from my wsdl is not identical
model in webdynpro WSDL: http://kd5.emea.zf-world.com:50000/EDIListWS/EDIListConfig?wsdl
in WSDL code: (https:// kd5.emea.zf-world.com:50001/ EDIListWS/EDIListConfig?style=document)
the conflict is http or https and port: 50000 or 50001
Edited by: Koroosh on Oct 31, 2011 11:18 AM
Edited by: Koroosh on Oct 31, 2011 11:19 AM
Edited by: Koroosh on Oct 31, 2011 11:19 AM
Edited by: Koroosh on Oct 31, 2011 11:20 AM
Edited by: Koroosh on Oct 31, 2011 11:28 AM
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.