I get a readtimeout error when I send a webservice over 80k. I don't think
a c# string can handle that lengh, or do i need to reserve memory for it?
It's not a time out error, because if I send a file that's 70k, it returns
in 1-2 seconds.
It's connecting to a java apache axis server, and when I use a java client,
it sends the string perfectly.
In my .cs file, is there another data type I should change it to, or
This is my cs code
[WebMethod(BufferResponse=false)]
[System.Web.Services.Protocols.SoapRpcMethodAttribu te("",
RequestNamespace="http://server.com",
ResponseNamespace="http://server/Service")]
[return: System.Xml.Serialization.SoapElementAttribute("ema ilReturn")]
public object[] email(int[] in0, int in1, string in2, string in3, string
in4, string in5, int in6) {
object[] results = this.Invoke("email", new object[] {
in0,
in1,
in2,
in3,
in4,
in5,
in6});
return ((object[])(results[0]));
}
ERROR is:
System.Web.Services.Protocols.SoapException: java.net.SocketTimeoutEx
ception: Read timed out
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean
asyncCal
l)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodN
ame, Object[] parameters)
at AlertServiceService.email(Int32[] in0, Int32 in1, String in2, String
in3,
String in4, String in5, Int32 in6)
at AlertClient.Client.Main(String[] args) in
c:\umg\win\alertclient\src\clien
t.cs:line 133 1 1366
FYI:
It was a problem with network credentials with axis and .net.
..net first sends with no credentials, when it gets rejected, it sends it
again with the credentials. Pre-auth doesn't work.
Had to set this in the header, of my web reference.cs file.
"Cindy Lee" <ci******@hotmail.com> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl... I get a readtimeout error when I send a webservice over 80k. I don't
think a c# string can handle that lengh, or do i need to reserve memory for it? It's not a time out error, because if I send a file that's 70k, it returns in 1-2 seconds. It's connecting to a java apache axis server, and when I use a java
client, it sends the string perfectly. In my .cs file, is there another data type I should change it to, or This is my cs code [WebMethod(BufferResponse=false)] [System.Web.Services.Protocols.SoapRpcMethodAttribu te("", RequestNamespace="http://server.com", ResponseNamespace="http://server/Service")] [return: System.Xml.Serialization.SoapElementAttribute("ema ilReturn")] public object[] email(int[] in0, int in1, string in2, string in3,
string in4, string in5, int in6) { object[] results = this.Invoke("email", new object[] { in0, in1, in2, in3, in4, in5, in6}); return ((object[])(results[0])); }
ERROR is: System.Web.Services.Protocols.SoapException: java.net.SocketTimeoutEx ception: Read timed out at System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClie ntMessage message, WebResponse response, Stream responseStream, Boolean asyncCal l) at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodN ame, Object[] parameters) at AlertServiceService.email(Int32[] in0, Int32 in1, String in2, String in3, String in4, String in5, Int32 in6) at AlertClient.Client.Main(String[] args) in c:\umg\win\alertclient\src\clien t.cs:line 133
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael Rybak |
last post by:
hi, everyone.
I'm writing a 2-players game that should support network mode. I'm now
testing it on 1 PC since I don't have 2. I directly use sockets, and
both client and server do...
|
by: Bnc119 |
last post by:
Hello, I have written a C# COM server that has a few methods and a
property called DataItems that returns an ArrayList. During the
course of execution the ArrayList gets populated with several...
|
by: rs |
last post by:
how I the client tell the server that the socket is closed? or this there an
even that informs the server that the clients socket is close?
Oh, I am using vb.net 2003
Thanks
|
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...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |