Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change 
notification.

The following page has been changed by ToshiyukiKimura:
http://wiki.apache.org/ws/ja/axis/AxisClientConfiguration

The comment on the change is:
Axis Wiki in Japanese

New page:
##language:ja

'''èå: Axis 
ãããããããããããããããããããèåããããããããã?'''

ãããããããããããããããããåããéããèåçã{{{EngineConfiguration}}}ãæäããããèåçãèåãæçããææãããããããããã

ãããåããããããããããããããããããããWSDD-XML
 ãäçããã 
ããäã{{{HTTP-transport-chain}}}ãããããããããããããããããããããã{{{SimpleSessionHandler}}}ãèåãããã

{{{
     <deployment xmlns="http://xml.apache.org/axis/wsdd/"; xmlns:java="..." >
       <handler type="java:org.apache.axis.handlers.SimpleSessionHandler"
                name="SimpleSessionHandler"/>
       <transport name="http"
                  pivot="java:org.apache.axis.transport.http.HTTPSender">
         <requestFlow><handler type="SimpleSessionHandler"/></requestFlow>
         <responseFlow><handler type="SimpleSessionHandler"/></responseFlow>
       </transport>"
     </deployment>
}}}

ããäããããæååãã{{{EngineConfiguration}}}ãåãããããæããããããããã
 

{{{
     EngineConfiguration clientConfig = (EngineConfiguration) new 
XMLStringProvider(WSDDString);
}}}

{{{EngineConfiguration}}}ãããããããããåèããèåçãããããæçãããã
 
éåçãèååèãæåã{{{EngineConfiguration}}}ããããäçãããã
 
äãã{{{SimpleProvider}}}ã{{{Transport 
chain}}}ããããããèãããã 
ääãäãäèã WSDD ãåããããèãããã

{{{
     import org.apache.axis.configuration.SimpleProvider;
     import org.apache.axis.EngineConfiguration;
     import org.apache.axis.Handler;
     import org.apache.axis.SimpleChain;
     import org.apache.axis.SimpleTargetedChain;
     import org.apache.axis.handlers.SimpleSessionHandler;
     import org.apache.axis.transport.http.HTTPSender;
     import org.apache.axis.transport.http.HTTPTransport;

     EngineConfiguration createClientConfig()
     {
       SimpleProvider clientConfig=new SimpleProvider();
       Handler sessionHandler=(Handler)new SimpleSessionHandler();
       SimpleChain reqHandler=new SimpleChain();
       SimpleChain respHandler=new SimpleChain();
       reqHandler.addHandler(sessionHandler);
       respHandler.addHandler(sessionHandler);
       Handler pivot=(Handler)new HTTPSender();
       Handler transport=new SimpleTargetedChain(reqHandler, pivot, 
respHandler);
       
clientConfig.deployTransport(HTTPTransport.DEFAULT_TRANSPORT_NAME,transport);

       return clientConfig;   
     }
}}}

{{{WSDL2Java}}}ãçæããããããäçããéã{{{(Service 
ãæåãã) 
XYServiceLocator}}}ãèåãäããããããããããæäãããããçæãããããããäæããããããããääããããããååãããããããããã

{{{
        EngineConfiguration clientConfig=getClientConfig();
       XYServiceLocator service=new XYServiceLocator();
       service.setEngineConfiguration(clientConfig);
       service.setEngine(new AxisClient(clientConfig));
       XY myservice=service.getmyservice();
}}}

Reply via email to