|
Let this is your XML file
<name>
<firstname>Sushant</firstname>
<surname>Mathur</surname>
</name>
so to update these values asp page would be like this:
<%@ Language=VBScript %>
<%
function genDOM(fname,lname)
dim xmldoc
dim ElemFname
dim ElemLname
set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("c:\Document1.xml")
If (xmldoc.parseError.errorCode = 0) Then
Set ElemFname = oMSXml.selectSingleNode("//firstname")
Set ElemLname= oMSXml.selectSingleNode("//surname")
fname =Request(user_name)
lname=Request(user_surname)
ElemFname.Text =fname
ElemLname.text=lname
else
msgbox(xmldoc.parseError.reason)
end if
end function
%>
</HEAD>
<BODY>
<FORM>
<P>
<INPUT id=text1 name="user_name"><BR>
<INPUT name="user_surname"><BR>
<INPUT type=button value=" click " onclick="<%=genDOM()%>" id=button1 name=button1>
</P>
</FORM>
</BODY>
</HTML>
Sushant Mathur
Ocwen Financial Sol. Pvt. Ltd,
Bangalore,
INDIA.
|
|
|
|
|
I would like to make a soap call that should work the following way:
For every method invocation
1. the client starts the server executable
2. the client pipes the input message to stdin of the server process
3. the server reads stdin, decodes the soap message and processes it
4. the output message is written to stdout by the server
5. the client decodes the message and continues
Ideally it would be possible to define a SOAP binding in the WSDL that define the executable to be started instead of specifying a URL. Is there something like a predefined EXE-binding in WSDL?
Are there SOAP frameworks that allow you to pipe SOAP via stdin/stdout instead of making a http request?
Best regards
Carsten
|
|
|
|
|
hi
i m in problem when i insert image through xml comments in .chm file
plz help me
|
|
|
|
|
|
|
Hi, im having a problem when i call a web service using a stored procedure in oracle. I download from a wep page an api that let me interact and this is my stored procedure:
PROCEDURE consultar () IS
--DECLARE
l_request Soap_Api.t_request;
l_response Soap_Api.t_response;
l_tipocambio NUMBER;
BEGIN
--UTL_HTTP.set_proxy('bart.tshcomputing.com:4480', NULL);
--UTL_HTTP.set_persistent_conn_support(TRUE);
l_request := Soap_Api.new_request(p_method => 'ConsultarTC',
p_namespace => 'xmlns="http://tempuri.org/"');
l_response := Soap_Api.invoke(p_request => l_request,
p_url=> 'http://10.32.1.56/webserviceia/tipocambio.asmx',--c_url_webservice,
p_action => 'http://tempuri.org/ConsultarTC');
l_tipocambio := Soap_Api.get_return_value(p_response => l_response,
p_name => 'Compra',
p_namespace =>'http://tempuri.org/');
DBMS_OUTPUT.put_line(' l_Compra:' || l_tipocambio);
bDisponible := TRUE;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
RAISE;
END consultar;
i having the next error:
Server was unable to read request. --> 'Text' is an invalid node type. Line 1, position 170.
can anybody help me? or where can i find examples and trust documentation of this??
thanks!!
|
|
|
|
|
I'm a newbie newbie and I don't have a clue how to get an Excel table of data into a web page which allows you to show just a filtered result. The only thing I can think of is to put it into XML and then some how use javascript to filter the data but I also need the results to be free and not stuck in a table layout. If you can help please explain with examples or a direct link to an example cause of the newbie thing.
Thank you for your time, KP.
|
|
|
|
|
Hi,
does anybody know how to prevent the XmlSerializer from escaping certain property data on serialization?
For example, I have a property containing a valid xhtml string which I want to preserve for further xsl transformations after serialization.
Or is there an easy way to "un-escape" such data during a xsl transformation?
Thanks
-- modified at 7:32 Saturday 15th October, 2005
|
|
|
|
|
You can use attribute "disable-output-escaping" and if you set its value to YES then XmlSerializer will escape from this line.
<xsl:text disable-output-escaping='yes'>YOUR STRING HERE</xsl:text>
plz tell me if still u have any problem.
Sushant Mathur
Ocwen Financial Sol. Pvt. Ltd,
Bangalore,
INDIA.
-- modified at 6:31 Tuesday 25th October, 2005
|
|
|
|
|
This does the trick:
[XmlIgnore()]<br />
public string TextValue<br />
{<br />
get{ return this.textValue; }<br />
set{ this.textValue = value; }<br />
}<br />
<br />
[System.Xml.Serialization.XmlAnyElement("TextValue")]<br />
public XmlElement TextValueElement<br />
{<br />
get{<br />
XmlDoc xDoc = new XmlDocument(); <br />
XmlElement elem = xDoc.CreateElement("TextValue");<br />
elem.InnerXml = this.textValue;<br />
return elem;<br />
}<br />
set{}<br />
<br />
}
|
|
|
|
|
I have a system where several accounts can exist, in several flavours. I decided to use XML files for storage where each account gets it's own file. At startup, the system loads all accounts in memory.
Have a look at this class diagram.
When mass deserializing, I don't know how to specify of what type (Administrator, Business or Member) an account will be. I tried setting up the deserializer with the root type (Account) but any attempt throws an error about unexpected type.
XmlSerializer serializer = new XmlSerializer(typeof(Account));
Then I tried specifying extra types but the same error arises.
XmlSerializer serializer = new XmlSerializer(typeof(Account), new Type[] { typeof(Administrator), typeof(Business), typeof(Member) });
Any idea how this problem could be resolved?
|
|
|
|
|
I have a XML file as below and i want to insert a particular tag after every 5 elements using XSL.
I havesome idea means using position() function but it's not working.Please help me
XML file:
<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
<rs:data>
<z:row pk_user_info="1" pk_node="10001" login_id="uktestreq"/>
<z:row pk_user_info="2" pk_node="10002" login_id="uktestven01"/>
<z:row pk_user_info="3" pk_node="10003" login_id="ocwenreq80"/>
<z:row pk_user_info="4" pk_node="10004" login_id="ocwenven80"/>
<z:row pk_user_info="5" pk_node="10005" login_id="TestRequestor123"/>
<z:row pk_user_info="6" pk_node="10006" login_id="ocwenboth80"/>
<z:row pk_user_info="7" pk_node="10007" login_id="ocwenalven80"/>
<z:row pk_user_info="8" pk_node="10008" login_id="TestRequestor150"/>
<z:row pk_user_info="9" pk_node="10009" login_id="TestRequestor151"/>
<z:row pk_user_info="10" pk_node="10010" login_id="TestVendor150"/>
<z:row pk_user_info="11" pk_node="10011" login_id="TestVendor152"/>
</rs:data>
</xml>
-Sushant Mathur
Ocwen Financial Sol Pvt Ltd,
Bangalore,India.
|
|
|
|
|
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="utf-8" omit-xml-declaration="no" standalone="no" indent="yes" />
<xsl:template match="/">
<xml>
<data>
<xsl:for-each select="xml/data/row">
<xsl:choose>
<xsl:when test="position()=5">
<xsl:copy-of select="." />
<my-tag>Hello</my-tag>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="." />
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</data>
</xml>
</xsl:template>
</xsl:stylesheet>
|
|
|
|
|
Thanks a lot buddy...my problem has been solved now
-- modified at 1:01 Monday 17th October, 2005
|
|
|
|
|
I'm attempting transfom an OpenOffice xml file,
using the ooo2xhtml.xsl style sheet, in an asp.net aspx page.
I get an error in the XslTransorm line:
"The required node-set function was not found!"
Is there an incompatibility between micorsoft's embedded parser and the xsl used in OpenOffice?
Do I need to use another parser (like Saxon)?
If so, how can I make use of the dotnet xml objects?
Or what approach should I be taking?
Sample in-page code:
Dim strXmlFile As String = Server.MapPath("content-test.xml")
Dim strXslFile As String = Server.MapPath("ooo2xhtml.xsl")
Dim myXmlDoc As XmlDocument = New XmlDocument()
myXmlDoc.Load(strXmlFile)
Dim myXslDoc As XslTransform = New XslTransform()
myXslDoc.Load(strXslFile)
Dim myStringBuilder As StringBuilder = New StringBuilder()
Dim myStringWriter As StringWriter = New StringWriter(myStringBuilder)
myXslDoc.Transform(myXmlDoc, Nothing, myStringWriter)
litOutput.Text = myStringBuilder.ToString
Kyle
|
|
|
|
|
Hi,im having trouble accessing a X509Certificate from a asp.net webpage,the exact same code runs from a windows form but from the webpage the store has 0 certificates. Im using wse2.0, i gave aspnet acc full-control permission to the certificate.Any help will be appreciated.The error i get is System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index at Microsoft.Web.Services2.Security.X509.X509CertificateCollection.get_Item(Int32 index)
eni9ma
|
|
|
|
|
i have the same problem... my old webpage its ok.. but when i want replace with my new webpage appear...
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index at Microsoft.Web.Services2.Security.X509.X509CertificateCollection.get_Item(Int32 index)
HELP ME PLEASE!!!
|
|
|
|
|
Hello,
The code below gives me this XML output(replaced brackets with dashes to show in forum):
--MethodList xmlns:xsd="http://www.w3.org/2001/XMLSchema"--
--xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"--
--Method name="TestMethod" /--
--Param name="Param1" value="ParamValue"/--
--Param name="Param2" value="ParamValue" /--
--/MethodList--
But I'd like this:
--MethodList xmlns:xsd="http://www.w3.org/2001/XMLSchema"--
--xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"--
--Method name="TestMethod" /--
--Param name="Param1" value="ParamValue"/--
--Param name="Param2" value="ParamValue" /--
--/Method
--/MethodList--
Basically I need to set the Param element as a child of the Method Element. Not having any luck. I'm new to XML.
Any ideas greatly appreciated? Thank you in advance!
This is the full code:
using System;
using System.Collections;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
[XmlRoot("MethodList")]
public class MethodList
{
private ArrayList aMethodList;
private ArrayList aParamList;
public MethodList()
{
aMethodList = new ArrayList();
aParamList = new ArrayList();
}
[XmlElement("Method")]
public Method[] Methods
{
get
{
Method[] aMthds = new Method[ aMethodList.Count ];
aMethodList.CopyTo( aMthds );
return aMthds;
}
set
{
if( value == null ) return;
Method[] aMthds = (Method[])value;
aMethodList.Clear();
foreach( Method aMthd in aMthds )
aMethodList.Add( aMthd );
}
}
[XmlElement("Param")]
public Param[] Params
{
get
{
Param[] aParms = new Param[ aParamList.Count ];
aParamList.CopyTo( aParms );
return aParms;
}
set
{
if( value == null ) return;
Param[] aParms = (Param[])value;
aParamList.Clear();
foreach( Param aParm in aParms )
aParamList.Add( aParm );
}
}
public int AddParam( Param aParm )
{
return aParamList.Add( aParm );
}
public int AddMthd( Method aMthd )
{
return aMethodList.Add( aMthd );
}
public void InsertMethod()
{
MethodList aMthdLst = new MethodList();
aMthdLst.AddMthd( new Method( "TestMethod"));
aMthdLst.AddParam(new Param("Param1","ParamValue"));
aMthdLst.AddParam(new Param("Param2","ParamValue"));
// Serialization
XmlSerializer s = new XmlSerializer( typeof( MethodList ) );
TextWriter w = new StreamWriter( "list.xml" );
s.Serialize( w, aMthdLst );
w.Close();
// Deserialization
MethodList newList;
TextReader r = new StreamReader( "list.xml" );
newList = (MethodList)s.Deserialize( r );
r.Close();
}
}
// Method list
public class Method
{
[XmlAttribute("name")] public string name;
// [XmlElement("param")] public Param param;
public Method()
{
}
public Method( string theName)
{
name = theName;
}
}
//Params
public class Param
{
[XmlAttribute("name")] public string name;
[XmlAttribute("value")] public string pValue;
public Param()
{
}
public Param( string theName, string theValue )
{
name = theName;
pValue = theValue;
}
}
PhrankBooth
-- modified at 11:44 Wednesday 12th October, 2005
|
|
|
|
|
Answered my own question. Generated an xsd file based on the xml structure I wanted then used xsd.exe to generate the classes I needed and called those.
PhrankBooth
|
|
|
|
|
Hi
How can i create an xsl stylesheet to remove soap enveloe and make a html output
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<findAddressResponse xmlns="http://lbs.wheresoft.com/api/wssp/FindService">
<findAddressResult>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="NewDataSet" msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Table1">
<xs:complexType>
<xs:sequence>
<xs:element name="Blk" type="xs:string" minOccurs="0"/>
<xs:element name="roadname" type="xs:string" minOccurs="0"/>
<xs:element name="postalcode" type="xs:string" minOccurs="0"/>
<xs:element name="buildingname" type="xs:string" minOccurs="0"/>
<xs:element name="ABBRRoad_name" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table1 diffgr:id="Table11" msdata:rowOrder="0" diffgr:hasChanges="inserted">
<Blk>1</Blk>
<roadname>Pasir Panjang Drive</roadname>
<postalcode>118911</postalcode>
<buildingname>Ealine Park</buildingname>
<ABBRRoad_name>Pasir Panjang Dr</ABBRRoad_name>
</Table1>
<Table1 diffgr:id="Table12" msdata:rowOrder="1" diffgr:hasChanges="inserted">
<Blk>1</Blk>
<roadname>Pasir Panjang Close</roadname>
<postalcode>118959</postalcode>
<buildingname>Sunny Vale</buildingname>
<ABBRRoad_name>Pasir Panjang Cl</ABBRRoad_name>
</Table1>
<Table1 diffgr:id="Table13" msdata:rowOrder="2" diffgr:hasChanges="inserted">
<Blk>1</Blk>
<roadname>Pasir Panjang Road</roadname>
<postalcode>118479</postalcode>
<ABBRRoad_name>Pasir Panjang Rd</ABBRRoad_name>
</Table1>
<Table1 diffgr:id="Table14" msdata:rowOrder="3" diffgr:hasChanges="inserted">
<Blk>1</Blk>
<roadname>Pasir Panjang Road</roadname>
<postalcode>118479</postalcode>
<buildingname>Bp House</buildingname>
<ABBRRoad_name>Pasir Panjang Rd</ABBRRoad_name>
</Table1>
<Table1 diffgr:id="Table15" msdata:rowOrder="4" diffgr:hasChanges="inserted">
<Blk>1</Blk>
<roadname>Pasir Ris Farmway 2</roadname>
<postalcode>519319</postalcode>
<ABBRRoad_name>Pasir Ris Farmway 2</ABBRRoad_name>
</Table1>
<Table1 diffgr:id="Table16" msdata:rowOrder="5" diffgr:hasChanges="inserted">
<Blk>1</Blk>
<roadname>Pasir Ris Coast Ind Park 1</roadname>
<postalcode>518235</postalcode>
<ABBRRoad_name>Pasir Ris Coast Ind Pk 1</ABBRRoad_name>
</Table1>
<Table1 diffgr:id="Table17" msdata:rowOrder="6" diffgr:hasChanges="inserted">
<Blk>1</Blk>
<roadname>Pasir Ris Farmway 1</roadname>
<postalcode>519352</postalcode>
<ABBRRoad_name>Pasir Ris Farmway 1</ABBRRoad_name>
</Table1>
<Table1 diffgr:id="Table18" msdata:rowOrder="7" diffgr:hasChanges="inserted">
<Blk>1</Blk>
<roadname>Pasir Ris Central Street 3</roadname>
<postalcode>518457</postalcode>
<buildingname>White Sands</buildingname>
<ABBRRoad_name>Pasir Ris Ctrl St 3</ABBRRoad_name>
</Table1>
<Table1 diffgr:id="Table19" msdata:rowOrder="8" diffgr:hasChanges="inserted">
<Blk>1</Blk>
<roadname>Pasir Ris Drive 4</roadname>
<postalcode>519457</postalcode>
<ABBRRoad_name>Pasir Ris Dr 4</ABBRRoad_name>
</Table1>
<Table1 diffgr:id="Table110" msdata:rowOrder="9" diffgr:hasChanges="inserted">
<Blk>1</Blk>
<roadname>Pasir Ris Heights</roadname>
<postalcode>519208</postalcode>
<buildingname>Pasir Ris Beach Park</buildingname>
<ABBRRoad_name>Pasir Ris Heights</ABBRRoad_name>
</Table1>
</NewDataSet>
</diffgr:diffgram>
</findAddressResult>
</findAddressResponse>
</soap:Body>
</soap:Envelope>
|
|
|
|
|
Hi,
I'm beginner in XML-RPC. i don't know much about XML-RPC. can you
give me links where i understand what's the basic dirrerence between
XML-RPC over other types RPC.
Why we use XML-RPC instead of others.
please help me.
Regards,
prashant
|
|
|
|
|
Two good defs:
Wikipedia[^]
SourceForge[^]
Look also to this[^] codeproject article.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Thanks,
Its really good artical. but i want example in vc++.
which VS version it require. i have download source code in c & c++ but
when i compiled it show me lot of error. Please help which environment it
require
Regards
Prashant
|
|
|
|
|
prashantarun wrote:
i have download source code in c & c++ but when i compiled it show me lot of error
wich source code? Any of the links that I provided?
What kind of errors do you have?
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
Hi All,
I need to create an XSL style sheet and gotta get it done fast!
If anyone can help that would be great!
Basically, I am pulling data from SQL and need it to go to Excel. Everything works but the XSL template.
I need my data to show up as a table with headings (also pulled from the database) as such:
Heading1 Heading2 Heading3 Heading4
1 1 1 1
2 2 2 2
3 3 3 3
And I need the XSL sheet to use the spreadsheet standards...
<worksheet><row><cell>...
Any help would be so much appreciated...thanks!
|
|
|
|