in reply to pass user name & password

Your java code boils down to POSTing an XML document to a URL that requires authentication. As written the XML document appears to come from STDIN. You can duplicate this functionality with lwp-request, which comes with the LWP package (sometimes under the name of POST). You could use this like:

lwp-request -m POST -C username:password

Alternately, you could post your perl code, so that we could help you with it ...


The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon