I'm trying to extend an existing soap webservice by adding in a couple of new methods, however I'm having a problem in getting the client to run the method calls and I'm not sure why.
I've not had much soap experience so I've tried to replicate what is already working correctly, but presently I'm not sure where to look, or go about resolving the issue...
This is what I've got (just a note, Client code is C#, Server code is C++)
Client - depot d = rfc.getQuickestDepot(s); //throws SoapHeaderException saying method not implemented.
in the auto generated file (using wsdl) - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="urn:routefinda", ResponseNamespace="urn:routefinda", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
-
[return: System.Xml.Serialization.XmlElementAttribute("Result")]
-
public depot getQuickestDepot(xyCoords startnode) {
-
object[] results = this.Invoke("getQuickestDepot", new object[] {
-
startnode});
-
return ((depot)(results[0]));
-
}
Then my Server... - int ns__getQuickestDepot(struct soap *soap, struct ns__xyCoords a, struct ns__getQuickestDepotResponse *r)
-
{
-
...
-
}
-
and the header file that generated all the stub files - struct ns__getQuickestDepotResponse {struct ns__depot Result;};
-
int ns__getQuickestDepot( struct ns__xyCoords startnode,
-
struct ns__getQuickestDepotResponse *r);
I'm not sure if this is enough to go on, I don't quite understand soap enough to know exactly what is defined where but can post more code if neccessary. Any help would be appreciated.
Thanks.
4 2793
I'm not quite sure how but I believe I've fixed this now... lack of UK posters makes me have to work harder to come up with solutions unless I leave the problem over night!
Thanks anyway....
I'm not quite sure how but I believe I've fixed this now... lack of UK posters makes me have to work harder to come up with solutions unless I leave the problem over night!
Thanks anyway....
Can you explain how did you do, I have same problem here (not same language) but I can find a way to resolve mine ...
Thanks in advance
--
regards
Greg
Can you explain how did you do, I have same problem here (not same language) but I can find a way to resolve mine ...
Thanks in advance
--
regards
Greg
Greg,
I believe the actual reason was the header file I was using was incorrect, so I was pointing to the wrong one, and not one most recently greated by the soap2cpp output... so it's probably not much help I'm afraid.
Greg,
I believe the actual reason was the header file I was using was incorrect, so I was pointing to the wrong one, and not one most recently greated by the soap2cpp output... so it's probably not much help I'm afraid.
huhu, ok, Thanks anyway =)
--
regards
Greg
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Artur |
last post by:
Hi Newsgroup,
im currently working on programming a asp.net application consuming an
Webservice hosted on Apache/Axis. I have generated WSDL and Proxy
classes from VisualStudio.net. But when trying to fire up one method i
get following error:
System.Web.Services.Protocols.SoapHeaderException: Method
'tns:prodsearch' not implemented
|
by: pepcag |
last post by:
I used
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconalteringsoapmessageusingsoapextensions.asp
as a template to create a very simple web method with soap extension.
The code like this:
public string HelloWorld()
{
return "Hello World.";
|
by: techieTex |
last post by:
I have a simple SOAP Extension which does nothing but to log the SOAP message
to a file. This works fine when I use the webservice by adding a
webreference and using the class. However my application breaks when I call
the webservice using HttpWebRequest/HttpWebResponse. I tried setting
HttpWebRequest's contenttype to application/x-www-form-urlencoded and also to
SOAP. Could somebody please tell me where I'm going wrong?
|
by: Bryan Dickerson |
last post by:
Ok, simple question: from a VB.Net web service (as I've said before, I'm a
newbie to SOAP), how would I get the SOAP body into a string? My boss and I
concur that it, at least from our perspective, should be as simple as
defining an object and viewing a parameter on that object. My boss has
worked with it and I'm still tryin'...
TIA!
--
TFWBWY...A
|
by: Heena Patel |
last post by:
Hi,
I have a implemented a web service interface that has a webmethod accepting
xml, but I need to also have post option available to my webservice. I
understand if a client Posts a SOAP reqyest, it will work with my webservice.
The problem is my client cannot send soap method, they will be sending normal
httpstream to me. I want the Web service to redirect all the non-soap
messages to my aspx page that handles normal posts. Can anyone...
| |
by: Joseph Geretz |
last post by:
I have the following class which I am serializing and passing back and forth
between my Web Service application and the client.
public class Token : SoapHeader
{
public string SID;
public string UID;
public string PWD;
}
|
by: Joseph Geretz |
last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with
authenticated session information. Given the following implementation for
our Logout method, I vastly prefer to simply code m_Token = null in order to
destroy the session token when the user logs out. However, I'm finding that
setting class instance to null results in no header being sent back to the
client, with the result that the client actually remains with an...
|
by: gcharbon |
last post by:
Hi community,
I have a problem with a Soap client written in php.
I have a local server (coded in c and a client in c too, it works fine), but i want to test client in php, and i have an error (I'm not sure to understand it...) :
SoapFault exception: Method 'ns1:getMetadataRequest' not implemented: method name or namespace not recognized in beta_2/soap.php:26
Stack trace:
#0 /root/src/rxtxws/beta_2/soap.php(26):...
|
by: monsalvo |
last post by:
Hello.
I've just coded a VBScript SOAP Client to send requests to a web
service in our intranet. It's working and we'll use it in a DTS cuz we
have not implemented SQL Server 2005 yet. Anyway. I need some more
functionality. For example with the script below I'm able to get the
Session ID Token from our web service and save the full SOAP xml
Envelope to a file. But What if for example I want to save certain
nodes I receive in the...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
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...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |