Sunday, January 22, 2017

回国任务


1. 安装并测试dell voice/fango
2. 乒乓球拍
3. 一平米健身
俯卧撑器
护膝
4. 室内引体向上 ?
5. 手机(套)

Wednesday, January 18, 2017

web service wsdl location

when you create your service, the service class uses the default 'wsdlLocation', which was inserted into it when the class was built from the wsdl. So if you have a service class called SomeService, and you create an instance like this:

SomeService someService = new SomeService();
If you look inside SomeService, you will see that the constructor looks like this:

public SomeService() {
        super(__getWsdlLocation(), SOMESERVICE_QNAME);
}

So if you want it to point to another URL, you just use the constructor that takes a URL argument,
set public SomeService(new URL(wsdlLocation),SOMESERVICE_QNAME)
You are not supposed to change the wsdl file and recompile

Sometimes its ports still attempt to bind to the location set at compile/generation time, setting property for BindingProvider is the last chance.
BindingProvider bp = (BindingProvider)port;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointURL);

Tuesday, January 17, 2017

get web service soap request and response from Java

Method 1:
Implement SOAPHandler<SOAPMessageContext> and HandlerResolver, and setHandlerResolver for the service
public boolean handleMessage(final SOAPMessageContext smc)
Boolean outboundProperty = (Boolean) smc.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY)
if(outboundProperty)
System.out.println("SOAP Request:");
smc.getMessage().writeTo(System.out);
else
System.out.println("Soap Response:");
smc.getMessage()message.writeTo(System.out);

Method 2:
System.setProperty("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true");
System.setProperty("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true");
System.setProperty("com.sun.xml.ws.transport.http.HttpAdapter.dump", "true");
System.setProperty("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", "true");

Saturday, January 14, 2017

You are your own gym note

1. Why getting fat when you are over 30's
Muscle decreases/shrinks and getting a decreasing metabolic, while you are still eating like you ate when you are young.
2. Interval training is more efficient than steady state training. Get greater gain in aerobic capacity, more strength and spent much less time.
3. Fat is your body's way of storing energy so you don't starve later. If your body gets used to eating several meals a day, it quickly learns there isn't any reason to store fat, because it knows there's no starvation period coming up. This means five or six small meals a day, every three hours or so.
4. Everything from cookies, yogurts, sports bars, fruit juices, cereals, and sodas contain large amounts of table sugar that should be avoided.
As much as possible, get your carbs from whole pieces of fruit and raw or steamed vegetables, because they have the lowest glycemic index and contain valuable nutrients. The next best source is diary and whole grain products.
5. Your real home is not your apartment or your house or your city or even your country, but your body. It is the only thing you, your soul and mind, will always live inside of so long as you walk the earth.

Friday, January 6, 2017

JKS file

JKS file:
The browser cannon accept p12 file. After got the JKS file, use ikeyman to import, and export to .p12 file, double click .p12 file to install the certification. Then from the browser, can access the end point (secure web service)

Sunday, January 1, 2017

Chess

1. Rook
2. Knight
3. Bishop
4. King
5. Queen
6. Pawn
stale mate

2017 Resolution

1. Fitness
2. English (Listening and Oral)

Plan for Fitness:
1.
Monday        Play basketball, 8:15PM - 09:45PM, banana
Tuesday        Pushup and 6 pack, 8:15PM - 9:00PM, banana
Wednesday   Play basketball, 8:15PM - 09:45PM, banana
Thursday      Pushup and 6 pack, 8:15PM - 9:00PM, banana
Friday           None
Saturday       Pingpong, afternoon
                     Pushup and 6 pack, 8:15PM - 9:00PM, banana
Sunday         Swimming

Plan for English:
1. Do not browser Chinese news website like sohu, sina, forum.iask.ca except the weekend
2. Disable Wechat, moment, only enable at the weekend
3. Install Facebook, tweet, Reuters app and only read English news
4. Watch TV, listen 680 and CBC
5. Write/record diary in English
6. Practise Jerry English

Do not change job or prepare for changing job
Do not trade or prepare for the trade
Do not read Chinese news