package examples.mega.client;

import java.rmi.RemoteException;

import javax.xml.rpc.Stub;

import weblogic.webservice.binding.BindingInfo;

public class BindingProperties{

  public void invoke( MegaPort port ) throws RemoteException,
      InvokeFailedException {

    Stub stub = (Stub)port;

    BindingInfo info = (BindingInfo)stub._getProperty( 
        "weblogic.webservice.bindinginfo" );

    info.setCharset( "UTF-8" );
    info.setVerbose( true );
    port.helloWorld();

    info.setAcceptCharset( "UTF-16" );
    port.helloWorld();
    info.setVerbose( false );
  }
}

