cancel
Showing results for 
Search instead for 
Did you mean: 

Adaptive web service problem

Former Member
0 Kudos

Hi

I am trying to call a simple email webservice from java web dynpro using adaptive web service model.

Below is wsdl I am using. I have saved it in my local drive :

[http://www.rfcuny.org/RFWEBSITE/WebServices/Email.asmx?WSDL]

Below are steps I have followed :

1. Created a model of type "Import Adaptive web service model"

2. Select "Local file system or URL"

3. Select "Use destination for metadata and execution" (specified a default metadata destination and default execution destination)

4. Browsed the WSDL file that I have saved in my local machine

5. Finish the process.

In Visual admin I have specified logical destinations and have just entered following in URL :

http://www.rfcuny.org/RFWEBSITE/WebServices/Email.asmx

rest all fields have been left blank.

Above line i took from WSDL above.

After this I have done all necessary model mapping from controller to view and model to controller.

in view controller wdinit() I have done some coding :

Request_ProcessEmail req = new Request_ProcessEmail(new NewService());
	  wdContext.nodeWebServiceEmail().bind(req);

in action onsendemai() coding is as below :

IWDMessageManager msgMgr=
	wdThis.wdGetAPI().getComponent().getMessageManager();
	try{
		wdContext.currentWebServiceEmailElement().modelObject().execute();
		wdContext.nodeResponse().invalidate();
		
	}
	catch(Exception ex){
		msgMgr.reportException(ex.getLocalizedMessage(),true);
	}l

Now, when I am trying to run the application, it is giving me an runtime error on very starting screen :

java.io.IOException: Unable to open connection to host "www.rfcuny.org:80". The IP address of the host could not be resolved. Maybe the URL is misspelled or the host does no longer exist..

com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WS metadata destination 'DEFAULT_WS_METADATA_DEST' and WS interface 'EmailSoap'. One possible reason is that the metadata destination 'DEFAULT_WS_METADATA_DEST' has not been properly configured; check configuration.

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:440)

.....

As clearly written in error trace :

My metadata destinations are not configured properly.

What should come in URL field of my metadata destination !

do I need to give any other entries there.

Thanks

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi

you can search for the sample webdynpro application in sdn ,

you can get document and prohect email webservice from java

Former Member
0 Kudos

hi

check this blog on configuring logical destinations

/people/anilkumar.vippagunta2/blog/2006/12/13/secured-webservices-ii

hope should help you .

Thanks

Former Member
0 Kudos

HI

check this link

/docs/DOC-8061#16 [original link is broken]

there is Accessing an Email Web Service using the Adaptive Web Service Model sap project available ,

you can check the project and document for reference .

Thanks

Former Member
0 Kudos

Murali,

Links in this URL are not working

"Creating an E-Mail Client Using Web Dynpro's Adaptive Web Service Model"

Former Member
0 Kudos
Former Member
0 Kudos

Thanks Murali,

This was a helpful document.

But my problem exist in configuring logical destinations.