FileDocCategorySizeDatePackage
Invoke_Product.javaAPI DocExample1516Tue Oct 09 11:03:40 BST 2001com.ecerami.wsdl

Invoke_Product

public class Invoke_Product extends Object
SOAP Invoker. Uses the Product_ServiceHelper to invoke the Product SOAP service. All other .java files are automatically generated by GLUE.

Fields Summary
Constructors Summary
Methods Summary
public productgetProduct(java.lang.String sku)
Get Product via SOAP Service

    //  Load Java <--> XML Mapping
    Mappings.readMappings("Product_Service.map");
    //  Invoke Service
    IProduct_Service service = Product_ServiceHelper.bind();
    product prod = service.getProduct(sku);
    return prod;
  
public static voidmain(java.lang.String[] args)
Main Method

    Invoke_Product invoker = new Invoke_Product();
    System.out.println ("Product Service");
    product prod = invoker.getProduct("A358185");
    System.out.println ("Name:  "+prod.name);
    System.out.println ("Description:  "+prod.description);
    System.out.println ("Price:  "+prod.price);