Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[24] XML SOAP

Last post 05-19-2004 4:42 PM by kpma_l. 15 replies.
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [24] XML SOAP

    This thread is for discussions of XML SOAP.

    • Post Points: 0
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 09-16-2002 12:10 PM In reply to

    XML Soap

    Set objReq = Server.CreateObject("Microsoft.XMLDOM")
    creates the object but for some reason objReq.SelectSingleNode says "Object Required"

    changed above line to
    Set objReq = Server.CreateObject("MSXML2.DOMDocument")
    and everything  worked
    • Post Points: 0
  • 09-16-2002 12:56 PM In reply to

    Soap and XML

    Error in VB code. dblTax = objReturn.selectSingleNode(strQuery).Text
    Return nothing becuase strQuery Xpath expression is case sensitive an its case doen not match whats been generated by ASP page . Eg return XML is "<soap.......
    where as whats been checked in VB is <"SOAP............ A mismatch in Case

    • Post Points: 0
  • 10-25-2002 10:19 PM In reply to

    • jacko.tw
    • Not Ranked
    • Joined on 10-25-2002
    • New Member
    • Points 5

    may you help me?

    I am a beginner of SOAP & XML
    I copy and save Soap.asp  to Win2000 Server wwwroot ,
    then Copy Souce code of VB Client to run , but occure some error?

    dblTax = objReturn.selectSingleNode(strQuery).Text

    the strQuery is not correct format,what error?
    • Post Points: 0
  • 06-01-2003 10:39 PM In reply to

    • JasDoyle
    • Not Ranked
    • Joined on 06-01-2003
    • New Member
    • Points 10

    Problems with SOAP communication

    I was wondering if someone could help me with my problem.  I am using code very similar to the XML Soap in my application and it communicates succesfully when used as a windows application and as an ASP.NET project but when I try and use the same method from my Windows Service I get the exception message QueryInterface for interface 'XMLHTTPRequest' has failed when I try to execute myobject.Open ...  The type of exception is an invalid cast exception even though the object was declared as new XMLHttpRequest.

    Following suggestions from some web sites I put the line :
    Threading.Thread.CurrentThread.ApartmentState = Threading.ApartmentState.STA

    Apparently activex applications can't handle multi-threaded communication properly but this didn't stop my error from occurring.  The above line I placed in my On_start event and even tried in my New event with no success.  The time at which the XMLHttpRequest is fired off is after on_start in my timer_tick event.
    • Post Points: 0
  • 06-02-2003 3:32 AM In reply to

    Getting Probs In Sending SOAP Envelope From VB

    Hi,

    I Am New To SOAP Through VB. I am getting following error

    " Method 'Send' Of 'IXMLHTTPRequest' Failed".

    Error Number := -2146697211
    .

    I am sending you the code for consideration.

    Option Explicit
      Dim objHTP As New MSXML.XMLHTTPRequest
      Dim strEnvelope As String
      Dim strreturn As String
      Dim objReturn As New MSXML.DOMDocument
      Dim dblTax As Double
      Dim strQuery As String
    ''Declaration Ends Here
    Private Sub tax_cal()
    'Create SOAP Envelope
    strEnvelope = ""
    strEnvelope = "<soap : envelope xmlns:soap=""urn:schemas-xmlsoap-org:soap.v1"">" & _
    "<soap : header> </soap : header>" & _
    "<soap : Body>" & _
    "<m:getsalestax xmlns: m=""urn:myserver/soap:TaxCalculator"">" & _
    "<salestotal>" & Val(txt_Sale.Text) & "<salestotal>" & _
    "</m:getsalestax>" & _
    "</Soap: Body>" & _
    "</Soap: Envelope>"
    'Setup To Post To Our Local Server
    objHTP.open "post", "http://localhost/soap.asp", False
    'Set A Standard SOAP / XML Header For The Content-Type
    objHTP.setRequestHeader "Content-Type", "text/xml"
    'Set A Header For The Method To Be Called
    objHTP.setRequestHeader "SOAPMethodName", "urn:myserver/soap:Taxcalcultor#GetSalesTax"
    'Make The SOAP Call
    objHTP.send strEnvelope
    'Get The Return Envelope
    strreturn = objHTP.responseText
    'Load The Return Envelope Into A DOM
    objReturn.loadXML strreturn
    'Query The Return Envelope
    strQuery = "SOAP:Envelope/SOAP:Body/m:GetSalesTaxResponse/SalesTax"
    dblTax = objReturn.selectSingleNode(strQuery).Text
    txt_Tax.Text = dblTax
    End Sub
    • Post Points: 0
  • 06-03-2003 4:00 AM In reply to

    • JasDoyle
    • Not Ranked
    • Joined on 06-01-2003
    • New Member
    • Points 10

    Suggestions

    I noticed that your code appears to have been written in VB6, if this is so then a possible cause of your issues is the declarations as new.  Try changing your as new statements to be just as classname and then before you use it say set myobject = new ServerXMLHTTPClass or whatever class you are creating.  VB6 handled the as new statement in a way which was not always reliable and this has caused me issues before.
    • Post Points: 0
  • 06-06-2003 3:36 AM In reply to

    • idham
    • Not Ranked
    • Joined on 06-06-2003
    • New Member
    • Points 5

    HELP!

    Hi.
    can u tell me how to fix the "dblTax = objReturn.selectSingleNode(strQuery).Text" error..pliz e.mail me
    • Post Points: 0
  • 08-25-2003 5:22 AM In reply to

    • bernd
    • Top 50 Contributor
    • Joined on 06-12-2003
    • Guru
    • Points 2,245

    try msxml2

    Hi all

    to use this example with msxml 2.0 or higher
    change

    "msxml.xmlhttprequest"

    to:

    "msxml2.xmlhttp"
    or
    "msxml2.xmlhttp26"
    or
    "msxml2.xmlhttp30"
    ...
    hth
    bye
    • Post Points: 0
  • 10-17-2003 4:10 PM In reply to

    • redhawk
    • Not Ranked
    • Joined on 10-17-2003
    • New Member
    • Points 10

    does it really work?

    I copied all the code and followed all the instructions (including making sure the xml tags were all in the same case) and all I could get back from the soap request was ?????????????????????? etc etc with the odd † or - or = character thrown in.  2216 characters in all.  I'm using vb 6 and msxml4.
    Any suggestions?  Did anyone get this to work?
    • Post Points: 0
  • 11-20-2003 7:03 AM In reply to

    • vb-user
    • Not Ranked
    • Joined on 11-20-2003
    • New Member
    • Points 5

    what are the references to be added

    Can any one help me to identify the references and dlls required to run this code.
    I want to register the dlls required and then run this code in VB4.0.
    I know i need msxml.dll and the other one is it mssoap1.dll ?
    if thats the one where do i get it from?

    thanks in advance.
    • Post Points: 0
  • 11-20-2003 2:09 PM In reply to

    got the same ???????+???...

    if anyone knows the meaning of this, i could use the feedback.  my hunch is, that the SOAP server is not configured to handle the request properly.  but i dunno...  =)
    • Post Points: 0
  • 04-01-2004 5:13 PM In reply to

    • shirikok
    • Not Ranked
    • Joined on 04-01-2004
    • New Member
    • Points 15

    XML SOAP - ASP

    Great work by ComponentSource and  they have very well explained VB 6.0 client and access to web service. I have a question here. How to monitor from where (mostly his/her web site URL not his/her machine IP) requester is consuming the web service? Techies, 'HTTP_REFERER' shows null  please, suggest any other possibilities.

    Thanks
    • Post Points: 0
  • 04-01-2004 5:16 PM In reply to

    • shirikok
    • Not Ranked
    • Joined on 04-01-2004
    • New Member
    • Points 15

    WebServices

    In .NET web services; How to monitor from where (mostly his/her web site URL but not his/her machine IP) requester is consuming the web service? Techies, 'HTTP_REFERER' and 'URLReferrer'  shows null  please, suggest any other possibilities.
    • Post Points: 0
  • 05-19-2004 4:05 PM In reply to

    • kpma_l
    • Not Ranked
    • Joined on 05-19-2004
    • New Member
    • Points 10

    getting Runtime error 91 - object or with block va

    I tried to copy the the code and add references to VB project and run the VB app. but get runtime error at the DOMDocument object accesing a single node.

    Run time error 91.

    MSXML2 and MTS Admin are the references I have added.


    HELP!

    Thanks ....
    • Post Points: 0
Page 1 of 2 (16 items) 1 2 Next >