I have a unmanaged (written in Delphi 6) COM+ Web Service I am accessing
through C#.NET. The Web Service takes an string containing a formatted xml
read through StreamReader.
The problem I am having is that the SOAP I am passing is being truncated. I
know this to be the problem as I have checked the outgoing SOAP message in
nettool and that is where the truncation appears, the truncation can differ
even if the same message is posted over and over.
If I write .NET a proxy Web Service that installs on the destination server
then pass the messge to the proxy server, which in turn passes to a COM+ dll,
the string passes without poblems.
I would like to by pass this stage if possible as it requires the string to
be processes twice and this can be very expensive as I am passing thousands
of string many of them being between 1 and 10 meg.
Any help would be appreciated. 4 1692
Steven,
How are you accessing the web service in .NET on the client side? It
looks like you are creating the request manually to me.
Are you creating a proxy by setting a web-reference in VS.NET to the
COM+ component exposed as a web service?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Steven" <St****@discuss ions.microsoft. com> wrote in message
news:07******** *************** ***********@mic rosoft.com... I have a unmanaged (written in Delphi 6) COM+ Web Service I am accessing through C#.NET. The Web Service takes an string containing a formatted xml read through StreamReader. The problem I am having is that the SOAP I am passing is being truncated. I know this to be the problem as I have checked the outgoing SOAP message in nettool and that is where the truncation appears, the truncation can differ even if the same message is posted over and over. If I write .NET a proxy Web Service that installs on the destination server then pass the messge to the proxy server, which in turn passes to a COM+ dll, the string passes without poblems.
I would like to by pass this stage if possible as it requires the string to be processes twice and this can be very expensive as I am passing thousands of string many of them being between 1 and 10 meg.
Any help would be appreciated.
I add a Web Reference to the WSDL file on my local machine so I end up with http://locahost/blahblah.wsdl.
This give me the Web Reference and proxy I need.
The messages I post can goto one of many servers so I programatically change
the url from my machine to the machine I wish to post to. All server are
running the same patch of the Web Service.
I call the Web Service by:
{
blahblah blah = new blahblah();
blah.url = string.Format(" http://{0}/blahblah.wsdl", someserverIPorN ame);
int result = blah.DoSomeThin g(stringOfXmlMe ssage);
}
as you can see the Web Service returns an int, I don't suppose you really
need to know that though.
Cheers so far
Steven.
"Nicholas Paldino [.NET/C# MVP]" wrote: Steven,
How are you accessing the web service in .NET on the client side? It looks like you are creating the request manually to me.
Are you creating a proxy by setting a web-reference in VS.NET to the COM+ component exposed as a web service?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Steven" <St****@discuss ions.microsoft. com> wrote in message news:07******** *************** ***********@mic rosoft.com...I have a unmanaged (written in Delphi 6) COM+ Web Service I am accessing through C#.NET. The Web Service takes an string containing a formatted xml read through StreamReader. The problem I am having is that the SOAP I am passing is being truncated. I know this to be the problem as I have checked the outgoing SOAP message in nettool and that is where the truncation appears, the truncation can differ even if the same message is posted over and over. If I write .NET a proxy Web Service that installs on the destination server then pass the messge to the proxy server, which in turn passes to a COM+ dll, the string passes without poblems.
I would like to by pass this stage if possible as it requires the string to be processes twice and this can be very expensive as I am passing thousands of string many of them being between 1 and 10 meg.
Any help would be appreciated.
Steven,
Are you constructing your own soap and then passing it as a parameter?
This seems odd to me, since you don't have to really do that (the proxy and
the framework do that for you).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Steven" <St****@discuss ions.microsoft. com> wrote in message
news:3A******** *************** ***********@mic rosoft.com... I add a Web Reference to the WSDL file on my local machine so I end up with http://locahost/blahblah.wsdl.
This give me the Web Reference and proxy I need.
The messages I post can goto one of many servers so I programatically change the url from my machine to the machine I wish to post to. All server are running the same patch of the Web Service. I call the Web Service by:
{
blahblah blah = new blahblah(); blah.url = string.Format(" http://{0}/blahblah.wsdl", someserverIPorN ame); int result = blah.DoSomeThin g(stringOfXmlMe ssage); }
as you can see the Web Service returns an int, I don't suppose you really need to know that though.
Cheers so far
Steven.
"Nicholas Paldino [.NET/C# MVP]" wrote:
Steven,
How are you accessing the web service in .NET on the client side? It looks like you are creating the request manually to me.
Are you creating a proxy by setting a web-reference in VS.NET to the COM+ component exposed as a web service?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Steven" <St****@discuss ions.microsoft. com> wrote in message news:07******** *************** ***********@mic rosoft.com... >I have a unmanaged (written in Delphi 6) COM+ Web Service I am accessing > through C#.NET. The Web Service takes an string containing a formatted > xml > read through StreamReader. > The problem I am having is that the SOAP I am passing is being > truncated. > I > know this to be the problem as I have checked the outgoing SOAP message > in > nettool and that is where the truncation appears, the truncation can > differ > even if the same message is posted over and over. > If I write .NET a proxy Web Service that installs on the destination > server > then pass the messge to the proxy server, which in turn passes to a > COM+ > dll, > the string passes without poblems. > > I would like to by pass this stage if possible as it requires the > string > to > be processes twice and this can be very expensive as I am passing > thousands > of string many of them being between 1 and 10 meg. > > Any help would be appreciated.
No I am allowing the proxy and framework to construct the soap, the XML I am
passing is the string data. The XML is an internal format.
The process is,
I read an xml file from the hard drive, this is stored in a string, I then
pass the string as a paramter to the COM+ web service allowing the framework
to do all the hard work of creating the SOAP message.
"Nicholas Paldino [.NET/C# MVP]" wrote: Steven,
Are you constructing your own soap and then passing it as a parameter? This seems odd to me, since you don't have to really do that (the proxy and the framework do that for you).
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Steven" <St****@discuss ions.microsoft. com> wrote in message news:3A******** *************** ***********@mic rosoft.com...I add a Web Reference to the WSDL file on my local machine so I end up with http://locahost/blahblah.wsdl.
This give me the Web Reference and proxy I need.
The messages I post can goto one of many servers so I programatically change the url from my machine to the machine I wish to post to. All server are running the same patch of the Web Service. I call the Web Service by:
{
blahblah blah = new blahblah(); blah.url = string.Format(" http://{0}/blahblah.wsdl", someserverIPorN ame); int result = blah.DoSomeThin g(stringOfXmlMe ssage); }
as you can see the Web Service returns an int, I don't suppose you really need to know that though.
Cheers so far
Steven.
"Nicholas Paldino [.NET/C# MVP]" wrote:
Steven,
How are you accessing the web service in .NET on the client side? It looks like you are creating the request manually to me.
Are you creating a proxy by setting a web-reference in VS.NET to the COM+ component exposed as a web service?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Steven" <St****@discuss ions.microsoft. com> wrote in message news:07******** *************** ***********@mic rosoft.com... >I have a unmanaged (written in Delphi 6) COM+ Web Service I am accessing > through C#.NET. The Web Service takes an string containing a formatted > xml > read through StreamReader. > The problem I am having is that the SOAP I am passing is being > truncated. > I > know this to be the problem as I have checked the outgoing SOAP message > in > nettool and that is where the truncation appears, the truncation can > differ > even if the same message is posted over and over. > If I write .NET a proxy Web Service that installs on the destination > server > then pass the messge to the proxy server, which in turn passes to a > COM+ > dll, > the string passes without poblems. > > I would like to by pass this stage if possible as it requires the > string > to > be processes twice and this can be very expensive as I am passing > thousands > of string many of them being between 1 and 10 meg. > > Any help would be appreciated. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: chriss |
last post by:
Hello everybody!
I'm very bad in English but I'm going to try to explain my problem.
I have a python program and this program is a service.
chronologically:
1. I install my program like service -> it's ok
2. I start the service -> it's ok
3. I stop the service -> it's ok
|
by: David Fraser |
last post by:
Hi
We are trying to debug a problem with services created using py2exe.
It seems that these problems have arisen after services were installed
and removed a few times.
OK, first the actual problem we're seeing. After compiling a service
with py2exe, running "service -install" and attempting to start it from
the Services dialog, it pops up the message "Windows could not start the
Service on Local Computer. For more information,...
|
by: Ken Allen |
last post by:
I have a number of services developed in C# (.Net), and they have been
working fine for the most part. Recently someone reported that ipon
occassion (originally rarely, but more frequently on some systems of
late), there is an entry in the Event Log immediately after a boot
indicating that the service failed to start after 30,000 milliseconds.
Usually it starts fine when attempting manually after the boot.
I instrumented the code to...
|
by: JD |
last post by:
Hello,
I'm experiencing a problem that I'm hoping someone might be able to shed
some light on.
I have an ASP.NET page on a Windows 2000 machine that makes web service
calls to a .NET web service. Once in a while the ASP.NET process gets to a
state where the web service call to the web service hangs and then does a
timeout. While the ASP.NET process is in this state, looking at the TCP
connections, the TCP connection never shows up for...
|
by: Richard Collette |
last post by:
Hi,
I have a service, that runs perfectly when executed outside of the web
service environment. When called as a web service I get the exception
listed below sporadically. A call to the web method may succeed one time and
not another. I cannot find any reason why it would work one time and not
another. The exception occurs every two or three calls to the web method.
The service utilizes a COM component provided by PeopleSoft...
| |
by: DLN |
last post by:
Hello all,
I'm running into a problem with one of our site's production web
applications that was written in VB.net. The web app is running on
W2K3/IIS6 and up until this afternoon, was working just fine. The
application calls a web service that exists as an application under the main
application's root directory, and it looks as though this is where the
application dies. The UI returns "The request failed with HTTP status 400:
Bad...
|
by: =?Utf-8?B?Z3Jhenph?= |
last post by:
Hello
If someone can help me with this it would be greatly appreciated. I’m no web
service expert but I don't think i'm trying to do anything too special. I
think i must be missing something simple because i have been banging my head
against a wall with this for a while now.
I have created a web service and a client Win forms application to consume
the web service. The problem is i don't know where the web service will be
deployed...
|
by: =?Utf-8?B?cnZhbmdlbGRyb3A=?= |
last post by:
Hello,
I have a problem with our OnlineBackupService.exe. This is a Windows Service
which is built in .Net 1.1 and basically grabs files from the file system and
will try to upload them using WebServices.
The service is installed by default using LocalSystem account. The exact
problem is that sometimes this service is not allowed to resolve the target
webservice. This results in the following exception:
|
by: =?Utf-8?B?VGFwaW8gTGluZHF2aXN0?= |
last post by:
I have a problem with .NET COM+ component which cannot access the private
key of the client certificate. The problem seems to be that when the user on
which privileges the COM+ server application is running is logged in, the
certificate can be accessed. But as soon as the user logs out the I get
forbidden errors on the server.
I've tried to put the certificate in the users personal store and in the
local machine personal store and...
|
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: 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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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: 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...
| |