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="soapserve r.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("so apserverlogin", new object[] {
username,
password});
return ((loginReturn)( results[0]));
}
The web server where the service is located will complain that
"soapserverlogi n" does not exist. If I manually construct the request as
"soapserver.log in", it will work fine.
Does anyone have any advice for handling this issue?
Thanks.
Brian 2 1717
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************ @americansentin el.eduwrote in
message news:uO******** ******@TK2MSFTN GP06.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="soapserve r.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("so apserverlogin", new object[] {
username,
password});
return ((loginReturn)( results[0]));
}
The web server where the service is located will complain that
"soapserverlogi n" does not exist. If I manually construct the request as
"soapserver.log in", it will work fine.
Does anyone have any advice for handling this issue?
Thanks.
Brian
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***@frontbri dge.comwrote in message
news:e9******** ********@TK2MSF TNGP04.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************ @americansentin el.eduwrote in
message news:uO******** ******@TK2MSFTN GP06.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="soapserve r.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("so apserverlogin", new object[] { username, password}); return ((loginReturn)( results[0])); }
The web server where the service is located will complain that "soapserverlog in" does not exist. If I manually construct the request as "soapserver.lo gin", it will work fine.
Does anyone have any advice for handling this issue?
Thanks.
Brian This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 functions must
return an error code of a standard type, for example tError. Where tError is
typedefed as a long int. A list of error codes may then be...
|
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 parse then vb due to
braces) whereas you look for Handles keyword after method sig, but before
opening brace of the method.
compiler would...
|
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 //////////////////////////////////
Try
{
for ( ... ){// Code that might throw exception}
}catch(...){}...
|
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 there any major difference in using these
methods? My concern is mainly on the restrictions imposed on using these
method.
|
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 (note that this class module represents the business layer of code NOT the gui layer):
Public Function Test(ByVal Parm1 As Integer, ByVal Parm2 As...
| |
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 method:
// --- Create an Exception Handler for Thread Exceptions ----------------
Application.ThreadException += new...
|
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 you can see, there could have been a problem with the split-method. The following short article handles ways around this possible problem, that we...
|
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 new to Perl so the code probably will be ugly!
#! /usr/local/bin/perl
BEGIN
{
open(STDERR, ">&STDOUT");
|
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, especially as
programs get large.
Most of the issues of exceptions are not specific to Python, but I
sometimes feel that Python makes them more acute...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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. ...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |