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"

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:41 PM

Edited by: Koroosh on Oct 28, 2011 1:42 PM

Edited by: Koroosh on Oct 28, 2011 1:47 PM

Edited by: Koroosh on Oct 28, 2011 1:55 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:01 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

anja_engelhardt2
Active Contributor
0 Kudos

Hi,

can you test whether your web service works fine in Web Service Navigator?

Regards

Anja