In the second web service (pojo) method, i have
intialised the stub(adb) of the first service and
invoked its method.
Can you provide me code for invoking web service in
the second web service


Here is the web service method of the second web
service


public OrderResponse_Type102[]
submitRefillOrder(RefillOrder_Type101[]
refillOrderArray)
    {
        System.out.println("Inside the refillOrderRequest
FIRST"+refillOrderArray);       
        
                String rxNumber = null;
        String storeNumber = null;
        String lastName = null;
        String phoneNumber = null;
        String pickupDateTime = null;
        String message = "Not OK";
        
        OrderResponse_Type102[] responseArray = new
OrderResponse_Type102[refillOrderArray.length];
        

                for(int i=0;i<refillOrderArray.length;i++)
        {
                RefillOrder_Type101 refillOrder =
refillOrderArray[i];
                lastName = refillOrder.getPatientLastName();
                phoneNumber = refillOrder.getPhoneNumber();
                pickupDateTime =
refillOrder.getPickupDateTime();
                rxNumber = refillOrder.getRxNumber();
                storeNumber = refillOrder.getStoreNumber();
                System.out.println("Inside the
refillOrderRequest THIRD-"+i);
                
                
                
                OrderResponse_Type102 respInfo = new
OrderResponse_Type102();
                respInfo.setStoreNumber(storeNumber);
                respInfo.setRxNumber(rxNumber);
                respInfo.setPatientLastName(lastName);
                respInfo.setMessage("yes");  
                System.out.println("Inside the
refillOrderRequest FOURTH");
                System.out.println("message from
RxInfoRequest FIVE "+message);    
                
                responseArray[i] = respInfo;
        }
        
        
        IVRClient ivrclient =  new IVRClient();
        ivrclient.executeIVRPharmacyInfoReq();
                System.out.println("message="+message);
                
        
        
        
                
        return responseArray;
        
    }

--- Sameera Jayasoma <[EMAIL PROTECTED]>
wrote:

> Hi vittal,
> 
> You can invoke a Web service from another Web
> service.
> 
> Can you provide some more information regarding this
> issue. Such as some
> code that you have tried.
> 
> Regards,
> Sameera
> 
> -- 
> Sameera Jayasoma
> http://sameera-jayasoma.blogspot.com/
> http://www.flickr.com/photos/sameera-jayasoma
> 



       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.
http://farechase.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to