Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Help needed regarding calling webservices

Reply
Thread Tools

Help needed regarding calling webservices

 
 
Nagul
Guest
Posts: n/a
 
      09-17-2004
Hi All,
I am facing a problem calling a web service without generating
proxy class. I am using vb.net (windows application) with soap toolkit
3.0.
The below code works fine when i call a simple web service which
add 2 numbers. But when i try to call a login method of my actual web
service, it doesn't want to work at all. One of the xml tag contains a
encrypted password and i think that is one of the reason for the code
not to work.
Sample Code:

msg = "<?xml version=""1.0"" encoding=""utf-8""?>"
msg = msg & "<soap:Envelope
xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/""
xmlnssi=""http://www.w3.org/2001/XMLSchema-instance/""
xmlnssd=""http://www.w3.org/2001/XMLSchema/""
xmlns:soapenc=""http://schemas.xmlsoap.org/soap/encoding/"">"

msg = msg & "<soap:Body>"
msg = msg & "<LoginWeb
xmlns=""http://www.TrustAccommodation.com/TAAccommodationWebService/"">
"
msg = msg & "<strErrMessage></strErrMessage>"
msg = msg & "<strLoginID>userone</strLoginID>"
msg = msg & "<strPwd>"
msg = msg & Encrypt("demodobookings12")
msg = msg & "</strPwd>"
msg = msg & "</LoginWeb >"
msg = msg & "</soap:Body>"
msg = msg & "</soap:Envelope>"

http.open("POST", serviceURL, False)
http.setRequestHeader("SOAPAction",
"""http://www.TrustAccommodation.com/TAAccommodationWebService/LoginWeb""")

http.setRequestHeader("Content-Type", "text/xml")
http.send(msg)

Msgbox(http.responseText)


I am using the below method which is fairly a simple encryption

Public Function Encrypt(ByVal strText As String) As String
'Local variable declarations
Dim strOutput As String 'Store the
Encrypted string to be returned
Dim intLoop As Integer 'Counter
for strText length

'Encrypt each char of strText
For intLoop = 1 To Len(strText)
strOutput = strOutput & Chr(255 Xor Asc(Mid$(strText,
intLoop, 1)))
Next

Return strOutput.ToString
End Function


Can anyone help me regarding this ?????

Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question regarding webservices (xsd) steen Java 3 06-09-2006 01:19 PM
430 Forbidden error on XP machine calling webservices. Rainier [MCT] ASP General 0 01-23-2006 01:29 PM
wse router calling 2 diff webservices kiran & Dev ASP .Net Web Services 0 02-25-2005 03:17 PM
Calling webservices from a Pocket PC Arne ASP .Net Web Services 3 11-30-2004 12:54 AM
Do .Net Client Applications require MSSoap dlls for calling WebServices? Jack Wright ASP .Net Web Services 3 07-30-2004 11:19 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57