473,503 Members | 3,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Handling DOT in Method Name

I am trying to consume a web service where there is a dot in the method name
as defined in the portType and binding section of the WSDL file. Here is an
example:

<operation name="soapserver.login">

The WSDL.EXE tool correctly removes the dot when creating the C# method
name, resulting in soapserverlogin; however, it also removes the dot when
making the Invoke call as shown:

public loginReturn soapserverlogin(string username, string password) {
object[] results = this.Invoke("soapserverlogin", new object[] {
username,
password});
return ((loginReturn)(results[0]));
}

The web server where the service is located will complain that
"soapserverlogin" does not exist. If I manually construct the request as
"soapserver.login", it will work fine.

Does anyone have any advice for handling this issue?

Thanks.

Brian
Dec 4 '06 #1
2 1708
Well my primary advice would be to not use dots in operation names. In what
language is this web service implemented by the way that you are allowed to
use dots in the name of the operation?

Gabriel Lozano-Morán

"Microsoft Newsgroups" <br************@americansentinel.eduwrote in
message news:uO**************@TK2MSFTNGP06.phx.gbl...
>I am trying to consume a web service where there is a dot in the method
name as defined in the portType and binding section of the WSDL file. Here
is an example:

<operation name="soapserver.login">

The WSDL.EXE tool correctly removes the dot when creating the C# method
name, resulting in soapserverlogin; however, it also removes the dot when
making the Invoke call as shown:

public loginReturn soapserverlogin(string username, string password) {
object[] results = this.Invoke("soapserverlogin", new object[] {
username,
password});
return ((loginReturn)(results[0]));
}

The web server where the service is located will complain that
"soapserverlogin" does not exist. If I manually construct the request as
"soapserver.login", it will work fine.

Does anyone have any advice for handling this issue?

Thanks.

Brian

Dec 4 '06 #2
It was apparently created using NuSoap in PHP.

I may not be able to get the web service implementation changed. Any advice
on how to handle it?

Brian

"Gabriel Lozano-Morán" <ab***@frontbridge.comwrote in message
news:e9****************@TK2MSFTNGP04.phx.gbl...
Well my primary advice would be to not use dots in operation names. In
what language is this web service implemented by the way that you are
allowed to use dots in the name of the operation?

Gabriel Lozano-Morán

"Microsoft Newsgroups" <br************@americansentinel.eduwrote in
message news:uO**************@TK2MSFTNGP06.phx.gbl...
>>I am trying to consume a web service where there is a dot in the method
name as defined in the portType and binding section of the WSDL file.
Here is an example:

<operation name="soapserver.login">

The WSDL.EXE tool correctly removes the dot when creating the C# method
name, resulting in soapserverlogin; however, it also removes the dot when
making the Invoke call as shown:

public loginReturn soapserverlogin(string username, string password) {
object[] results = this.Invoke("soapserverlogin", new object[] {
username,
password});
return ((loginReturn)(results[0]));
}

The web server where the service is located will complain that
"soapserverlogin" does not exist. If I manually construct the request as
"soapserver.login", it will work fine.

Does anyone have any advice for handling this issue?

Thanks.

Brian


Dec 4 '06 #3

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

Similar topics

7
2553
by: Spacen Jasset | last post by:
The main two desirable things I feel error handling should provide are these: 1) Debugging and diagnostic aid 2) User feedback One method that is used a fair amount it to 'say' that all...
2
2084
by: Eric Newton | last post by:
VB's more declarative nature of handling events is golden. I'm hoping C# will acquire this type of deal, in addition to the anonymous delegates. could do same as vb (actually would be easier to...
34
2203
by: rawCoder | last post by:
I have read that Exception Handling is expensive performance wise ( other than Throw ) , but exactly how ? Please consider the following example ... ////////////////// Code Block 1...
5
1519
by: Lau Lei Cheong | last post by:
Hello, I'm currently using Application_Error method in Global.asax.cs to handle errors. Recently, I heard about Page.ErrorPage and plan to use it for handling errors on certain pages. Are...
4
7600
by: James Radke | last post by:
Hello, I am looking for guidance on best practices to incorporate effective and complete error handling in an application written in VB.NET. If I have the following function in a class module...
16
2519
by: Chuck Cobb | last post by:
I'm implementing a centralized exception handling routine using the Enterprise Library Exception Management Application Block. I trap all unhandled exceptions to one place using the following...
1
8350
Atli
by: Atli | last post by:
The following small HowTo is a compilation of an original problem in getting some cookie-values through different methods of string-handling. The original Problem was posted as follows: As...
8
1766
by: JWest46088 | last post by:
I'm having problems with my error handling. It's kind of hard to explain so I'll just post my code and bold where the error handling is and then explain what is happening. Just to warn you, I am...
35
3469
by: eliben | last post by:
Python provides a quite good and feature-complete exception handling mechanism for its programmers. This is good. But exceptions, like any complex construct, are difficult to use correctly,...
0
7064
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
7315
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...
1
6974
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...
0
5559
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 project—planning, coding, testing,...
1
4991
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...
0
4665
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...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.