how do you stop the conversion of the : between the i.p and portno when using callHTTP ?

how do you stop the conversion of the : between the i.p and portno when using callHTTP ?

Post by Ric » Sun, 08 Dec 2002 13:06:33



I posted a while ago but noone had any answers. Since then I have
narrowed down my issue to the following:

I'm running uniVerse 9.6.1.14 on dg/ux unix 4.20 mu07
I need to use callHTTP to take data and post it to a BEA Weblogic
server, that listens on port 7001 - default is the login for
peoplesoft, if you goto ip:7001/servlets/gateway you are now talking
with the application messenger that takes in an xml document that you
post to it, processes it and updates the oracle database (we are using
peoplesoft on top of oracle)

My problem is, if I use call http and issue the following:

REQUEST.STATUS = createRequest(URL,"POST",WEB.HANDLE) where URL =
http://i.p:portno/servlets/gateway - This works fine abd returns a
code of 0

I get an error 3 when the actual SUBMIT.STATUS =
submitRequest(WEB.HANDLE,15000,WEB_VAR,RESP.HEADERS,RESP.DATA,HTTP.STATUS)
occurs - this according to the documentation is a network
error.

What happens is, somthing is telling the api to encode the colon
between the i.p and the portno and it turns it into a hex %3A which is
the hex value for the colon.

Because of this, the program wont connect to the other side, via
apache 1.34 and post the xml document.

Anyone have any clues.
Do I need to change the default headers? If so, to what, I'm at a
loss.

Does someone know of a way of faking this? I tried posting back to the
same machine that this database runs on and told it to goto a
directory and an index.html that doesnt exist, which in turn fires of
.httaccess which does a redirect to the i.p:portno/servlets/gateway
but this didnt work either.

When monitoring the above fake post, it comes back with an OK status
code from apache but my monitoring software shows the first ping go
out, then no data getting redirected, then the ending ping.

I guess, is it even possible to post xml to another machine from
universe? Im not sure the addRequestParameter we have is correct
either. Because its XML, we really dont have the standard var<J,1>
var<J,2> etc setup, just a for next loop stuffing each line of the xml
document into var<J> Example code:

MAXV = COUNT(WEB_VAR,CHAR(253))
FOR J = 1 TO MAXV
   PARAM.STATUS = addRequestParameter(WEB.HANDLE,"",WEB_VAR<J>,"")
NEXT J <I've tried this with WEB_VAR<J> in the first position opposed
to the two "" also>

Im really stumped and have passed a deadline by 2 weeks now. any
helped would be extremely appreciated. Suggestions for work arounds
most welcome also.

Best Regards
Rich

 
 
 

1. How do you stop the url:portno from encoding the : when using callHTTP??

I posted a while ago but noone had any answers. Since then I have
narrowed down my issue to the following:

I'm running uniVerse 9.6.1.14 on dg/ux unix 4.20 mu07
I need to use callHTTP to take data and post it to a BEA Weblogic
server, that listens on port 7001 - default is the login for
peoplesoft, if you goto ip:7001/servlets/gateway you are now talking
with the application messenger that takes in an xml document that you
post to it, processes it and updates the oracle database (we are using
peoplesoft on top of oracle)

My problem is, if I use call http and issue the following:

REQUEST.STATUS = createRequest(URL,"POST",WEB.HANDLE) where URL =
http://i.p:portno/servlets/gateway

I get an error 3 - this according to the documentation is a network
error.

What happens is, somthing is telling the api to encode the colon
between the i.p and the portno and it turns it into a hex %3A which is
the hex value for the colon.

Because of this, the program wont connect to the other side, via
apache 1.34 and post the xml document.

Anyone have any clues.
Do I need to change the default headers? If so, to what, I'm at a
loss.

Does someone know of a way of faking this? I tried posting back to the
same machine that this database runs on and told it to goto a
directory and an index.html that doesnt exist, which in turn fires of
.httaccess which does a redirect to the i.p:portno/servlets/gateway
but this didnt work either.

When monitoring the above fake post, it comes back with an OK status
code from apache but my monitoring software shows the first ping go
out, then no data getting redirected, then the ending ping.

Im really stumped and have passed a deadline by 2 weeks now. any
helped would be extremely appreciated. Suggestions for work arounds
most welcome also.

Best Regards
Rich

2. Printing Info Structure PDX7

3. Starting and stopping sql and doing stuff inbetween ;)

4. Please help-- Error ORA-01631

5. Foreign character conversion when doing an import

6. Bulk insert into an Access database

7. doing data conversions

8. Company and product information request

9. Pick64 to Mentor conversion.....NE1 done it?

10. How can I stop character conversions

11. Universe callHTTP

12. Universe - CallHTTP and Socket API

13. ADO thinks DBMS is done, but DBMS ain't done