473,320 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

COM+ Web Service Problem

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.
Nov 21 '05 #1
4 1677
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.com

"Steven" <St****@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.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.

Nov 21 '05 #2
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", someserverIPorName);
int result = blah.DoSomeThing(stringOfXmlMessage);
}

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.com

"Steven" <St****@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.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.


Nov 21 '05 #3
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.com

"Steven" <St****@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.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", someserverIPorName);
int result = blah.DoSomeThing(stringOfXmlMessage);
}

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.com

"Steven" <St****@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.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.


Nov 21 '05 #4
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.com

"Steven" <St****@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.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", someserverIPorName);
int result = blah.DoSomeThing(stringOfXmlMessage);
}

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.com

"Steven" <St****@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.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.


Nov 21 '05 #5

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

Similar topics

0
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...
3
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...
29
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...
2
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...
2
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...
1
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...
4
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...
5
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...
1
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.