Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2004

Tip: Looking for answers? Try searching our database.

Calling WebMethod from SoapClient api does not process umlaut character properly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jack Wright - 24 Aug 2004 08:48 GMT
Dear All,
  I am using SoapClient 1.0 to call a WebMethod that takes a name and
returns a string...but if i call this webmethof with umlaut characters
what gets returned in place of umlaut characters is ??...am I doing
something wrong here is there a solution to this?
Here is the code...
   Dim ws As New MSSOAPLib.SoapClient
   txtURL.Text = "http://localhost/MyTest/WSSimple/Service1.asmx?wsdl"
   ws.mssoapinit txtURL
   txtName.Text = ws.HelloWorld2(txtError.Text)

I even tried using XMLHTTP but got the same result...
here is the code...
   Set xmldom = CreateObject("Microsoft.XMLDOM")
   Set pi = xmldom.createProcessingInstruction("xml", "
version=""1.0"" encoding=""utf-8""")
   xmldom.insertBefore pi, xmldom.childNodes.Item(0)

   Set objXMLroot = xmldom.createNode(1, "SOAP:Envelope",
"http://schemas.xmlsoap.org/soap/envelope/")

   xmldom.appendChild (objXMLroot)
   objXMLroot.setAttribute "xmlns:soap",
"http://schemas.xmlsoap.org/soap/encoding/"
   objXMLroot.setAttribute "xmlns:xsi",
"http://www.w3.org/2001/XMLSchema-instance"
   objXMLroot.setAttribute "xmlns:xsd",
"http://www.w3.org/2001/XMLSchema"

   Set objxmlbody = xmldom.createElement("SOAP:Body")
   xmldom.documentElement.appendChild (objxmlbody)

   Set objxmlmethod1 = xmldom.createNode(1, "HelloWorld2",
"http://tempuri.org/")
   objxmlbody.appendChild (objxmlmethod1)

   Set objxmlparam1 = xmldom.createNode(1, "myName",
"http://tempuri.org/")
   objxmlparam1.Text = Trim(txtError.Text)
   objxmlmethod1.appendChild (objxmlparam1)
   
   Set XMLHTTP = CreateObject("Microsoft.XMLHTTP")
   XMLHTTP.Open "POST",
"http://localhost/Mytest/WSSimple/Service1.asmx", False
   XMLHTTP.setRequestHeader "SOAPAction",
"http://tempuri.org/HelloWorld2"
   XMLHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
   XMLHTTP.send (xmldom)
   MsgBox XMLHTTP.responseText, vbOKOnly, "Soap Response Payload from
Server"

Please help...

TALIA

Many Regards
Sunil
Jack Wright - 25 Aug 2004 05:21 GMT
This seems to be a problem with SoapClient 1.0...I checked SoapClient
3.0 and it is working fine...what is the most stable version of
SoapClient?

Please help...

TALIA
Many Regards
Jack

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.