473,394 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Access a JAVA WebService (SOAP/LTPA/LDAP) from a C++.NET application

Hi all...

I've programmed an application that must access to a JAVA webservice
for authentication on a LDAP/LTPA server.

Here's the code on the C++.NET client application :

myWS::myService* pWebService = new myWS::myService();
int iRet;
pWebService->Credentials = new
NetworkCredential("username","password");
iRet = pWebService->exportedMethod1();

Expected result :
iRet should be set to an integer (incremented each time).
Error info on server side :
No security token found...

I tried to sniff the SOAP request sent to the server but I can't see
any "username" (normally non-encoded in base64) and no "password"
(normal, this last one should be encoded in base64).
Could anyone help ?

thanks
Nov 21 '05 #1
2 3714
i think we need to see the WSDL ?
"?code" <mi***********@hotmail.com> wrote in message
news:48**************************@posting.google.c om...
Hi all...

I've programmed an application that must access to a JAVA webservice
for authentication on a LDAP/LTPA server.

Here's the code on the C++.NET client application :

myWS::myService* pWebService = new myWS::myService();
int iRet;
pWebService->Credentials = new
NetworkCredential("username","password");
iRet = pWebService->exportedMethod1();

Expected result :
iRet should be set to an integer (incremented each time).
Error info on server side :
No security token found...

I tried to sniff the SOAP request sent to the server but I can't see
any "username" (normally non-encoded in base64) and no "password"
(normal, this last one should be encoded in base64).
Could anyone help ?

thanks

Nov 21 '05 #2
Sorry I've just came back here and seen your answer.

I've resolved the problem now it was a security configuration that was not to the good value on the server side. It had not to be set to LTPA but there was just the security.xml file to modify...

Posted via DevelopmentNow Groups
www.developmentnow.com/g
www.developmentnow.com
Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Daniel Santana | last post by:
Hi again. Now I got a brand new problem using the java webservice. I'm trying to use the wsdl tool of the "Microsoft Visual Studio .Net 2003 Command Prompt"... but I got the same message when...
7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
7
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything...
3
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are...
4
by: Guhanath | last post by:
Hi, We are developing a java client that need to call a .net web service in another server. I have 2 methods in .net WS,one returns a dataset and other returns a boolean. We have to use plain...
0
by: Alexiel | last post by:
Hi, i have a problem, I have a Java Client and i call my webservice on ..NET. This run perfectly just except when i send parameters don't work fine. I send my code : This is my java...
0
by: karazy | last post by:
I have been reading all the forums and understand whats going wrong but am not sure how to fix it. I have written a basic doc/literal web service. But when it is called by a .net client it will...
2
by: thomas | last post by:
Hi everybody, Here is the scenario: webservice and a windows client application. Requirements: 1. Only authenticated and authorized users shall be able to call web methods. 2. User names or...
15
by: =?Utf-8?B?ZG91Zw==?= | last post by:
I hadn't had a class yet and I had some MS help on this to set up, but I wrote a .Net WS that creates a proxy class response using SOAP. Works fine. And in kind of a good way, the IDE has hidden...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.