Re: [U2] XML arrays

2012-03-01 Thread Symeon Breen
Is the actual http stream truncated, or is it just part of the payload that
is truncated.  If the first then there is some network/protocol error, if
the latter it could be an error in application you are connecting to, or a
misunderstanding as to what data you are trying to get.

Are you able to contact the https service from say curl or wget etc.  If you
turn on protocol logging you can acces the actual headers being sent so you
can try the precise http conversation outside of u2. In my experience many
issues using the build in u2 http(s) functions are due to a request http
header missing or being set incorrectly.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dan Goble
Sent: 29 February 2012 21:30
To: U2 Users List
Subject: [U2] XML arrays

I have a programmer who is performing an https call and retrieving data back
from the webserver, but some of the data is coming back truncated.   The web
developer said that there is an array inside the xml that is being
truncated.   Has anyone seen this type of issue?We are running Unidata
7.2.12 on AIX.

Thanks,
Dan

Dan Goble | IT Senior Software Engineer

Interline Brands, Inc.
804 East Gate Drive Suite 100, Mount Laurel, NJ 08054
Office: 856.533.3110 | Mobile: 609.792.6855
E-mail: dan.go...@interlinebrands.com | Website: www.interlinebrands.com


This e-mail and any files transmitted with it are confidential and intended
solely for the individual or entity to whom they are addressed.  Please
notify the sender immediately by e-mail if you have received this e-mail in
error and delete all copies of this message.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1424 / Virus Database: 2113/4842 - Release Date: 02/29/12

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] XML arrays

2012-03-01 Thread Carl Dula
We do this in uv, but it is most likely the same in unidata.

When receiving the XML you get a chunk (buffer) full at a time. You must save 
(write) this buffer to a file or other array, and then go back and get more 
until it is done. Basically, receive, write, repeat (loop). You might ask how 
do 
you know when it is done? Well, we test for content in the received buffer. For 
example, we test (FINDSTR) for the string /cXML, which typically ends an xml 
file. When we see this we know the sender is done. Also, don't forget that the 
sender will wait for an (XML) acknowledgement that you got it all, that you 
must 
send back

--
Carl Dula   Voice: 973-227-8440 X111
Pulsar Systems, Inc.Fax: 973-227-8440
271 US Highway 46, STE H209 email:c...@pulsarsystems.com
Fairfield, NJ 07004-2474http://www.pulsarsystems.com 


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] XML arrays

2012-03-01 Thread Symeon Breen
The https api should do all that for you - unless you are using the raw
socket api.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Carl Dula
Sent: 01 March 2012 11:10
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] XML arrays

We do this in uv, but it is most likely the same in unidata.

When receiving the XML you get a chunk (buffer) full at a time. You must
save
(write) this buffer to a file or other array, and then go back and get more
until it is done. Basically, receive, write, repeat (loop). You might ask
how do you know when it is done? Well, we test for content in the received
buffer. For example, we test (FINDSTR) for the string /cXML, which
typically ends an xml file. When we see this we know the sender is done.
Also, don't forget that the sender will wait for an (XML) acknowledgement
that you got it all, that you must send back

--
Carl Dula   Voice: 973-227-8440 X111
Pulsar Systems, Inc.Fax: 973-227-8440
271 US Highway 46, STE H209 email:c...@pulsarsystems.com
Fairfield, NJ 07004-2474http://www.pulsarsystems.com 


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1424 / Virus Database: 2113/4843 - Release Date: 02/29/12

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] XML arrays

2012-03-01 Thread Dan Goble
This is a case where the programmer is getting the start and end tags, but data 
is missing in the middle.The vendor is saying that the data is an array in 
xml that is missing.


Dan Goble | IT Senior Software Engineer

Interline Brands, Inc.
804 East Gate Drive Suite 100, Mount Laurel, NJ 08054
Office: 856.533.3110 | Mobile: 609.792.6855
E-mail: dan.go...@interlinebrands.com | Website: www.interlinebrands.com


This e-mail and any files transmitted with it are confidential and intended 
solely for the individual or entity to whom they are addressed.  Please notify 
the sender immediately by e-mail if you have received this e-mail in error and 
delete all copies of this message.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Symeon Breen
Sent: Thursday, March 01, 2012 3:19 AM
To: 'U2 Users List'
Subject: Re: [U2] XML arrays

Is the actual http stream truncated, or is it just part of the payload that is 
truncated.  If the first then there is some network/protocol error, if the 
latter it could be an error in application you are connecting to, or a 
misunderstanding as to what data you are trying to get.

Are you able to contact the https service from say curl or wget etc.  If you 
turn on protocol logging you can acces the actual headers being sent so you can 
try the precise http conversation outside of u2. In my experience many issues 
using the build in u2 http(s) functions are due to a request http header 
missing or being set incorrectly.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dan Goble
Sent: 29 February 2012 21:30
To: U2 Users List
Subject: [U2] XML arrays

I have a programmer who is performing an https call and retrieving data back
from the webserver, but some of the data is coming back truncated.   The web
developer said that there is an array inside the xml that is being
truncated.   Has anyone seen this type of issue?We are running Unidata
7.2.12 on AIX.

Thanks,
Dan

Dan Goble | IT Senior Software Engineer

Interline Brands, Inc.
804 East Gate Drive Suite 100, Mount Laurel, NJ 08054
Office: 856.533.3110 | Mobile: 609.792.6855
E-mail: dan.go...@interlinebrands.com | Website: www.interlinebrands.com


This e-mail and any files transmitted with it are confidential and intended 
solely for the individual or entity to whom they are addressed.  Please notify 
the sender immediately by e-mail if you have received this e-mail in error and 
delete all copies of this message.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1424 / Virus Database: 2113/4842 - Release Date: 02/29/12

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] XML arrays

2012-03-01 Thread Symeon Breen
If the http message is complete, and the xml has the start and end tag but
not the middle then I would say that the web service you are connecting to
is in error.  Unless the programmer has not been able to get the code to
strip out the content of the message correctly.  Is the data  CDATA section,
or could it be not properly xml encoded or something.  Again protocol
logging will give a better insight into this,



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dan Goble
Sent: 01 March 2012 14:02
To: U2 Users List
Subject: Re: [U2] XML arrays

This is a case where the programmer is getting the start and end tags, but
data is missing in the middle.The vendor is saying that the data is an
array in xml that is missing.


Dan Goble | IT Senior Software Engineer

Interline Brands, Inc.
804 East Gate Drive Suite 100, Mount Laurel, NJ 08054
Office: 856.533.3110 | Mobile: 609.792.6855
E-mail: dan.go...@interlinebrands.com | Website: www.interlinebrands.com


This e-mail and any files transmitted with it are confidential and intended
solely for the individual or entity to whom they are addressed.  Please
notify the sender immediately by e-mail if you have received this e-mail in
error and delete all copies of this message.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Symeon Breen
Sent: Thursday, March 01, 2012 3:19 AM
To: 'U2 Users List'
Subject: Re: [U2] XML arrays

Is the actual http stream truncated, or is it just part of the payload that
is truncated.  If the first then there is some network/protocol error, if
the latter it could be an error in application you are connecting to, or a
misunderstanding as to what data you are trying to get.

Are you able to contact the https service from say curl or wget etc.  If you
turn on protocol logging you can acces the actual headers being sent so you
can try the precise http conversation outside of u2. In my experience many
issues using the build in u2 http(s) functions are due to a request http
header missing or being set incorrectly.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dan Goble
Sent: 29 February 2012 21:30
To: U2 Users List
Subject: [U2] XML arrays

I have a programmer who is performing an https call and retrieving data back
from the webserver, but some of the data is coming back truncated.   The web
developer said that there is an array inside the xml that is being
truncated.   Has anyone seen this type of issue?We are running Unidata
7.2.12 on AIX.

Thanks,
Dan

Dan Goble | IT Senior Software Engineer

Interline Brands, Inc.
804 East Gate Drive Suite 100, Mount Laurel, NJ 08054
Office: 856.533.3110 | Mobile: 609.792.6855
E-mail: dan.go...@interlinebrands.com | Website: www.interlinebrands.com


This e-mail and any files transmitted with it are confidential and intended
solely for the individual or entity to whom they are addressed.  Please
notify the sender immediately by e-mail if you have received this e-mail in
error and delete all copies of this message.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1424 / Virus Database: 2113/4842 - Release Date: 02/29/12

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1424 / Virus Database: 2113/4843 - Release Date: 02/29/12

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] XML arrays

2012-02-29 Thread Dan Goble
I have a programmer who is performing an https call and retrieving data back 
from the webserver, but some of the data is coming back truncated.   The web 
developer said that there is an array inside the xml that is being truncated.   
Has anyone seen this type of issue?We are running Unidata 7.2.12 on AIX.

Thanks,
Dan

Dan Goble | IT Senior Software Engineer

Interline Brands, Inc.
804 East Gate Drive Suite 100, Mount Laurel, NJ 08054
Office: 856.533.3110 | Mobile: 609.792.6855
E-mail: dan.go...@interlinebrands.com | Website: www.interlinebrands.com


This e-mail and any files transmitted with it are confidential and intended 
solely for the individual or entity to whom they are addressed.  Please notify 
the sender immediately by e-mail if you have received this e-mail in error and 
delete all copies of this message.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] XML arrays

2012-02-29 Thread Robert Houben
Make sure that the programmer understands, if he is using an event-driven 
parser, that you may get the text in an element in multiple calls to the 
receivedText (or equivalent) event handler.  You get to accumulate it. Don't 
assume it will come back in just one chunk.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dan Goble
Sent: February-29-12 1:30 PM
To: U2 Users List
Subject: [U2] XML arrays

I have a programmer who is performing an https call and retrieving data back 
from the webserver, but some of the data is coming back truncated.   The web 
developer said that there is an array inside the xml that is being truncated.   
Has anyone seen this type of issue?We are running Unidata 7.2.12 on AIX.

Thanks,
Dan

Dan Goble | IT Senior Software Engineer

Interline Brands, Inc.
804 East Gate Drive Suite 100, Mount Laurel, NJ 08054
Office: 856.533.3110 | Mobile: 609.792.6855
E-mail: dan.go...@interlinebrands.com | Website: www.interlinebrands.com


This e-mail and any files transmitted with it are confidential and intended 
solely for the individual or entity to whom they are addressed.  Please notify 
the sender immediately by e-mail if you have received this e-mail in error and 
delete all copies of this message.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users