Skip to Content
author's profile photo Former Member
Former Member

Problem with webservice and model connection

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 ->

- http://schemas.xmlsoap.org/wsdl/" name = "EDIListWSWsd" targetNamespace =: definitions xmlns xmlns: bns0 = "urn: EDIListWSWsd / EDIListConfig / document" xmlns: soap = " http://schemas.xmlsoap.org/wsdl/soap/">

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">

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 18, 2011 at 11:05 AM

    Hi,

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

    Regards

    Anja

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.