Re: Help Me out

franklin gray <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <[email protected]>
To make sure I understand.

You have created a Web Service that creates an object on the server, then you try to execute a method of that object and passing in a parm of a very large string, correct?  Are you saying that this errors out when you call the web service?


-----Original Message-----
From: Dinesh Upare [mailto:[email protected]]
Sent: Thursday, June 13, 2002 8:38 AM
To: [email protected]
Subject: [DOTNET] Help Me out


Hi,

I encountered some strange problem.

I have a component at server which is vb dll.It takes a parameter string.
I have created a wsdl file of the component and exposed it as a webservice.

But when the length of the string parameter exceeds certain limit( in my
case more than 90 kb);

The .NET CLR returns exception :-

an unhandled exception of type 'System.Net.WebException' occurred in
system.web.services.dll
Additional information: The request failed with HTTP status 400: 100 Bad
Request.



If I create a .NET web service then I am able to send big files without any
problem.

But not with the webservice created of the vb component.



I am stuck.

Please help me out.I am sending the cs file created from the wsdl file
created of the vb component.

Sincerely

Dinesh





**********************

//--------------------------------------------------------------------------
----

// <autogenerated>

// This code was generated by a tool.

// Runtime Version: 1.0.3705.209

//

// Changes to this file may cause incorrect behavior and will be lost if

// the code is regenerated.

// </autogenerated>

//--------------------------------------------------------------------------
----

//

// This source code was auto-generated by wsdl, Version=1.0.3705.209.

//

namespace MyJOBSpipeline {

using System.Diagnostics;

using System.Xml.Serialization;

using System;

using System.Web.Services.Protocols;

using System.ComponentModel;

using System.Web.Services;



/// <remarks/>

// CODEGEN: The optional WSDL extension element 'binding' from namespace
'http://schemas.microsoft.com/soap-toolkit/wsdl-extension' was not handled.

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("code")]

[System.Web.Services.WebServiceBindingAttribute(Name="MJPNetClassSoapBinding
", Namespace="http://tempuri.org/wsdl/")]

public class MJPNET : System.Web.Services.Protocols.SoapHttpClientProtocol {


/// <remarks/>

public MJPNET() {

this.Url = "http://192.168.100.83/MJPNET/MJPNET.WSDL";

}


/// <remarks/>

[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ac
tion/MJPNetClass.GetPassword",
RequestNamespace="http://tempuri.org/message/",
ResponseNamespace="http://tempuri.org/message/")]

[return: System.Xml.Serialization.SoapElementAttribute("Result")]

public string GetPassword(string username) {

object[] results = this.Invoke("GetPassword", new object[] {

username});

return ((string)(results[0]));

}


/// <remarks/>

public System.IAsyncResult BeginGetPassword(string username,
System.AsyncCallback callback, object asyncState) {

return this.BeginInvoke("GetPassword", new object[] {

username}, callback, asyncState);

}


/// <remarks/>

public string EndGetPassword(System.IAsyncResult asyncResult) {

object[] results = this.EndInvoke(asyncResult);

return ((string)(results[0]));

}


/// <remarks/>

[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ac
tion/MJPNetClass.Authenticate",
RequestNamespace="http://tempuri.org/message/",
ResponseNamespace="http://tempuri.org/message/")]

[return: System.Xml.Serialization.SoapElementAttribute("Result")]

public string Authenticate(string A, string B, string C, string D, string E)
{

object[] results = this.Invoke("Authenticate", new object[] {

A,

B,

C,

D,

E});

return ((string)(results[0]));

}


/// <remarks/>

public System.IAsyncResult BeginAuthenticate(string A, string B, string C,
string D, string E, System.AsyncCallback callback, object asyncState) {

return this.BeginInvoke("Authenticate", new object[] {

A,

B,

C,

D,

E}, callback, asyncState);

}


/// <remarks/>

public string EndAuthenticate(System.IAsyncResult asyncResult) {

object[] results = this.EndInvoke(asyncResult);

return ((string)(results[0]));

}


/// <remarks/>

[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ac
tion/MJPNetClass.UserRegistration",
RequestNamespace="http://tempuri.org/message/",
ResponseNamespace="http://tempuri.org/message/")]

[return: System.Xml.Serialization.SoapElementAttribute("Result")]

public string UserRegistration(string A, string RegKey, string SMacAddress)
{

object[] results = this.Invoke("UserRegistration", new object[] {

A,

RegKey,

SMacAddress});

return ((string)(results[0]));

}


/// <remarks/>

public System.IAsyncResult BeginUserRegistration(string A, string RegKey,
string SMacAddress, System.AsyncCallback callback, object asyncState) {

return this.BeginInvoke("UserRegistration", new object[] {

A,

RegKey,

SMacAddress}, callback, asyncState);

}


/// <remarks/>

public string EndUserRegistration(System.IAsyncResult asyncResult) {

object[] results = this.EndInvoke(asyncResult);

return ((string)(results[0]));

}


/// <remarks/>

[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ac
tion/MJPNetClass.GetAppDetails",
RequestNamespace="http://tempuri.org/message/",
ResponseNamespace="http://tempuri.org/message/")]

[return: System.Xml.Serialization.SoapElementAttribute("Result")]

public string GetAppDetails(string username) {

object[] results = this.Invoke("GetAppDetails", new object[] {

username});

return ((string)(results[0]));

}


/// <remarks/>

public System.IAsyncResult BeginGetAppDetails(string username,
System.AsyncCallback callback, object asyncState) {

return this.BeginInvoke("GetAppDetails", new object[] {

username}, callback, asyncState);

}


/// <remarks/>

public string EndGetAppDetails(System.IAsyncResult asyncResult) {

object[] results = this.EndInvoke(asyncResult);

return ((string)(results[0]));

}


/// <remarks/>

[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ac
tion/MJPNetClass.UpdateQuota",
RequestNamespace="http://tempuri.org/message/",
ResponseNamespace="http://tempuri.org/message/")]

[return: System.Xml.Serialization.SoapElementAttribute("Result")]

public bool UpdateQuota(int postedjobs, int totalpostedjobs, string
username) {

object[] results = this.Invoke("UpdateQuota", new object[] {

postedjobs,

totalpostedjobs,

username});

return ((bool)(results[0]));

}


/// <remarks/>

public System.IAsyncResult BeginUpdateQuota(int postedjobs, int
totalpostedjobs, string username, System.AsyncCallback callback, object
asyncState) {

return this.BeginInvoke("UpdateQuota", new object[] {

postedjobs,

totalpostedjobs,

username}, callback, asyncState);

}


/// <remarks/>

public bool EndUpdateQuota(System.IAsyncResult asyncResult)

object[] results = this.EndInvoke(asyncResult);

return ((bool)(results[0]));

}


/// <remarks/>

[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ac
tion/MJPNetClass.InsertUpdateRecord",
RequestNamespace="http://tempuri.org/message/",
ResponseNamespace="http://tempuri.org/message/")]

[return: System.Xml.Serialization.SoapElementAttribute("Result")]

public bool InsertUpdateRecord(ref string query) {

object[] results = this.Invoke("InsertUpdateRecord", new object[] {

query});

query = ((string)(results[1]));

return ((bool)(results[0]));

}


/// <remarks/>

public System.IAsyncResult BeginInsertUpdateRecord(string query,
System.AsyncCallback callback, object asyncState) {

return this.BeginInvoke("InsertUpdateRecord", new object[] {

query}, callback, asyncState);

}


/// <remarks/>

public bool EndInsertUpdateRecord(System.IAsyncResultasyncResult, out string
query) {

object[] results = this.EndInvoke(asyncResult);

query = ((string)(results[1]));

return ((bool)(results[0]));

}


/// <remarks/>

[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ac
tion/MJPNetClass.HttpMialSending",
RequestNamespace="http://tempuri.org/message/",
ResponseNamespace="http://tempuri.org/message/")]

[return: System.Xml.Serialization.SoapElementAttribute("Result")]

public object HttpMialSending() {

object[] results = this.Invoke("HttpMialSending", new object[0]);

return ((object)(results[0]));

}


/// <remarks/>

public System.IAsyncResult BeginHttpMialSending(System.AsyncCallback
callback, object asyncState) {

return this.BeginInvoke("HttpMialSending", new object[0], callback,
asyncState);

}


/// <remarks/>

public object EndHttpMialSending(System.IAsyncResult asyncResult) {

object[] results = this.EndInvoke(asyncResult);

return ((object)(results[0]));

}


/// <remarks/>

[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ac
tion/MJPNetClass.SendMail", RequestNamespace="http://tempuri.org/message/",
ResponseNamespace="http://tempuri.org/message/")]

[return: System.Xml.Serialization.SoapElementAttribute("Result")]

public bool SendMail(string sAttFileName, bool bFileUp, bool bFileDel,
string sSender, string sReceiver, string sCc, string sBcc, string sSubject,
string sMessageBody, string sAttachFile) {

object[] results = this.Invoke("SendMail", new object[] {

sAttFileName,

bFileUp,

bFileDel,

sSender,

sReceiver,

sCc,

sBcc,

sSubject,

sMessageBody,

sAttachFile});

return ((bool)(results[0]));

}


/// <remarks/>

public System.IAsyncResult BeginSendMail(string sAttFileName, bool bFileUp,
bool bFileDel, string sSender, string sReceiver, string sCc, string sBcc,
string sSubject, string sMessageBody, string sAttachFile,
System.AsyncCallback callback, object asyncState) {

return this.BeginInvoke("SendMail", new object[] {

sAttFileName,

bFileUp,

bFileDel,

sSender,

sReceiver,

sCc,

sBcc,

sSubject,

sMessageBody,

sAttachFile}, callback, asyncState);

}


/// <remarks/>

public bool EndSendMail(System.IAsyncResult asyncResult) {

object[] results = this.EndInvoke(asyncResult);

return ((bool)(results[0]));

}

}

}

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.