-
How to access a web service using Username token (3 messages)
- Posted by: Amit Bansal
- Posted on: September 12 2008 00:36 EDT
In our implementation we have a web service deployed on SAP Application server provided by third party vendor needs user name and password. Because when I directly hit the WSDL url from client network it is asking me for basic authentication (username and password). I already created the stub (using eclipse) to use the web service but I haven’t made any implementation to pass such credentials. I am really novice for such kind of scenario and from Google I came to know that to consume this type of web service you need to pass Username token containing username and password in SOAP env header. I tried to set username and password in simple xml file dummyuser 784b and generate the context using ConfigurationContext configurationContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem("/u001/idm/eclipse/axis2conf.xml", null); ServiceStub stub=new ServiceStub(configurationContext); But it gives the same error that “host did not accept the connection”. I don’t think any special tool is needed for this. Kidly help me to get out from this situation. Thanks in advance!Threaded Messages (3)
- Re: How to access a web service using Username token by Krishna Rao on September 15 2008 15:25 EDT
- Re: How to access a web service using Username token by Krishna Rao on September 15 2008 15:26 EDT
- Re: How to access a web service using Username token by Amit Bansal on September 19 2008 06:37 EDT
-
Re: How to access a web service using Username token[ Go to top ]
- Posted by: Krishna Rao
- Posted on: September 15 2008 15:25 EDT
- in response to Amit Bansal
Its a common problem with web services. You need to use SingleSignOn web service interceptor to intercept all web service requests going to SAP. Lookup WS-Security based solutions. -
Re: How to access a web service using Username token[ Go to top ]
- Posted by: Krishna Rao
- Posted on: September 15 2008 15:26 EDT
- in response to Amit Bansal
Its a common problem with web services. You need to use SingleSignOn web service interceptor to intercept all web service requests going to SAP. Lookup WS-Security based solutions. http://www.oracle.com/technology/tech/java/newsletter/articles/wsaudit/ws_audit.html -
Re: How to access a web service using Username token[ Go to top ]
- Posted by: Amit Bansal
- Posted on: September 19 2008 06:37 EDT
- in response to Krishna Rao
is this interceptor is a hardware tool... And is there no other way to achieve this??