|
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.
|
|
|
|
|
Hmm,
Would this work? Don't have time to test it
<xsd:element name="form">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="input" type="xsd:string"/>
<xsd:element name="select" type="xsd:string"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
Cohen
|
|
|
|
|
Thanks Cohen. This is it!
works fine..
|
|
|
|
|
Hi,
I am using typed dataset in my application. Using this typed dataset I need to generate an xml file. I need an element similar to the following
<userID permissions="SCFP" >505050505 </userID>
I tried however I could not achieve above. I could achieve the following
<userID permissions="SCFP" usercode="505050505" />
I used following schema to get the above result.
<xs:element name="userID">
<xs:complexType>
<xs:sequence>
<xs:element name="usercode" type="xs:string" />
</xs:sequence>
<xs:attribute name="permissions" type="xs:string" />
</xs:complexType>
</xs:element>
Please give me a schema which alllow me to generate following XML fragment
<userID permissions="SCFP" >505050505 </userID>
Thanks for your time!!
Sreenath
|
|
|
|
|
Hi..
You could use "mixed="true" attrubute, if your element needs to get a text value beetween tags .
<xs:element name="usercode" type="xs:string" mixed="true" />
|
|
|
|
|
Greetings,
I am trying to only sum up the values from a xml record using a xsl file.
I am currently using msxml 4.0 within a windows xp environment.
Here is my xml data format example:
----------------------------
<?xml version="1.0" encoding="UTF-16"?>
<XML>
<DATA>
<Name>TestName</Name>
<Value>10</Value>
</DATA>
<DATA>
<Name>TestName2</Name>
<Value>15</Value>
</DATA>
<DATA>
<Name>TestName</Name>
<Value>100</Value>
</DATA>
</XML>
What I am trying to do is add all the record's "Value" node where name is equal to "TestName". So I would only add the Value Nodes of "10" and "100" = "110"
(Desired Output
TestName: 110
Thanks in advance for any suggestions!
|
|
|
|
|
I figured it out right after I made the post.
I used "msxsl:node-set" to put my sum data into a variable, and then referenced it from later. For futher information consult the article
"Calculating a Sum of Sums (Final Version)" found in msxml 4.0 help from the sdk.
|
|
|
|
|
Hi
I want to give page breaks using xslt. Also, I want to use next and previous facility using xslt ? Can anyone help me out .
Thanks in advance,
Regards,
Bhagwati Prasad
|
|
|
|