Leave feedback
  • Question

    HTTP SUBMIT

Enter a new topic
  • Hadjira ALOUANE Hadjira ALOUANE
    0 likes 152 views

    Hello,

    i want to make a connection between HTTP Submit output connector and Http input connector in streamserve.

    the idea is: to generate an XML File via XML output and send it to Http input via an HTTP Submit so th XML file will be used to create a PDF. 

    the problem is: i use an IP adress and a port that are used in stramserve in both HTTP Submit and HTTP input but i have no response !!! i tried a script Java that sends an XML to the HTTP input and it worked but i can't do it with the HTTP Submit!! 

    any ideas ????? 

    2 weeks ago
  • Peter Martens Peter Martens StreamServe Employee
    0 likes

    Hi, 

    On the HTTP Submit you have to enter a "response" connector in the runtime settings to recieve a response in case you want to handle this response. 

    In the HTTPInput connector it's important to also set the options in the HTTPAccess tab. 

    2 weeks ago
  • Hadjira ALOUANE Hadjira ALOUANE
    0 likes

    Hello,

    first of all i thank you for your answer :) 

    so, in the HTTPInput settings, i completed the properties (Version, Address, Port,Input threads, Idle time-out, Response time-out, Authentification=none and tje Job resource URI) , i did the same in the HTTPSubmit (same ADDRESSE AND PORT ... ) 

    when you say: i have to enter a "response" connector in the runtime settings, do you meen that i should connect the HTTPSubmit to an HTTPResponse?? 

    because the idea is: to connect the HTTPSubmit to the HTTPInput with the same settings. 

     

    2 weeks ago
  • Peter Martens Peter Martens StreamServe Employee
    0 likes

    Hi, 

    In most cases you can leave the address property in the HTTPin empty, the address is set in the HTTPAccess tab. 

    Regards, 
    Peter

     

    2 weeks ago
  • Hadjira ALOUANE Hadjira ALOUANE
    0 likes

    well peter, i left the adress in HTTPIN empty and in the HTTPAccess Tab there is just (HTTP Connector and the URI that i've put the same as HTTPSubmit) 

    here's the result i've got when i deployed it in control center:

    0104 133900 (3175) 0 HTTPIN: Started. 0104 133900 (0335) 3 Communication Server started 0104 133922 (3176) 0 HTTPIN: New connection from: 10.81.139.80 (active 1). 0104 133922 (3093) 2 HTTPIN: Incoming POST request for /socotec with contents text/html; charset="ascii". 0104 133922 (4290) 0 StrsID completed successfully (StrsID):1185 0104 133922 (3101) 2 HTTPIN: Created job /Input_receive/1185. 0104 134000 (1719) 2 JobBegin:httpscanner=HTTPIN 0104 134000 (5403) 0 XMLIN: Using document collection mode 0104 134000 (5026) 3 Sender of job set to: 0104 134000 (1723) 2 JobEnd:httpscanner=HTTPIN 0104 133900 (3175) 0 HTTPIN: Started.0104 133900 (0335) 3 Communication Server started0104 133922 (3176) 0 HTTPIN: New connection from: 10.81.139.80 (active 1).0104 133922 (3093) 2 HTTPIN: Incoming POST request for /socotec with contents text/html; charset="ascii".0104 133922 (4290) 0 StrsID completed successfully (StrsID):11850104 133922 (3101) 2 HTTPIN: Created job /Input_receive/1185.0104 134000 (1719) 2 JobBegin:httpscanner=HTTPIN0104 134000 (5403) 0 XMLIN: Using document collection mode0104 134000 (5026) 3 Sender of job set to:0104 134000 (1723) 2 JobEnd:httpscanner=HTTPIN

    in the end: i didn't get my PDF :( 

    2 weeks ago
  • Peter Martens Peter Martens StreamServe Employee
    0 likes

    Ok, so it seems your HTTPin is working, since I do see an XMLin started. 
    The event is also recognized, so the problem is in activating your process. 

    Do you use callproc(), or do you have the process on "trigger automatic"?

    2 weeks ago
  • Hadjira ALOUANE Hadjira ALOUANE
    0 likes

    i use  select automatically in Runtime Process Settings for  all INPUTS AND OUTPUTS CONNECTORS and i used callproc for the PDF  

    2 weeks ago
  • Peter Martens Peter Martens StreamServe Employee
    0 likes

    Hi Hadjira, 
    I do see: 0104 134000 (5403) 0 XMLIN: Using document collection mode0, so it seems it recognises the XML (althoug this message is merely a warning that document collectionmode is used, which is a bit slower that node). Maybe you can connect your HTTPin connector to a pageIn event instead for the moment,with a pattern set to "?", this will recognise all input, if you connect this to a redirectOut and an outconnector without a device, you can see what data is coming in, and if this corresponds to what you expect. 

    2 weeks ago
  • Hadjira ALOUANE Hadjira ALOUANE
    0 likes

    Peter,

    i will try your idea and let you know if there is a progress 

    thank you for your help 

    Hadjira, 

    2 weeks ago
  • Hadjira ALOUANE Hadjira ALOUANE
    0 likes

    Hello Peter,

    Thank you so much for your help, i just tried the PageIN and i have exactly what i should have in my HTTPIN so this is not a problem.

    i still don't have my PDF in the output :( and i don't really understand why :/ 

    One week ago
  • Peter Martens Peter Martens StreamServe Employee
    0 likes

    Hi Hadjira, 

    So, the input connector works, the next step we should then check is if your event works. 

    For this you have to connect your XMLin event again, and the first thing to check is your pattern.  You can use the file you created with the PageIn-RedirectOut as a sample. If your event is correct. you should see something like "doing message" in your log file. 

     

    One week ago