<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem in Calling Secure Webservice. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818640#M350182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt; I'm using a secured webservice in my webdynpro application. I'd also assigned &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;role to this webservice. My Portal is connected to LDAP, so when I call this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;webservice through Webservice Navigator, it prompts  me for username and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;password, after supplying same it authenticate the user against LDAP.This is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now when I'call this webservice through my webdynpro application, it requires &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;username and password. I write follwing code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request_VI_RFP_CountriesDocument_displayCountries display = new &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request_VI_RFP_CountriesDocument_displayCountries();&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wdContext.nodeRequest_VI_RFP_CountriesDocument_displayCountries().bind(display)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;display._setUser("User");&lt;/P&gt;&lt;P&gt;display._setPassword("Password");&lt;/P&gt;&lt;P&gt;	try {&lt;/P&gt;&lt;P&gt;wdContext.nodeRequest_VI_RFP_CountriesDocument_displayCountries().currentReques&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_VI_RFP_CountriesDocument_displayCountriesElement().modelObject().execute();&lt;/P&gt;&lt;P&gt;	} catch (Exception e) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		e.printStackTrace();&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also works fine. Now my question is there any other method to call this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;webservice without setting password in code( as one can easilly find it out)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this application is ultimately deployed on Portal, i have to follow Single &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sign On concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me out.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Abhinav Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2007 08:42:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-24T08:42:27Z</dc:date>
    <item>
      <title>Problem in Calling Secure Webservice.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818640#M350182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt; I'm using a secured webservice in my webdynpro application. I'd also assigned &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;role to this webservice. My Portal is connected to LDAP, so when I call this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;webservice through Webservice Navigator, it prompts  me for username and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;password, after supplying same it authenticate the user against LDAP.This is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now when I'call this webservice through my webdynpro application, it requires &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;username and password. I write follwing code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request_VI_RFP_CountriesDocument_displayCountries display = new &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request_VI_RFP_CountriesDocument_displayCountries();&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wdContext.nodeRequest_VI_RFP_CountriesDocument_displayCountries().bind(display)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;display._setUser("User");&lt;/P&gt;&lt;P&gt;display._setPassword("Password");&lt;/P&gt;&lt;P&gt;	try {&lt;/P&gt;&lt;P&gt;wdContext.nodeRequest_VI_RFP_CountriesDocument_displayCountries().currentReques&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_VI_RFP_CountriesDocument_displayCountriesElement().modelObject().execute();&lt;/P&gt;&lt;P&gt;	} catch (Exception e) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		e.printStackTrace();&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also works fine. Now my question is there any other method to call this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;webservice without setting password in code( as one can easilly find it out)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this application is ultimately deployed on Portal, i have to follow Single &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sign On concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me out.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Abhinav Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 08:42:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818640#M350182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T08:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Calling Secure Webservice.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818641#M350183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like SAML would be the solution.&lt;/P&gt;&lt;P&gt;Can you provide some information on your Portal version (where the WebDynpro application is deployed which is submitting the WebService call)? Which system component is the WebService provider? Is it a NetWeaver Java or NetWeaver ABAP system? Which version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818641#M350183</guid>
      <dc:creator>Wolfgang_Janzen</dc:creator>
      <dc:date>2007-01-24T09:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Calling Secure Webservice.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818642#M350184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wolfgang &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I'm using NWDS version 2.0.13 and Portal version SP13. It is Netweaver Java Stack..&lt;/P&gt;&lt;P&gt; What is SAML?&lt;/P&gt;&lt;P&gt;Regards, Abhinav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818642#M350184</guid>
      <dc:creator>Abhinav_Sharma1</dc:creator>
      <dc:date>2007-01-24T10:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Calling Secure Webservice.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818643#M350185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinav, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no SAML won't help you. &lt;/P&gt;&lt;P&gt;Please have a look at the &amp;lt;a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/4bf969fb2a48908224679e83e9d805/frameset.htm"&amp;gt;destination service&amp;lt;/a&amp;gt;. You can use it to authenticate to the backend system and also make use of the SSO infrastructure. in addition, the credentials can be maintained after deployment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: if this is an OASIS (stnadard) webservice, you should also be able to use the WS proxies and infrastructure to do the same for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, &lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 13:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818643#M350185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T13:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Calling Secure Webservice.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818644#M350186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With NW04 SP10 and later, the Web Dynpro Web Service model supports HTTP destinations. So you can create an HTTP destination in the Visual Administrator tool, and in you coding you must specify the name of the HTTP destination service. To use SSO, configure the destination to authentication method "Logon Ticket".&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
Request_QuickCarRentalServiceViDocument_saveBooking modObj =
wdContext.currentSaveBookingElement().modelObject();
modObj._setHTTPDestinationName("CarRental");      
modObj.execute();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please refer to the tutorial at &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/e9/9a204142d6b167e10000000a155106/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/e9/9a204142d6b167e10000000a155106/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When following the tutorial, please ensure you have a classloader reference from your WD application to service "tc/sec/wssec/service". This is done in the project properties of your WD application in the IDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martijn de Boer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Martijn de Boer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 13:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818644#M350186</guid>
      <dc:creator>martijndeboer</dc:creator>
      <dc:date>2007-01-24T13:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Calling Secure Webservice.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818645#M350187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Patrick and Martjin,&lt;/P&gt;&lt;P&gt;   Let me check this first. I'll get back to you if it works.&lt;/P&gt;&lt;P&gt;   Thanks again for your response.&lt;/P&gt;&lt;P&gt;Regards, Abhinav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 03:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-calling-secure-webservice/m-p/1818645#M350187</guid>
      <dc:creator>Abhinav_Sharma1</dc:creator>
      <dc:date>2007-01-25T03:19:51Z</dc:date>
    </item>
  </channel>
</rss>

