cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with webservice and model connection

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

try to restart the server if not yet.

Former Member
0 Kudos

Thank you for answer,

I restarted server, unfortunately the problem was not solved

Edited by: Koroosh on Oct 31, 2011 11:06 AM

junwu
Active Contributor
0 Kudos

are you able to run the ws in ws navigator?

Former Member
0 Kudos

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

Former Member
0 Kudos

Now I have an new error in the coding :

The method modelObject() is undifined for the type

IPublic_EDIcustom_Controller.IREQ_GetWerkListElement

Edited by: Koroosh on Oct 31, 2011 2:14 PM

Edited by: Koroosh on Oct 31, 2011 2:15 PM

Edited by: Koroosh on Oct 31, 2011 2:44 PM

Former Member
0 Kudos

Hi Korosh,

Have you solved the problem? I am getting the same error,

Exception when retrieving the WS invoker using the execution destination

Please advise.

Thanks,

Appachi

Former Member
0 Kudos

hi Appachi,

I have not yet solved the problem !!!!

Edited by: Koroosh on Nov 2, 2011 9:19 AM