Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > consuming webservices in VB.net thru javascript

Reply
Thread Tools

consuming webservices in VB.net thru javascript

 
 
Bhagwati
Guest
Posts: n/a
 
      03-05-2004
Hello all,
I am creating a webservice in VB.net and accessing thru the
client side javascript . I am passing a xmldom object in the script and
trying to receive it in the format of xmldocument in the webservice. But
somehow this does not work.

function myxml()

{

var domDoc= new ActiveXObject("Microsoft.XMLDOM");

//PI

var mystring;

var pi =domDoc.createProcessingInstruction("xml","version ='1.0'");

domDoc.insertBefore(pi,domDoc.childNodes.item(0));


var root = domDoc.createNode(1,'ROOTElement','');

//first para : NodeType(1 means NodeElement), second para: name of node,
third para : namespace


domDoc.appendChild(root);


var firstChild = domDoc.createNode(1,'FName','');

root.appendChild(firstChild);

firstChild.text = document.Form1.mybox.value;


var secondChild = domDoc.createNode(1,'SecondChild','');

root.appendChild(secondChild);


//attributes of the secondChild element


secondChild.setAttribute('revision','1.0');

alert(domDoc.xml);

service.useService("http://localhost/DynamicUI/dynamicui.asmx?WSDL","ui");

mystring=service.ui.callService(fun,"Getxml",domDo c);

alert(mystring);

alert("i called the getxml service");

}

And the signature of the webservice method is

<WebMethod()> Public Function Getxml(ByVal myxml As XmlDocument) As String

Plz help asap

Regards,

Bhagwati




 
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
Consuming WebServices from ASP 2 Aiden ASP .Net Web Services 0 07-27-2006 11:56 AM
Consuming webservices in vs2005 jhcorey@yahoo.com ASP .Net 0 09-02-2005 05:02 PM
Consuming Webservices from ASP blueey ASP .Net Web Services 2 03-04-2005 03:03 AM
Consuming webservices in pocket pc application Bart Verdonck ASP .Net Web Services 1 03-01-2005 02:10 AM
Consuming WebServices using HttpWebRequest class Baccarin ASP .Net Web Services 0 07-15-2003 06:34 PM



Advertisments