Recieving a XML Document in ASP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adi2903
    New Member
    • Jan 2008
    • 1

    Recieving a XML Document in ASP

    Hi

    I have a ASP Application interacting with a C#.Net Web Service.

    The ASP Application recieves the XML from Web Service and uses XSLT to transform and display the output.

    The ASP uses SOAP 30 to connect to the Web Service. That is working fine.

    The Problem is, the Web Service returns ordinary string properly , but doesnt return a XML String. Only the values are returned and not the tags.

    The question is how to return the XML String that is something like this,
    [code=xml]
    <World>
    <America>9765 4</America>
    <Europe>34567 </Europe>
    </World>
    [/code]
    I want the complete XML in ASP. If I return the above as String from Web Services, I am recieving the numbers (97654,34567) in ASP.

    Here is the ASP Code. Please help me to recieve the complete XML.
    Code:
    SET objSoapClient = Server.CreateObject("MSSOAP.SoapClient30") 
    //Instantiate the SOAP Client
    
    objSoapClient.ClientProperty("ServerHTTPRequest")=true
    
    Call objSoapClient.mssoapinit("http://19.28.165.92/PurgeApplication/PurgeDemographics.asmx?WSDL")
    
    //Connect to the Web Service
    
    Response.Write "<h4>" & objSoapClient.HelloWorld()
    
    //Call the Hello World Method that should return the Complete XML.
    But it is not coming in ASP, only the numbers(97654,3 4567) are coming.

    Regards
    Adi
    Last edited by jhardman; Jan 10 '08, 06:57 PM. Reason: put code in code tags. Please notice button marked - #
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Adi,

    Is this "classic" ASP or ASP.NET?

    Jared

    Comment

    Working...