on 01-22-2010 8:57 AM
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
hi
you can search for the sample webdynpro application in sdn ,
you can get document and prohect email webservice from java
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
check this blog on configuring logical destinations
/people/anilkumar.vippagunta2/blog/2006/12/13/secured-webservices-ii
hope should help you .
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
check this link
hope should help you .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.