473,687 Members | 3,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question about web service which execute javawebservices from .net client.

Hello,

my application is console application and I have created "Service Reference" of the webservices. this webservice uses username and password. my code are following:

myArray[] nl;

FeedSoapClient client = new FeedSoapClient( );
client.ClientCr edentials.UserN ame.UserName = "tellme";
client.ClientCr edentials.UserN ame.Password = "tellme";
nl = client.getCustI nfo();
int i = 0;
while (i <= (nl.Length - 1))
{
Console.WriteLi ne(nl[i].name + " " + nl[i].address);
i++;
}
ERROR which I am getting, is this:

System.Configur ation.Configura tionErrorsExcep tion: The value of the property 'cl
ientCredentialT ype' cannot be parsed. The error is: The enumeration value must b
e one of the following: None, Basic, Digest, Ntlm, Windows, Certificate. (C:\Use
rs\localhost\Do cuments\Visual Studio 2008\Projects\R etrieveRTDataFr omNYISO\Retri
eveRTDataFromNY ISO\bin\Debug\R etrieveRTDataFr omNYISO.exe.Con fig line 28)
at System.Configur ation.BaseConfi gurationRecord. EvaluateOne(Str ing[] keys, Se
ctionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord
sectionRecord, Object parentResult)
at System.Configur ation.BaseConfi gurationRecord. Evaluate(Factor yRecord factor
yRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boole
an getRuntimeObjec t, Object& result, Object& resultRuntimeOb ject)
at System.Configur ation.BaseConfi gurationRecord. GetSectionRecur sive(String co
nfigKey, Boolean getLkg, Boolean checkPermission , Boolean getRuntimeObjec t, Bool
ean requestIsHere, Object& result, Object& resultRuntimeOb ject)
at System.Configur ation.BaseConfi gurationRecord. GetSectionRecur sive(String co
nfigKey, Boolean getLkg, Boolean checkPermission , Boolean getRuntimeObjec t, Bool
ean requestIsHere, Object& result, Object& resultRuntimeOb ject)
at System.Configur ation.BaseConfi gurationRecord. GetSectionRecur sive(String co
nfigKey, Boolean getLkg, Boolean checkPermission , Boolean getRuntimeObjec t, Bool
ean requestIsHere, Object& result, Object& resultRuntimeOb ject)
at System.Configur ation.BaseConfi gurationRecord. GetSection(Stri ng configKey,
Boolean getLkg, Boolean checkPermission )
at System.Configur ation.BaseConfi gurationRecord. GetSection(Stri ng configKey)
at System.Configur ation.ClientCon figurationSyste m.System.Config uration.Intern
al.IInternalCon figSystem.GetSe ction(String sectionName)
at System.Configur ation.Configura tionManager.Get Section(String sectionName)
at System.ServiceM odel.Configurat ion.Configurati onHelpers.Unsaf eGetSectionFro
mConfigurationM anager(String sectionPath)
at System.ServiceM odel.Configurat ion.Configurati onHelpers.Unsaf eGetAssociated
Section(Context Information evalContext, String sectionPath)
at System.ServiceM odel.Configurat ion.ClientSecti on.UnsafeGetSec tion()
at System.ServiceM odel.Descriptio n.ConfigLoader. LookupChannel(S tring configur
ationName, String contractName, Boolean wildcard)
at System.ServiceM odel.Descriptio n.ConfigLoader. LoadChannelBeha viors(ServiceE
ndpoint serviceEndpoint , String configurationNa me)
at System.ServiceM odel.ChannelFac tory.ApplyConfi guration(String configuration
Name)
at System.ServiceM odel.ChannelFac tory.Initialize Endpoint(String configuration
Name, EndpointAddress address)
at System.ServiceM odel.ChannelFac tory`1..ctor(St ring endpointConfigu rationNam
e, EndpointAddress remoteAddress)
at System.ServiceM odel.EndpointTr ait`1.CreateSim plexFactory()
at System.ServiceM odel.EndpointTr ait`1.CreateCha nnelFactory()
at System.ServiceM odel.ClientBase `1.CreateChanne lFactoryRef(End pointTrait`1 e
ndpointTrait)
at System.ServiceM odel.ClientBase `1.InitializeCh annelFactoryRef ()
at System.ServiceM odel.ClientBase `1..ctor()
at RetrieveRTDataF romNYISO.Servic eReference.eDat aFeedSoapClient ..ctor() in C:
\Users\localhos t\Documents\Vis ual Studio 2008\Projects\R etrieveRTDataFr omNYISO\R
etrieveRTDataFr omNYISO\Service References\Serv iceReference\Re ference.cs:line 154
5
at RetrieveRTDataF romNYISO.Progra m.Main() in C:\Users\localh ost\Documents\V is
ual Studio 2008\Projects\R etrieveRTDataFr omNYISO\Retriev eRTDataFromNYIS O\Program
..cs:line 26
can you tell me how to fix this problem? According to me, it is not accepting the username and password.

Sep 29 '08 #1
3 2485
It is not so much a refusal as not setting a credential type at all. After
you solve this, I bet you start to uncover other issues.

Unfortunately, there is only one book out there on C# and Java with web
services (or one that I know of that targets that topic) and it is not that
good.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

*************** *************** **************
| Think outside the box! |
*************** *************** **************
"Anil S" wrote in message news:20******** ************@ya hoo.com...
Hello,

my application is console application and I have created "Service
Reference" of the webservices. this webservice uses username and password.
my code are following:

myArray[] nl;

FeedSoapClient client = new FeedSoapClient( );
client.ClientCr edentials.UserN ame.UserName = "tellme";
client.ClientCr edentials.UserN ame.Password = "tellme";
nl = client.getCustI nfo();
int i = 0;
while (i <= (nl.Length - 1))
{
Console.WriteLi ne(nl[i].name + " " + nl[i].address);
i++;
}
ERROR which I am getting, is this:

System.Configur ation.Configura tionErrorsExcep tion: The value of the
property 'cl
ientCredentialT ype' cannot be parsed. The error is: The enumeration value
must b
e one of the following: None, Basic, Digest, Ntlm, Windows, Certificate.
(C:\Use
rs\localhost\Do cuments\Visual Studio
2008\Projects\R etrieveRTDataFr omNYISO\Retri
eveRTDataFromNY ISO\bin\Debug\R etrieveRTDataFr omNYISO.exe.Con fig line 28)
at System.Configur ation.BaseConfi gurationRecord. EvaluateOne(Str ing[]
keys, Se
ctionInput input, Boolean isTrusted, FactoryRecord factoryRecord,
SectionRecord
sectionRecord, Object parentResult)
at System.Configur ation.BaseConfi gurationRecord. Evaluate(Factor yRecord
factor
yRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg,
Boole
an getRuntimeObjec t, Object& result, Object& resultRuntimeOb ject)
at
System.Configur ation.BaseConfi gurationRecord. GetSectionRecur sive(String co
nfigKey, Boolean getLkg, Boolean checkPermission , Boolean
getRuntimeObjec t, Bool
ean requestIsHere, Object& result, Object& resultRuntimeOb ject)
at
System.Configur ation.BaseConfi gurationRecord. GetSectionRecur sive(String co
nfigKey, Boolean getLkg, Boolean checkPermission , Boolean
getRuntimeObjec t, Bool
ean requestIsHere, Object& result, Object& resultRuntimeOb ject)
at
System.Configur ation.BaseConfi gurationRecord. GetSectionRecur sive(String co
nfigKey, Boolean getLkg, Boolean checkPermission , Boolean
getRuntimeObjec t, Bool
ean requestIsHere, Object& result, Object& resultRuntimeOb ject)
at System.Configur ation.BaseConfi gurationRecord. GetSection(Stri ng
configKey,
Boolean getLkg, Boolean checkPermission )
at System.Configur ation.BaseConfi gurationRecord. GetSection(Stri ng
configKey)
at
System.Configur ation.ClientCon figurationSyste m.System.Config uration.Intern
al.IInternalCon figSystem.GetSe ction(String sectionName)
at System.Configur ation.Configura tionManager.Get Section(String
sectionName)
at
System.ServiceM odel.Configurat ion.Configurati onHelpers.Unsaf eGetSectionFro
mConfigurationM anager(String sectionPath)
at
System.ServiceM odel.Configurat ion.Configurati onHelpers.Unsaf eGetAssociated
Section(Context Information evalContext, String sectionPath)
at System.ServiceM odel.Configurat ion.ClientSecti on.UnsafeGetSec tion()
at System.ServiceM odel.Descriptio n.ConfigLoader. LookupChannel(S tring
configur
ationName, String contractName, Boolean wildcard)
at
System.ServiceM odel.Descriptio n.ConfigLoader. LoadChannelBeha viors(ServiceE
ndpoint serviceEndpoint , String configurationNa me)
at System.ServiceM odel.ChannelFac tory.ApplyConfi guration(String
configuration
Name)
at System.ServiceM odel.ChannelFac tory.Initialize Endpoint(String
configuration
Name, EndpointAddress address)
at System.ServiceM odel.ChannelFac tory`1..ctor(St ring
endpointConfigu rationNam
e, EndpointAddress remoteAddress)
at System.ServiceM odel.EndpointTr ait`1.CreateSim plexFactory()
at System.ServiceM odel.EndpointTr ait`1.CreateCha nnelFactory()
at
System.ServiceM odel.ClientBase `1.CreateChanne lFactoryRef(End pointTrait`1 e
ndpointTrait)
at System.ServiceM odel.ClientBase `1.InitializeCh annelFactoryRef ()
at System.ServiceM odel.ClientBase `1..ctor()
at RetrieveRTDataF romNYISO.Servic eReference.eDat aFeedSoapClient ..ctor()
in C:
\Users\localhos t\Documents\Vis ual Studio
2008\Projects\R etrieveRTDataFr omNYISO\R
etrieveRTDataFr omNYISO\Service
References\Serv iceReference\Re ference.cs:line 154
5
at RetrieveRTDataF romNYISO.Progra m.Main() in
C:\Users\localh ost\Documents\V is
ual Studio
2008\Projects\R etrieveRTDataFr omNYISO\Retriev eRTDataFromNYIS O\Program
.cs:line 26
can you tell me how to fix this problem? According to me, it is not
accepting the username and password.
Sep 29 '08 #2
<system.service Model>
<bindings>
<basicHttpBindi ng>
<binding name="eFeedSoap " closeTimeout="0 0:01:00" openTimeout="00 :01:00"
receiveTimeout= "00:10:00" sendTimeout="00 :01:00" allowCookies="f alse"
bypassProxyOnLo cal="false" hostNameCompari sonMode="Strong Wildcard"
maxBufferSize=" 65536" maxBufferPoolSi ze="524288" maxReceivedMess ageSize="65536"
messageEncoding ="Text" textEncoding="u tf-8" transferMode="B uffered"
useDefaultWebPr oxy="true">
<readerQuotas maxDepth="32" maxStringConten tLength="8192" maxArrayLength= "16384"
maxBytesPerRead ="4096" maxNameTableCha rCount="16384" />
<security mode="Transport ">
<transport clientCredentia lType="Basic" proxyCredential Type="Basic" realm="" />
<message clientCredentia lType="UserName " algorithmSuite= "Default" />
</security>
</binding>
</basicHttpBindin g>
</bindings>
<client>
<endpoint address="https://efeed.test.com/efeed/eFeed.jws?WSDL= "
binding="basicH ttpBinding" bindingConfigur ation="eFeedSoa p"
contract="Servi ceReference.eFe edSoap" name="eFeedSoap " />
</client>

</system.serviceM odel>

Oct 1 '08 #3
<system.service Model>
<bindings>
<basicHttpBindi ng>
<binding name="eFeedSoap " closeTimeout="0 0:01:00" openTimeout="00 :01:00"
receiveTimeout= "00:10:00" sendTimeout="00 :01:00" allowCookies="f alse"
bypassProxyOnLo cal="false" hostNameCompari sonMode="Strong Wildcard"
maxBufferSize=" 65536" maxBufferPoolSi ze="524288" maxReceivedMess ageSize="65536"
messageEncoding ="Text" textEncoding="u tf-8" transferMode="B uffered"
useDefaultWebPr oxy="true">
<readerQuotas maxDepth="32" maxStringConten tLength="8192" maxArrayLength= "16384"
maxBytesPerRead ="4096" maxNameTableCha rCount="16384" />
<security mode="Transport ">
<transport clientCredentia lType="Basic" proxyCredential Type="Basic" realm="" />
<message clientCredentia lType="UserName " algorithmSuite= "Default" />
</security>
</binding>
</basicHttpBindin g>
</bindings>
<client>
<endpoint address="https://efeed.test.com: 443/efeed/eFeed.jws?WSDL= "
binding="basicH ttpBinding" bindingConfigur ation="eFeedSoa p"
contract="Servi ceReference.eFe edSoap" name="eFeedSoap " />
</client>

</system.serviceM odel>

Oct 1 '08 #4

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

Similar topics

0
2919
by: Sean Newton | last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security assemblies. I've been trying to set these up in a very straightforward harness in the way that I'd like to be able to use them. No IIS. Use TCP, binary. Standard server example with a console host and console client. .NET 1.1, windows XP. (I tried posting to the remoting newsgroup, no answers in the last couple days, trying here in hopes that more people watch this...
2
280
by: Simon | last post by:
Hi I have this necessity and I would ask you a suggestion. I think to develop something (like a service) to install on a server in order to execute sql procedures, and develop an application to install on client that send commands to the server. Which it is the better way to make this scenario .... create a service and install to the server ? .... that type of communication between client and server I need to use?
2
1771
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive the data in real time. They have requested that I subscribe to a Web Service that they have published. The only problem is that they often take longer than 30 seconds to process my data before I get a response back from them. This is taking far...
2
1983
by: Delmar | last post by:
I need to build Web Application that will generate a client to execute some operations. Each client has running silent application. Maybe somebody can advice me what can I do ? Thank you.
0
4342
by: Divyakumar Jain,SAP Netweaver consultant | last post by:
Hi all, I have created an web service on SAP system. I have created a .net client using Micrsoft Visual Studio 2003 and .net frame work 2.0. in Visual Basic. In that .net client i have created web refrence for the web service. When i call the web service without using WSE 2.0 API i get following SOAP Fault message from the web service.
0
3457
by: asadikhan | last post by:
I need to call a console app (dtexec) from a windows service in a client/server architecture. I have the application setup so that the client application is called with a package name, which makes a call to a dll on the remote server. I have read up on this on the web and I know that you can't run a GUI app from within windows service, but apparently console apps are ok. I am trying exactly that but it's not working. Here is my code: ...
33
11848
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon (NT_AUTHORITY\SYSTEM). I understand that when the service starts, no user may be logged in, but that's ok, as the app I am monitoring can only be run by a logged in user. Do I need to use WMI to get the user context of Explorer.exe or is there a...
5
1873
by: DaveP | last post by:
How can i dynamically load a Dll and unload said Dll using c# i have a Situation where i have many dlls that are client based and only need to be loaded and code executed based on client ID. for instance i have a Service Running the gets Record sets for output file formating based on client Requirements and this service reads a dll to load and instantiate classes based on clientID
16
2407
by: =?Utf-8?B?U3RldmUgQmFya2Vy?= | last post by:
WCF Question Hi guys, I’m pretty new to WCF, and have a basic question about how it works. I’m trying to use WCF to write an “SOA-system”, and am having a few problems. The following analogy explains what I’m trying to do. I have a very simple class:
0
8527
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9070
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8781
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8784
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6453
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5806
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4321
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
1948
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.