An error was discovered processing the <wsse:Security> header.
http://blog.sina.com.cn/s/blog_77a2a8b301015fls.html
Map<String, Object> outProps = new HashMap<String, Object>();
outProps.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN);
outProps.put(WSHandlerConstants.USER, "admin");
outProps.put(WSHandlerConstants.PASSWORD_TYPE, "admin");
outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS, UsernamePasswordCallbackClient.class.getName());
ArrayList list = new ArrayList();
// 添加cxf安全验证拦截器,必须
list.add(new SAAJOutInterceptor());
list.add(new WSS4JOutInterceptor(outProps));
//创建WebService客户端代理工厂
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
//注册WebService接口
factory.setServiceClass(CmsWebService.class);
//设置WebService地址
factory.setAddress("http://localhost:8080/as/ws/cmsWebService");
CmsWebService cmsWebService = (CmsWebService)factory.create();
factory.getOutInterceptors().addAll(list);
System.out.println("invoke webservice...");
StringBuffer sb = new StringBuffer();
sb.append("{\"id\":");
sb.append("\"111\"");
sb.append(", \"placardId\":");
sb.append(2956729);
sb.append(", \"placardTitle\":");
sb.append("\"太仆寺旗城镇管理局清洁卫生车辆公开招标招标公告\"");
sb.append("}");
System.out.println("message context is:"+cmsWebService.inputArticle("1", "aa","bb",sb.toString()));
分享到:
相关推荐
在Activity的filter里面添加对应需要的权限,例如添加ACTION_NDEF_DISCOVERED权限:<activity>... <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED" /> </intent-filter>...</activity> ...
There are issues in the car physics code that were discovered after the book was printed. Although some of the issues have been addressed and the car is now driveable there will be additional ...
Sullivan, C. V. Piaget and the school curriculum: A critical appraisal....regular press soon will have discovered that a psychologist by the name of Piaget is currently “in.” In the introduct
知识点10:The knee is the joints where the thigh bone meets the large bone of the lower leg. * Knee:膝盖,n. * Joints:连接处,n. * Thigh bone:大腿骨,n. * Lower leg:小腿,n. 知识点11:Acids are ...
Rice, J. P. (1985). The gifted: Developing total talent (2nd ed.). Springfield, IL: C. C.... Book Reviews 29 1 ...The monograph provides ...Marie Clay in New Zealand, it was fortunately discovered by Ohio e
- discover -> discovered:发现 -> 被发现的 - please -> pleasing:使愉快 -> 愉快的 - sit -> seated:坐下 -> 坐着的 - thank -> thankful:感谢 -> 感激的 - marry -> married:结婚 -> 结婚的 - weigh -...
Mathematically, the sine of an angle is the ratio of the length of the opposite side to the length of the hypotenuse of an imaginary right triangle having that angle in it. Applet In Jsp Applets are...
- would rather...than...:宁愿...而不愿...。 - be satisfied with:对...满意。 - build up:建立,积累。 - be rich in:富含... - keep...free of:使...免于... - be concerned with:关心,涉及。 - ...
<action android:name="android.nfc.action.NDEF_DISCOVERED" /> <data android:mimeType="text/plain" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <intent-filter> ...
The total number of committers at that time was 269. Committers fall into three groups: committers who are only concerned with one area of the project (for instance file systems), committers who are...
Android实现读取NFC卡卡号示例,具体如下: 1.权限 <uses android:name=android.permission.NFC> <uses android:name=android.... <action android:name=android.nfc.action.TAG_DISCOVERED> <data andr
- 配置NFC Intent过滤器,以便在NDEF数据交换时启动应用:`<intent-filter><action android:name="android.nfc_beam" /></intent-filter>` 2. **NFC技术的API使用**: - 使用`NfcAdapter`类来获取系统的NFC适配器...
Muzei - Google Art Project Muzei - Google Art Project is an extension for muzei that displays random pictures ...I've discovered that the extension picks a random masterpiece from a json file that conta
webcracker 4.0英文版 ... 第一步:打开webcracker 4.0,在File&location;面板的Username fils:中...第六步:等待,在Discovered passwords面板中找出Username及Passwords并复制到网站即可。
<action android:name="android.nfc.action.NDEF_DISCOVERED" /> <data android:mimeType="text/plain" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> ``` ### 六、注意...
I’ve discovered over the years that I really enjoy teaching, mostly because I love watching students incorporate what they’re learning into the rest of their work. This is especially true of ...
- None of the planets has an environment like that of the earth.(注意动词单数形式) - 判断题:The solar system is the largest Galaxy in the universe. 错误。 - Is it possible to imagine how large ...
Change the generator of the message id.- Added the field MessageId and InReplyTo to the TSakMsg component.- Added the field In-Reply-To that is added to the message generated when it is <> ...