Click here to Skip to main content
15,910,877 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: new Process has different culture Pin
minhpc_bk25-Sep-06 20:12
minhpc_bk25-Sep-06 20:12 
GeneralRe: new Process has different culture Pin
Enska8225-Sep-06 20:41
Enska8225-Sep-06 20:41 
GeneralRe: new Process has different culture Pin
minhpc_bk25-Sep-06 20:56
minhpc_bk25-Sep-06 20:56 
GeneralRe: new Process has different culture Pin
Enska8227-Sep-06 1:25
Enska8227-Sep-06 1:25 
QuestionDate Format in ASP.Net of Delphi2006 Pin
bindu_priya25-Sep-06 18:40
bindu_priya25-Sep-06 18:40 
QuestionAutomation of excel and word Pin
IamADotNetGuy25-Sep-06 18:29
IamADotNetGuy25-Sep-06 18:29 
AnswerRe: Automation of excel and word Pin
minhpc_bk25-Sep-06 19:43
minhpc_bk25-Sep-06 19:43 
QuestionPlease Help me---It is urgent..SOAP Message Pin
Amit Kumar G25-Sep-06 18:00
Amit Kumar G25-Sep-06 18:00 
Hi

I am very badly struggling with web services. I am trying to call a web service which is prepared by one of our other team. I am passing soap message as

a) SOAP MESSAGE
---------------------------
"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><SaveCustomerService xmlns='http://www.gift.com/Gift'><ROOT><username>bob</username><email>b@v.com</email><category>1</category><subject>a</subject><message>aaaa</message></ROOT></SaveCustomerService></soap:Body></soap:Envelope>"

b) Here is my calling code
----------------------------------
Public Function Send(ByVal WSUrl As String, ByVal soapAction As String, ByVal soapBody As String)
Dim httpRequest As HttpWebRequest = CType(WebRequest.Create(WSUrl), HttpWebRequest)
Dim requestStream As System.IO.Stream
Dim requestWriter As System.IO.StreamWriter
Dim responseStream As System.IO.Stream
Dim responseReader As System.IO.StreamReader

Dim bodyData As Byte() = Encoding.UTF8.GetBytes(soapBody)
httpRequest.ContentLength = bodyData.Length
httpRequest.ContentType = "text/xml; charset=utf-8"
' httpRequest.Headers.Add("SOAPAction", soapAction)
httpRequest.Method = "POST"
httpRequest.PreAuthenticate = True

' Create a New 'NetworkCredential' object.
Dim networkCredentials As NetworkCredential = New NetworkCredential("XYZ", "XYZ")

' Associate the 'NetworkCredential' object with the 'HttpWebRequest' object.
httpRequest.Credentials = networkCredentials

' Create a new RequestStream to POST info (Synchronous call)
requestStream = httpRequest.GetRequestStream()
requestWriter = New StreamWriter(requestStream)

'Write Soap message into RequestStream
requestWriter.Write(soapBody)

' Cleanup
requestWriter.Close()
requestStream.Close()

' Create a new HttpWebResponse (Synchronous call)
Try
Dim httpResponse As HttpWebResponse = CType(httpRequest.GetResponse, HttpWebResponse)

Catch ex As Exception
Dim a, b, d As String
Dim c As Exception
a = ex.Source()
b = ex.Message
c = ex.InnerException
d = ex.StackTrace
End Try

ON HttpWebResponse i am getting an error "Internal Server error 500)...

I don;t know how to debug this or how to resolve...Please help me....

C)Here is my web method
----------------------------------
Public Function SaveCustomerService(ByVal CustomerService As String) As String
Try
Dim sUserName, sEmail, sCategory, sSubject, sMessage As String
sUserName = GetXmlValue(CustomerService, "username")
sEmail = GetXmlValue(CustomerService, "email")
sCategory = GetXmlValue(CustomerService, "category")
sSubject = GetXmlValue(CustomerService, "subject")
sMessage = GetXmlValue(CustomerService, "message")
Dim sResponse As String
sResponse = SaveCustomerService(sUserName, sEmail, sCategory, sSubject, sMessage)
Return sResponse
Catch ex As Exception
Dim a As New ThrowSoapException
a.myThrow()
End Try

PLEASE HELP ME............

Amit
QuestionAccess Error Pin
hakiem_omar25-Sep-06 15:33
hakiem_omar25-Sep-06 15:33 
AnswerRe: Access Error Pin
Meax25-Sep-06 19:33
Meax25-Sep-06 19:33 
AnswerRe: Access Error Pin
M LN Rao25-Sep-06 19:33
M LN Rao25-Sep-06 19:33 
QuestionHot to convert Web.sitemap to Google site map? Pin
shapper25-Sep-06 15:31
shapper25-Sep-06 15:31 
QuestionHow to make a SiteMapDataSource to use a SiteMapProvider defined in Web.Config? Pin
shapper25-Sep-06 15:24
shapper25-Sep-06 15:24 
AnswerRe: How to make a SiteMapDataSource to use a SiteMapProvider defined in Web.Config? Pin
minhpc_bk25-Sep-06 19:53
minhpc_bk25-Sep-06 19:53 
AnswerRe: How to make a SiteMapDataSource to use a SiteMapProvider defined in Web.Config? Pin
Bishoy Labib26-Sep-06 12:41
Bishoy Labib26-Sep-06 12:41 
Questionupload component Pin
haytham_mohammad25-Sep-06 13:29
haytham_mohammad25-Sep-06 13:29 
Questionuser validation throug active directory (LDAP) Pin
machocr25-Sep-06 13:20
machocr25-Sep-06 13:20 
AnswerRe: user validation throug active directory (LDAP) Pin
minhpc_bk25-Sep-06 19:47
minhpc_bk25-Sep-06 19:47 
GeneralRe: user validation throug active directory (LDAP) Pin
machocr26-Sep-06 9:58
machocr26-Sep-06 9:58 
QuestionHow to filter nodes in SiteMapDataSource Pin
shapper25-Sep-06 11:09
shapper25-Sep-06 11:09 
AnswerRepeat question... Pin
leckey25-Sep-06 15:53
leckey25-Sep-06 15:53 
QuestionSite Map Provider Pin
shapper25-Sep-06 11:06
shapper25-Sep-06 11:06 
AnswerRe: Site Map Provider Pin
Bishoy Labib26-Sep-06 12:43
Bishoy Labib26-Sep-06 12:43 
QuestionHow to export a detailsview to excell Pin
galatia25-Sep-06 10:55
galatia25-Sep-06 10:55 
QuestionImageButton1_Click call a pop-up??? Pin
code-frog25-Sep-06 8:55
professionalcode-frog25-Sep-06 8:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.