|
I am using SOAP 3 in Visual C++ 6 with the low-level calls.
I see that it defaults the Content-Type in the HTTP Header to 'application/dime'.
I am new to SOAP and I am wondering if you can change this value?
|
|
|
|
|
I am trying to transform an XML file using XSLT. in My XSLT file I have
omit-xml-declaration="yes"
This works execpt when I run it using a VbScript. When I load the xml file the Dom addes the declaration and it comes out the other side. How can I tell the DOm not to add it?
Thanks
|
|
|
|
|
Hi,
I've got an amazing problem... I've done a .Net solution for Pocket PC where I load an XML file, I put its content into a dataset.. normal stuff.. and then I want to write things into it : I naturally put :
FileStream fs = new FileStream(file,FileMode.OpenOrCreate); // filename
XmlTextWriter xtw = new XmlTextWriter(fs, Encoding.Unicode);
ds.WriteXml(xtw, XmlWriteMode.IgnoreSchema);
xtw.Close();
fs.Close();
(I want to use Unicode)
but when I want to read the XML file again I have an error : there's a chinese line at the end of the document!! so I copy the downloaded XML file from the pocket PC, and I see that the "encoding" has been changed to "utf-8"..
do you know how to fix this pb? thanx!
|
|
|
|
|
Dear CPians,
(I am using ASP not ASP.NET)
I use a Stored Procedure to get a recordset.
I convert this recordset into an XML Document using the XMLDOM object through a FUnction that I have made.
I the use an XSLT Ducment to generate HTML.
One of the fields in the recordset is an NTEXT field that contains HTML code. When I transform the XML with the XSL the HTML code of that gield is removed.
When I put the HMTL code within the XML Element into CDATA type and I view the page in the browser, I see the acuall HTML code.
Any ideas?
theJazzyBrain
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
Being able to see you xslt document would help, but at a guess I would say that you do not have a matching template for the html nodes, so they are not being copied into the output document.
|
|
|
|
|
Suppose I have login page with Email id and password.
In one page I want to put the email and password in the center of the page, and in another page I want to put the email and password in left side of the page.
Can I create this page in XML. This XML file I want to include into my HTML pages. In turn I want to use this page in ASP.NET
Padmavathi
|
|
|
|
|
Hi,
You could create a Web User Control in ASP.NET, then place the user control wherever on the screen you wish the "email/password" control to appear.
Hope this helps,
Andy
|
|
|
|
|
Hello,
Is it possible for ASP Classic to use SOAP to access a .NET web service directly?
I have an existing web application in ASP Classic and I am wanting to move to(or create the next version in) ASP.NET and Web Services, but I will need to also allow my existing application to access my new web services. Any suggestions or articles would be greatly appreciated.
|
|
|
|
|
Hi,
Check out Yuen Chiu So article "ASP.NET Web Service" [^].
NOTE: If you go down the Msxml2.XMLHTTP route you should use Msxml2.ServerXMLHTTP.4.0 as your client is a server process (IIS/ASP). Naturally you must have msxml4 install on the web server.
Here's some comments from Microsoft:
The ServerXMLHTTP object offers functionality similar to that of the XMLHTTP object. Unlike XMLHTTP , however, the ServerXMLHTTP object does not rely on the WinInet control for HTTP access to remote XML documents. ServerXMLHTTP uses a new HTTP client stack. Designed for server applications, this server-safe subset of WinInet offers the following advantages:
- Reliability — The HTTP client stack offers longer uptimes. WinInet features that are not critical for server applications, such as URL caching, auto-discovery of proxy servers, HTTP/1.1 chunking, offline support, and support for Gopher and FTP protocols are not included in the new HTTP subset.
- Security — The HTTP client stack does not allow a user-specific state to be shared with another user's session.
ServerXMLHTTP provides support for client certificates.
Note For more information about the limitations of the WinInet control, see >WinInet Limits Connections Per Server.
Hope this helps,
Andy
|
|
|
|
|
Thanks. This helped.
Do you know where I can find more info on security and how to prevent someone from running specific webservices from ASP Classic/SOAP? I know that ASP.NET and WebServices has security options, but I am not sure how to maybe apply this with ASP Classic.
Thanks
|
|
|
|
|
Hello,
I am having problems trying to parse an XMl file. The file is setup so that the header contains all the general information about the data and the second half of the xml document is made up of totally binary data which is the data that was received. Does anyone know how you can separate the two sections of XML and also, how can I create it so that I can access the information part to refer back to it when I need to decipher the data?? The other problem is that the data in the 2nd half is not in XML schema at all.
Any help would be much appreciated.
Thanks
Nick
|
|
|
|
|
Are you saying that you have one xml document that contains two nodes - one with header information and the second node with binary data - i'm assuming base64 encoded.
If so you should be able to load the document up into the parser ok, and access the two nodes through the dom to be able to get the information seperate.
If the information is being sent as one stream made up of an xml document, and followed by binary data, your going to have to do some preprocessing on the file yourself to split this into two input stream.
|
|
|
|
|
Hello friends
In jabber specifications, have the follow xml tag:
<stream:stream to="denmark" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams">
Sorry, but I don't understand the 2 xmlns attributes. I know what xmlns is the namespace. But I didn't know what can have 2 namespaces in same tag??? Please, someone can explain me? How I can read this?
Thanks and regards for all
|
|
|
|
|
I might understand your question wrong but here is my answer.
Consider a this examle. You have web site which is multi-tiered. You keep and send information between tears in xml format.
If you want to send info to another server about item bought by a customer and related customer info, you could send two seperate xml docs. One for items sold and one for customer info.
Why dont you send one doc instead of two?
|
|
|
|
|
The structure of an xml document can be defined in multiple places - the basic xmlns attribute defines the default namespace, for any node that does not have a prefix on it.
The xmlns:stream="www.stream.co.uk" creates the namespace prefix of stream, and assigns a different namespace for it.
So, <FooNode> would belong to the default namespace, whereas <stream:FooNode> belongs to the stream namespace. Though these nodes have the same name, because they belong to different namespaces, means that they can mean different things <FooNode> could be a string, while <stream:FooNode> could be a number.
Hope this helps.
|
|
|
|
|
the age of mythology game comes with a provision to create custom AI. how do we go about it.
|
|
|
|
|
Never heard of it. But since you posted the question in a XML / XSL forum i suppose you do it by creating one or more XML documents or something right?
|
|
|
|
|
The AOM comes with the provision to write AI for creating custom games
U write XML docs and then edit some inf files, dont know the details, thanx for replying;. shall be trying to find out
|
|
|
|
|
How should I check which version of SOAP I m running on my server???
|
|
|
|
|
Hi,
I am using VC++ 6.0 to access a webservice. The returned XML data contains strings with french characters (éèà...). I use a CString to store these strings then add the strings to a list control. The problem is that those characters do not display correctly. For example the word 'Marché' displays as 'Marché'. IE displays the strings correctly.
I guess it is because the strings are encoded someway (unicode ?).
How can I convert those strings to display properly ?
|
|
|
|
|
I have to generate a report where i need to find the total of two items(like total of revenue and expenses).Now using these two sums i need to find total of these two. For this i need to store the sum of both the variables, but the variable needs to be checked before assigned value.. so i need to use xsl:when.. but because of xsl:when i m not able to get the value of the variable. How should i be able to get the value of the variable even when i use the xsl:when? Its in the same template.
|
|
|
|
|
Hi there,
You can assign the value of the variable with the when clause, e.g.
<xsl:variable name="ResultsType">
<xsl:choose>
<xsl:when test="/Search/UserData != ''">
<xsl:value-of select="/Search/UserData"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@Type"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
So rather than using select to assign the variable straight away, we can nest a when clause to determine the value we give to $ResultsType.
Hope this helps,
Andy
|
|
|
|
|
hi,
i'm new to xml and xslt, and i have to ask you for a question.
i have an xml file with the content of a web page and an xslt file associated to it.
From a .net application i create both these file starting from the data stored in a database.
In the page there are some link.
Now the question is:
is it possible to call a class method from the xslt file?
What i need is that when the user clicks on a link some method will be executed within my customer class. Different link calls different methods.
how can i do this?
thanks
|
|
|
|
|
can any body help as how to communicate between different layers of n-tier archietecture using xml. some study material regarding this is really appreciated, please help me out in this.
|
|
|
|
|
HI.
I want to write a schema for kind of an editor control.
It would be similar to html's "" tag. When you look at the there are usually two kind of element like ,.
And each element could be used freely, regardless of order and time. Simple.. but when I’m trying to write a schema..I don’t know how to write it.
The bottom line is how to use elements regardless of order and time.
|
|
|
|