Thanks everybody.
So I can stop searching in Witango field.

I'm on IIS as Web Server so I guess I'll use an ASP page to write down on file or db the info I need to be read by Witango.

Thanks again for your time.
Francesca

----- Messaggio originale -----
Da: "Robert Garcia" <[email protected]>
A: [email protected]
Inviato: Lunedì, 23 novembre 2009 22:55:03
Oggetto: Re: Witango-Talk: Help Witango Josso (accessing HTTPRequest)

I apologize, didn't mean to tease you. I did have this issue, many moons ago, and I did work around it, but I don't think in a way that works for you. In my solution, I had control over the client app and the server in this issue. So when I needed to send a special header attribute I wasn't able to access it in witango. So I instead appended my custom attribute to the content-type header attribute like so:

Content-type: Multipart/binary; MyCustomAttribute=value1:value2:value3;

I then parsed it out like this:

<@assign local$rawdata "<@httpattribute post_args>">
<@assign local$datamap <@transpose <@tokenize str="<@httpattribute CONTENT_TYPE>" chars=";=:">>>

Because the CONTENT_TYPE attribute was reliably available.

Sorry if that doesn't help, but I think it definitely confirms that this was a BIG problem for me. And if there was ANY way to access a custom attribute, I would have found it. I worked on this webservice, which requires parsing request data for months. It ran reliably for 2 years and then was ported to PHP. In PHP this workaround was unnecessary.

-- 

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040

On Nov 23, 2009, at 1:25 PM, Robert Garcia wrote:

There is a way to get at it, and parse it, but I did it a few years ago. It ran well under heavy traffic. I will see if I can find it.

-- 

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040

On Nov 23, 2009, at 6:38 AM, Robert Shubert wrote:

As far as I know, the FULL_HEADER attribute was never correctly implemented, and does not work. This is only on Windows/IIS with all versions of 5.5. I’m not sure about other platforms and/or web server applications. I haven’t fully experimented.

 

You may have to receive the incoming user with a PHP script, write the josso header element into a text file or database field, key it, and then forward the user into your Witango application along with the key.

 

Robert

 


From: Francesca Arecco - Genova [mailto:[email protected]]
Sent: Monday, November 23, 2009 5:43 AM
To: [email protected]
Subject: Re: Witango-Talk: Help Witango Josso (accessing HTTPRequest)

 

Hi Scott,
thanks for your answer.

I'm using Witango Application Server 5.5.009 Liquorice (Win32) [Professional Edition] and I'm developing with Witango Studio 5.5b2 on Windows OS.
I tried the @HTTPATTRIBUTE tag with
NAME="FULL_HEADER" but that doesn't return anything. @HTTPATTRIBUTE tag with known and documented names (i.e. CLIENT_ADDRESS, USER_AGENT as an example) it works.

I found an old post in the list: http://developer.witango.com/forum/searchforum.taf?_function=detail&id=126704&vnav=developer
John McGowan says he has the same problem with @HTTPATTRIBUTE tag.


Thanks in advance for your help
Francesca



----- Messaggio originale -----
Da: "Scott Cadillac" <[email protected]>
A: [email protected]
Inviato: Giovedì, 19 novembre 2009 14:14:38
Oggetto: RE: Witango-Talk: Help Witango Josso (accessing HTTPRequest)

Hi Francesca,

 

You may have some challanges ahead of you, depending on what version of Witango you have.

 

The Request.ServerVariables() object in ASP/.NET has to do with retreiving HTTP header properties of the user's request to the webserver. In your case, your code is looking for a custom HTTP header property.

 

Unfortunately some versions of Witango have very limited access to the HTTP request header.

 

If you have Witango 5.5 or later, then I think @HTTPATTRIBUTE is what you'll want. But you may not be able to access HTTP_JOSSO_USER directly, so use the NAME="FULL_HEADER" attribute on your metatag (which returns the whole header) and then parse/search for the info you need.

 

I hope that helps.

Scott,

 

 



On Thursday, November 19, 2009 6:15am, "Francesca Arecco - Genova" <[email protected]> said:

Hi,
I'm trying to use Josso with Witango but I don't know how to get HttpRequest in Witango.

Josso is a Single Sign On Authentication Server. It's able to give back user information inside the HttpRequest.

The way to get user info from HttpRequest with a JSP is:
<%=request.getRemoteUser()%>

An example with ASP is:

<html>
<body>
    <table width="100%" cellpadding="0" cellspacing="0" border="0" >
        <tr>

         <td>
            <b>Hello, <%=Request.ServerVariables("HTTP_JOSSO_USER") %>!</b>
         </td>
         </tr>
    </table>
</body>

</html>

How can I achieve the same task with Witango?

Thanks in advance for your response

Francesca
--


Francesca Arecco
<image001.gif>
Engineering Tributi SpA
Direzione Prodotti e Servizi
Area Sviluppo Software

Via Renata Bianchi 137 - 16152 Genova
tel: +39 (010) 648671 - fax: +39 (010) 6143119
e-mail: [email protected]
_____________________________________
Gruppo Engineering - www.eng.it
System Integrator, Outsourcing e Consulenza

 

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf



[image/gif:...]


--

Francesca Arecco
<image001.gif>
Engineering Tributi SpA
Direzione Prodotti e Servizi
Area Sviluppo Software

Via Renata Bianchi 137 - 16152 Genova
tel: +39 (010) 648671 - fax: +39 (010) 6143119
e-mail: [email protected]
_____________________________________
Gruppo Engineering - www.eng.it
System Integrator, Outsourcing e Consulenza

 

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


--
Francesca Arecco

Engineering Tributi SpA
Direzione Prodotti e Servizi
Area Sviluppo Software

Via Renata Bianchi 137 - 16152 Genova
tel: +39 (010) 648671 - fax: +39 (010) 6143119
e-mail: [email protected]
_____________________________________
Gruppo Engineering - www.eng.it
System Integrator, Outsourcing e Consulenza

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to