|
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!
|
|
|
|
|
Hello All,
<AddUser>
<property name="FirstName" value="Joe"/>
<property name="LastName" value="Smith"/>
</AddUser>
Im trying to get the value portion of each element based on the name portion by using XPath. Something like //property[@name='LastName'] gives me the node for lastname, but im not sure how to get "Smith" out of that. Thanks in advance!
Ryan
-- modified at 14:42 Wednesday 5th October, 2005
|
|
|
|
|
The attributecollection property, ofcourse, im an idiot!
Thanks,
Ryan
|
|
|
|
|
I'm writing the programm where I need to create images using SVG and Javascript:
this.svgObj = svgDocument.createElement("image");
this.svgObj.setAttributeNS(null, "x", this.bx);
this.svgObj.setAttributeNS(null, "y", this.by);
this.svgObj.setAttributeNS(null, "height", this.ex);
this.svgObj.setAttributeNS(null, "width",this.ey);
this.svgObj.setAttributeNS(null, "xlink:href", "sss.jpg");
svgDocument.documentElement.appendChild(this.svgObj);
But image isn't created. What's wrong in our code?
Similar code with shapes is working:
var shape = svgDocument.createElement("rect");
shape.setAttributeNS(null, "x", _x);
shape.setAttributeNS(null, "y", _y);
shape.setAttributeNS(null, "height", _h);
shape.setAttributeNS(null, "width", _w);
shape.setAttributeNS(null, "fill", _col);
svgDocument.documentElement.appendChild(shape);
Thank you very much.
|
|
|
|
|
how tolink an xml file with wml so that it will fetch the data(xml) and show to wml .plz tell me this with a small example or send the example on my mail id given below
raviraman4u@yahoo.com
raviraman4u@rediffmail.com
|
|
|
|
|
I'm attempting to put together an XML format for posting/migrating blog data, and while I'm in the design phase, I came across an interesting question.
What's the best way to take HTML that may or may not be valid, and nest it in an XML document, while still keeping the XML valid?
I'm trying to make it so that the data can be migrated between all manner of blogging apps (LJ, diaryland, self-hosted ones like Wordpress, Pivot, B2Evolution), and most of them have their own unique quirks that break valid XML (some, for instance, use <p> instead of <p />) if just dropped in there.
Is there some "comment" element, or other way of flagging chunks of data that shouldn't be explicitly validated?
Should I just leave it up to the software processing the data to replace all "keyword" type characters (<> etc) with their HTML equivalents? < &rt; etc... The problem with this approach, is that there are a ton of these, and I don't want to place undo stress on those writing the software to deal with this format.
Any ideas on valid ways to tell an XML parser "this is valid, just ignore it", or simpler ways to store unvalidated HTML in a valid XML doc, or in general just ideas as to what approach I should take?
Oh, if you want to follow the progress of the format,
http://www.callingshotgun.net/drupal
Much appreciated.
-Alex
|
|
|
|
|
|
(Apparently Greener in XML than I thought... never used CDATA)
Looked it up... Yeah, that's absolutely perfect, thanks!
Damn you, online references, for making me feel leeter than I was!
-Alex
|
|
|
|
|
can anyone tell me about xalan:nodeset and xalan:tokenize?
what is functionality of the following statement in .xsl
<xsl:value-of select="//state[@name=$state]/policies[xalan:tokenize(@clients, ',') = $client]/@URI"/>
Thanks
kavitha
|
|
|
|
|
This[^] was the first hit from google, and it confirmed what I thought. Tokenise will split @clients into an array of strings, every time it finds a ,. Then I assume that it will match when one of those values is the same as $client
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
how can i implement a similar functionality in c#, so that my function will perform the same task of xalan:tokenize?
And in xml how does an array of values get matched with a single value?
kavitha
|
|
|
|
|
Google[^] has a heap of info on C# XSLT extensions
It would return a nodeset, so any values that match will be returned.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi All!
I use XmlSerializer to serialize object and got the following:
<?xml version=\"1.0\" encoding=\"utf-16\"?>
<MyClass xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.MyFirma.biz/MyNamespace\">
<Positions>
<Position>
</Position>
...
</Positions>
</MyClass>
Is it possible to get rid of the overhead (namespace info, schema info, xml version)? Anyway I do not need this info since parsing will be done without XmlSerializer.
So I need that output looks like below:
<MyClass>
<Positions>
<Position>
</Position>
...
</Positions>
</MyClass>
Thanks!
|
|
|
|
|
Hi There,
Do you know how to serialize a button or textbox
|
|
|
|
|
convert interbase database file into sql server database
My question is that through interbase database i have text file and again i want to convert that file in sql server database or any ms-access database is it possible so what r the steps.....
plz reply soon..
brijesh
|
|
|
|
|
How can i insert a .gif image in my XSLT document, so it can be seen in the output (html)?
|
|
|
|