 p a r a m ( [ S t r i n g ] $ d b x l U r l ,   [ S t r i n g ] $ d o c I d )   
 
 
 
 f u n c t i o n   g e t - D b x l D o c u m e n t ( $ b a s e U r l ) 
 
 { 
 
         $ p a t h   =   $ b a s e U r l   +   " / Q d a b r a W e b S e r v i c e / D b x l D o c u m e n t S e r v i c e . a s m x ? W S D L " 
 
         $ o b j   =   N e w - W e b S e r v i c e P r o x y   - u r i   $ p a t h   - U s e D e f a u l t C r e d e n t i a l   - N a m e s p a c e   d b x l 
 
         r e t u r n   $ o b j 
 
 } 
 
 
 
 f u n c t i o n   g e t - D b x l A d m i n ( $ b a s e U r l ) 
 
 { 
 
         $ p a t h   =   $ b a s e U r l   +   " / Q d a b r a W e b S e r v i c e / D b x l A d m i n . a s m x ? W S D L " 
 
         $ o b j   =   N e w - W e b S e r v i c e P r o x y   - u r i   $ p a t h   - U s e D e f a u l t C r e d e n t i a l   - N a m e s p a c e   d b x l 
 
         r e t u r n   $ o b j 
 
 } 
 
 
 
 i f   ( $ d b x l U r l   - e q   ' ' )   
 
 { 
 
 	 " D B X L   u r l   n o t   s p e c i f i e d " ; 
 
 	 r e t u r n ; 
 
 } 
 
 
 
 i f   ( $ d o c I d   - n e   " " ) 
 
 { 
 
 	 $ a d m i n S v c   =   g e t - D b x l A d m i n ( $ d b x l U r l ) 
 
 	 " R e s h r e d d i n g   d o c i d   "   +   $ d o c I d 
 
 	 $ s t a t u s I n f o   =   $ a d m i n S v c . R e s h r e d D o c u m e n t ( $ d o c I d ) 
 
 	 $ s t a t u s I n f o   |   f o r m a t - t a b l e   - a u t o 
 
 } 
 
 e l s e 
 
 { 
 
 	 $ d b x l S v c   =   g e t - D b x l D o c u m e n t ( $ d b x l U r l ) 
 
 	 $ d o c I n f o s   =   n e w - o b j e c t   d b x l . D o c u m e n t S u m m a r y I n f o [ ]   0 
 
 
 
 	 $ d o c T y p e N a m e   =   ' Q d D o c u m e n t T y p e ' 
 
 	 $ s t a t u s I n f o   =   $ d b x l S v c . G e t D o c u m e n t S u m m a r y B y T y p e ( $ d o c T y p e N a m e ,   $ n u l l ,   $ n u l l ,   [ R E F ] $ d o c I n f o s ) 
 
 	 $ s t a t u s I n f o   |   f o r m a t - t a b l e   - a u t o 
 
 
 
 	 ' T o t a l   c o u n t   r e t u r n e d :   '   +   $ d o c I n f o s . L e n g t h 
 
   
 
 	 #   l i s t   a l l   d o c u m e n t s   r e t u r n e d 
 
 	 $ d o c I n f o s   |   f o r m a t - t a b l e   D o c I D ,   N a m e ,   A u t h o r ,   C r e a t e d ,   C r e a t e d B y ,   M o d i f i e d ,   M o d i f i e d B y ,   V e r s i o n N o ,   I s L o c k e d ,   L o c k e d B y ,   L o c k E x p i r e s   - a u t o   |   O u t - S t r i n g 
 
 	 $ d o c X m l   =   $ n u l l 
 
 } 
 
 
 
