IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Inclusion of big messages in Tamino

  • 1.  Inclusion of big messages in Tamino

    Posted Fri November 22, 2002 05:20 PM

    I accomplish an inclusion through a form HTML sending for a program in ASP to accomplish _PROCESS
    in Tamino, if the sent text goes very big, I receive the following message.

    Technical information (for the support team)

    Mistake type:
    (0x800C0005)
    / curriculo/alteraCurriculo.asp, line 18


    Navigator type:
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

    Page:
    POST 7090 bytes to / curriculo/alteraCurriculo.asp

    POST Dates:
    id=4&email=diostenes@ig.com.br&nome=+Diostenes+dos+Santos&area=Inform%E1tica&
    localDisponibilidade=Rio+de+Janeiro%2C+Estado&objetivoCargoDesejado=Gerente+de+Projetos&resumoProfissional=Desenvolvimento+. . .

    Hour:
    Thursday, November 21, 2002, 14:00:37
    Obs.: the line 18 is in bold:
    set xmlHttp = CreateObject (“Microsoft.XMLHTTP”)
    xmlHttp.open “PUT”, "http://tamino/tamino/curriculo/info?_process = " + to alter, false
    xmlHTTP.setRequestHeader “ContentType”, “text/xml”
    xmlHttp.send(alterar)

    The method=POST of the html doesn’t have size limitation, when I execute a response.write in the program alteraCurrioculo.asp of
    the variable to alter all of the fields they are filled out correctly, with the altered content and with a great volume of data.

    I think it is the property of the DOM that no it accepts.
    What to do?

    At once I thank.
    Adriano


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: Inclusion of big messages in Tamino

    Posted Tue November 26, 2002 12:57 PM

    I’m not sure whether you want to do a PUT or a POST - I assume a POST from what you say. Your code appears to do a PUT. Here’s a small example of an asp page that does a POST that may help. I would stress that I agree completely with Stuart Fyffe-Collins previous suggestion here that you should always use a documented API for such requests to Tamino. But if you really want to do a http post of your own, this code might help…

    <%@ language="vbscript" %>
    <%
    
    xml="<?xml version='1.0' encoding='iso-8859-1' ?><Property Category='Buy' PropertyType='32-Room-
    Apartment'><Address><State>NY</State><Zip>12108</Zip><City>Lake Pleasant</City>"
    xml = xml & "<Street /></Address><Description><Text>Family Room; Fireplace; Lot Features: Swimming Pool</Text><Area>460</Area>"
    xml = xml & "<NumberOfBedRooms>2</NumberOfBedRooms><NumberOfBathRooms>1</NumberOfBathRooms></Description>
    <ContactPerson><Name>Glenn Carter</Name>"
    xml = xml & "<Phone>1-361-842-3875</Phone><Email>Glenn.Carter@automailer.com
    </Email></ContactPerson><ContactPerson><Name>Tommy Lee Jones</Name>"
    xml = xml & "<Phone>1-800-642-3333</Phone><Email>Tommy-Lee-Jones@email.com
    </Email></ContactPerson><Price>130000</Price></Property>"
    dim myDocument
    Set MyDocument = Server.CreateObject("MSXML2.DOMDocument")
    myDocument.async = false
    myDocument.loadXML(xml)
    
    If myDocument.parseError.errorCode <> 0 Then 
    Response.Write( "XML Parse Error code: " &
    myDocument.parseError.errorCode & ", reason: " &
    myDocument.parseError.reason & " on line: " &
    myDocument.parseError.line & "</br>")
    Else
    Response.Write ("<HTML>XML Parsed successfully</br>")
    End If
    
    set xmlHttp = CreateObject ("Microsoft.XMLHTTP") 
    xmlHttp.open "POST", "http://localhost/tamino/database/collection", false
    xmlHttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded;" 
    xmlHttp.send( "_process=" & xml)
    
    Response.Write (xmlHttp.responseXML.xml)
    Response.write ("Done")
    
    %>  



    HTH

    [This message was edited by Bill Leeney on 26 Nov 2002 at 12:41.]


    #API-Management
    #webMethods
    #Tamino


  • 3.  RE: Inclusion of big messages in Tamino

    Posted Tue November 26, 2002 05:48 PM

    Hi Bill,
    Thank you, the problem was solved with his/her help.
    Hug
    Adriano Braga


    #webMethods
    #API-Management
    #Tamino